3-2
3.1 Configuration of Instructions
3.1
Configuration of Instructions
Most of the instructions available for CPU modules can be divided into an instruction name and
arguments.
The application of an instruction name and arguments are as follows:
• Instruction name····· Indicates the function of the instruction.
• Argument ··············· Indicates the I/O data used in the instruction.
Arguments are classified into source data, destination data, number of devices, executing
condition, and execution status.
(1) Source
(a) A source is data used in an operation.
(b) The following source types are available depending on the device specified in an
instruction.
• Constant ·····································Specifies a numeric value used in an operation.
Constants are set during programming so that they
cannot be changed while the program is being
executed. Perform index setting when using them
as variable data.
• Bit device and word device ·········Specifies the device in which the data used in the
operation are stored. Data must be stored to the
specified device before executing the operation. By
changing the data to be stored to the specified
device while a program is being executed, the data
used in the instruction can be changed.
(c) Contacts cannot be directly input to sources that use bit devices.
(2) Destination
(a) Data after the operation are stored to a destination. Some instructions require to store
data used in the operation to the destination before the operation.
Example: Addition instruction of 16-bit BIN data
(b) Set a device in which data are to be stored to a destination.
(c) Coils cannot be directly connected to destinations which store bit devices.
s
d
+
s
+
d
=
d
EN
EN
O
s
d
+
s
1
+s
2
=d
EN
ENO
s
1
d
s
2
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......