Mitsubishi Electric R16MTCPU Programming Manual page 120

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

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.
Ex.
"Substitution: =" structure example
D0 = #0
■Source (S)
• The source is the data used in an operation.
• It varies with the device specified in each instruction is shown below.
Device
Bit or word device
Constant
■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.
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.
Data range
■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.
Data range
4 OPERATION CONTROL PROGRAMS
118
4.1 Operation Control Programs
Data part: Source (S)
Instruction part
Data part: Destination (D)
Description
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.
Specify the numerical value used in an operation. As the constant is set during program creation, it cannot be changed
during program running.
Numerical data
Bit data
Batch bit data
Logical data
Decimal representation
K-32768 to K32767
Decimal representation
K-2147483648L to K2147483647L
Integer data
16-bit integer type data
32-bit integer type data
64-bit floating-point type data
Hexadecimal representation
H0000 to HFFFF
Hexadecimal representation
H00000000L to HFFFFFFFFL

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents