Data Length And Instruction Execution Format; Indexing Of Devices - Mitsubishi FX2N-10GM Hardware / Programming Manual

Melsec-f
Hide thumbs Also See for FX2N-10GM:
Table of Contents

Advertisement

FX Series Positioning Controllers
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.
X00
FNC 12
X01
FNC 12
[D] MOV
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.
D 10
D 12
MOV
D 20
D 22
Data is transmitted from (D10) to (D12).
Data is transmitted from (D21, D20) to (D23, D22).
Program format 5
X00
FNC 12
D 0
MOV
X01
FNC 12
D 2
[D] MOV
FNC 12
D4V1
MOV
Assuming (V1) = 8, (Z2) = 10:
4 + 8 = 12, 11 + 10 = 21
D12 moved to D21
5-43
V 1
Z 7
D11Z2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx2n-20gm

Table of Contents