24
1 OVERVIEW
1.1 Instruction Configuration
1
OVERVIEW
1.1
Instruction Configuration
Many instructions available for CPU module are each divided into the instruction part and device part.
The instruction part and device part are used as follows.
• Instruction part: Indicates the function of the relevant instruction.
• Device part: Indicates the data used for the instruction.
The device part is further classified to source data, destination data, and numerical data.
Source (s)
Source is the data used in the operation.
Depending on the label or device specified in each instruction, the source becomes as follows.
Destination (d)
Data after operation is stored in the destination area.
However, some instructions require the data to be used in the operation to be stored before the operation.
Ex.
Binary 16-bit data addition instruction
A label or device to store data must be set for the destination.
Numerical values (n)
In an instruction which uses multiple devices or an instruction which specifies the number of repetitions, data to be processed,
and character strings, use numerical values to specify the number of devices, transfers, data, and character strings.
Ex.
Block transfer instruction
A numerical value from 0 to 65535 or 0 to 4294967295 can be set for the size such as the number of devices, transfers, or
characters.
*1
Note, however, that when the size specification such as the number of devices, transfers, or characters is 0, the relevant
instruction results in non-processing.
*1 The setting range varies depending on the instruction. For details, refer to the description of each instruction.
Type
Description
Constant
The constant specifies a numerical value used in the operation.
It is set during program creation and cannot be changed during program execution.
Bit device
Word device
The user specifies the device where the data to be used in the operation is stored.
Necessary data must be thus stored in the specified device before operation execution.
By changing the data to be stored in the specified device during program execution, the data to be used by the
instruction can be changed.
(1): The data required for operation is stored before the operation.
(2): Only the operation result is stored.
(1): The number of transfers executed by the BMOV instruction is specified.
d
s2
s1
+
d
s
+
(1)
(2)
n
d
s
BMOV
(1)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......