Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 45

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Digit specification range
The following table lists the range of 16-bit data for each digit specification.
Digit
Decimal notation
specification
K1
0 to 15
K2
0 to 255
K3
0 to 4095
K4
Signed 16-bit data: -32768 to 32767
Unsigned 16-bit data: 0 to 65535
Ex.
When digit specification is made for X0, the applicable number of points is as follows.
• K1X04 points from X0 to X3
• K2X08 points from X0 to X7
• K3X012 points from X0 to XB
• K4X016 points from X0 to XF
XF
XC XB
X8 X7
K3X0
K4X0
■Specifying a bit device with digit specification in the source (s)
When a bit device with digit specification is specified in the source of an instruction, 0 is stored in the bits, which follow the bit
for which digit specification is made in the source, in the word device of the destination.
Ladder example
• 16-bit data instruction
X10
MOV
K1X0
(s)
■Specifying a bit device with digit specification in the destination (d)
When a digit specification is made in the destination of an instruction, the number of points by the digit specification is
applicable in the destination.
The bit devices after the number of points specified by digits remain unchanged.
Ladder example
• When the source data is a word device
X10
MOV
D0
X4 X3
X0
K1X0
K2X0
Processing
D0
b15
D0
Processing
K2M100
(d)
K2M100
(1) The data remain the same.
Hexadecimal notation
0H to FH
00H to FFH
000H to FFFH
0000H to FFFFH
0
∙∙∙
0
0
0
0
0
0
0
0
b15
∙∙∙
1
1
1
0
1
0
1
D0
M115
∙∙∙
M108
(1)
X3 X2 X1
X0
K1X0
b4
b3
b2 b1
b0
0
0
0
0
X3 X2 X1
X0
b8
b7
∙∙∙
0
0
1
1
1
0
1
0
M107
∙∙∙
M100
1
0
0
1
1
1
0
1 OVERVIEW
1.2 Data Specification Method
1
b0
1
1
43

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents