
2-2 2.1 Types of Instructions
2.1 Types of Instructions
Instructions for CPU modules are classified into sequence instructions, basic instructions, and
application instructions. Table 2.1 shows the types of instructions.
Table 2.1 Types of instructions
Type of instruction Description Reference
Sequence
instruction
Contact instruction Operation start, series connection, parallel connection
Chapter 5
Bond instruction Ladder block connection, operation result pulse, operation result store/read
Output instruction Bit device output, pulse output, output inversion
Shift instruction Bit device shift
Master control instruction Master control
End instruction Program conclusion
Other instructions Instructions not classified into the above types, such as program stop and no
operation
Basic
instruction
Comparison operation
instruction Comparison such as =, , and
Chapter 6
Arithmetic operation instruction Addition, subtraction, multiplication, and division of BIN or BCD data
Data conversion instruction Conversion from BCD to BIN data and vice versa
Data transfer instruction Specified data transfer
Program branch instruction Program jump
Program execution control
instruction Enable/disable interrupt programs
I/O refresh instruction Partial refresh execution
Other convenient instructions Instructions such as up/down counter, teaching timer, special function timer, and
rotary table shortest direction control
Application
instruction
Logical operation instruction Logical operations such as logical OR and logical AND
Chapter 7
Rotation instruction Specified data rotation
Shift instruction Specified data shift
Bit processing instruction Bit set/reset, bit test, bit device batch reset
Data processing instruction Data processes such as 16-bit data search, decode, and encode
Structured instruction Repeated operation, subroutine program call, index setting in units of ladder
Data table operation instruction Data read/write from/to data tables
Buffer memory access
instruction Data read/write from/to intelligent function module
Display instruction ASCII code print, LED display of characters
Debug/error diagnostics
instruction Error check, status latch, sampling trace, program trace
String processing instruction
Conversion from BIN/BCD data to ASCII data and vice versa, conversion from BIN
data to character string data and vice versa, conversion from floating-point data to
character string data and vice versa, character string process
Special function instruction Trigonometric functions, conversion from degree to radian and vice versa,
exponential operation, natural logarithm, square root
Data control instruction Upper/lower limit control, dead band control, zone control
Switch instruction File register block numbers switch, file register/comment file specification
Clock instruction
Clock data (year, month, day, hours, minute, second, and day of the week) read/
write, and time data conversion from hour/minute/second format to seconds and vice
versa
Program control instruction Switch instruction of program executing conditions
Other instructions Instructions not classified into the above types, such as WDT reset and timing clock
QCPU
instruction QCPU instruction
Module information read, trace set/reset, binary data read/write, program load/
unload/load+unload to/from memory card, file register high-speed block transfer,
data write to host CPU shared memory, data read from other CPU shared memory,
selection of refresh instructions
Chapter 8
Multiple CPU
high speed
transmission
dedicated
instruction
Multiple CPU device data write/
read instruction Device data write to other CPU, device data read from other CPU Chapter 9