118
4 OPERATION CONTROL PROGRAMS
4.1 Operation Control Programs
Structure of instruction
Many of the instructions usable in operation control programs can be divided into instruction and data parts. The instruction
and data parts are used for the following purposes.
• Instruction part: Indicates the function of that instruction.
• Data part: Indicates the data used in the instruction.
"Substitution: =" structure example
■Source (S)
• The source is the data used in an operation.
• It varies with the device specified in each instruction is shown below.
■Destination (D)
• As the destination data, after-operation data is stored.
• Destination data is always set the device for storing the data.
How to specify data
There are the following six different data usable in each instruction.
■16-bit integer type data
The 16-bit integer type data is 16-bit integer value data. Word devices are used in increments of 1 point. Data ranges are
shown below.
■32-bit integer type data
The 32-bit integer type data is 32-bit integer value data. Word devices are used in increments of 2 points: (specified device
No.), (specified device No. + 1). Data ranges are shown below.
Device Description
Bit or word device Specify the device which stores the data used in operation. The data must have been stored in the specified device
until the operation is executed. Changing the data stored in the specified device during program execution allows
changing the data used in that instruction.
Constant Specify the numerical value used in an operation. As the constant is set during program creation, it cannot be changed
during program running.
Decimal representation Hexadecimal representation
Data range K-32768 to K32767 H0000 to HFFFF
Decimal representation Hexadecimal representation
Data range K-2147483648L to K2147483647L H00000000L to HFFFFFFFFL
D0 = #0
Data part: Source (S)
Instruction part
Data part: Destination (D)
Data usable in each instruction
Numerical data Integer data
16-bit integer type data
32-bit integer type data
64-bit floating-point type data
Bit data
Batch bit data
Logical data