FX Series Positioning Controllers
Program format 5
5-43
5.7.4
Data length and instruction execution format
Application instructions which handle numerics are either 16-bit or 32-bit depending on the bit
length of the numeric data.
32-bit instructions are indicated by prefixing the symbol D as D MOV, FNC D 12, FNC12 D, etc.
In this case, numeric data is handled as follows.
1) Kn of grouped bit devices such as KnX, KnY and KnM can be assigned values from K1 (4
bits) to K8 (32 bits).
2) Using an even No. data register for the lower 16 bits, the succeeding data register is used
for the upper 16 bits. Specify the lower device for operands.
3) Z index registers should be used when specified as the operand with 32-bit instructions.
In the same way as general data registers, the file registers can be used in various instructions.
5.7.5
Indexing of devices
The index data registers V and Z are 16-bit or 32-bit data
registers which allow writing and reading of numeric data
in the same way as general registers.
The registers V are used as 16-bit operand, and the reg-
isters Z are used as 32-bit operands.
Changing of a device No. in accordance with the con-
tents of V or Z, as shown in the figure on the left, is called
"indexing" of the device No.
The registers V and Z, when indexing devices, can be
used together without any distinction between 16-bit and
32-bit instructions.
Modifiable devices:
X, Y, M, P (pointer), KnX, KnY, KnM, D
The devices that can be modified by the index registers are those used in application instruc-
tions as shown on the left.
However, "Kn" of group bit devices and the jump destination label No. "P" cannot be modified.
FNC 12
MOV
D 10
D 12
FNC 12
[D] MOV
D 20
D 22
X00
X01
Data is transmitted from (D10) to (D12).
Data is transmitted from (D21, D20) to (D23, D22).
FNC 12
MOV
D 0
V 1
FNC 12
[D] MOV
D 2
Z 7
X00
X01
FNC 12
MOV
D4V1
D11Z2
Assuming (V1) = 8, (Z2) = 10:
4 + 8 = 12, 11 + 10 = 21
D12 moved to D21
Summary of Contents for FX2N-10GM
Page 1: ...HARDWARE PROGRAMMING MANUAL FX2N 10GM FX2N 20GM ...
Page 4: ...FX Series Positioning Controllers ii ...
Page 6: ...FX Series Positioning Controllers iv ...
Page 46: ...FX Series Positioning Controllers Introduction 1 1 34 MEMO ...
Page 76: ...FX Series Positioning Controllers Wiring 3 3 24 MEMO ...
Page 222: ...FX Series Positioning Controllers Operation Maintenance and Inspection 8 8 18 MEMO ...
Page 256: ...FX Series Positioning Controllers Program Examples 9 9 34 MEMO ...