2 - 1 2 - 1
MELSEC-Q/QnA
2 INSTRUCTION TABLES
2. INSTRUCTION TABLES
2.1 Types of Instructions
The major types of CPU module instructions consist of sequence instructions, basic instructions,
application instructions, data link instructions, QCPU instructions and redundant system
instructions. These types of instructions are listed in Table 2.1 below.
Table 2.1 Types of Instructions
Types of Instructions Meaning
Reference
Chapter
Contact instruction Operation start, series connection, parallel connection
Connection instructions
Ladder block connection, creation of pulses from operation results, store/read
operation results
Output instruction Bit device output, pulse output, output reversal
Shift instruction Bit device shift
Master control instruction Master control
Termination instruction Program termination
Sequence
instructions
Other instructions
Program stop, instructions such as no operation which do not fit in the above
categories
5
Comparison operation instruction Comparisons such as =, >, <
Arithmetic operation instruction Addition, subtraction, multiplication or division of BIN or BCD
BCD BIN conversion instruction
Conversion from BCD to BIN and from BIN to BCD
Data transfer instruction Transmits designated data
Program branch instruction Program jumps
Program run control instruction Enable or prohibit interrupt programs
I/O refresh Run partial refresh
Basic
instructions
Other convenient instructions
Instructions for: Counter increment/decrement, teaching timer, special function
timer, rotary table shortest direction control, etc.
6
Logical operation instructions Logical operations such as logical sum, logical product, etc.
Rotation instruction Rotation of designated data
Shift instruction Shift of designated data
Bit processing instructions Bit set and reset, bit test, batch reset of bit devices
Data processing instructions 16-bit data searches, data processing such as decoding and encoding
Structure creation instructions
Repeated operation, subroutine program calls, Index modification in ladder
units
Table operation instruction Read/Write of FIFO table
Buffer memory access instruction Data read/write for special function modules
Display instructions Print ASCII code, LED character display, etc.
Debugging and failure diagnosis
instructions
Check, status check, sampling trace, program trace
Character string processing
instructions
Conversion between BIN/BCD and ASCII; conversion between BIN and
character string; conversion between floating decimal point data and character
strings, character string processing, etc.
Special function instructions
Trigonometric functions, conversion between angles and radians, exponential
operations, automatic logarithms, square roots
Data control instructions Upper and lower limit controls, dead band controls, zone controls
Switching instructions File register block No. switches, designation of file registers and comment files
Clock instructions
Read/write of year, month, day, hour, minute, second, and day of the week;
conversion between time statement (hour, minute, second) and seconds
Peripheral device instructions I/O to peripheral devices
Program instructions Instructions to switch program execution conditions
Application
instructions
Other instructions
Instructions that do not fit in the above categories, such as watchdog timer
reset instructions and timing clock instructions
7
Link refresh instructions Designated network refresh
Instructions dedicated to QnA links
Read/write of data from other stations; data transmission signals to other
stations; processing requests to other stations
Instructions for A-series-compatible
link
Read/write for designated station word device, read/write data from remote I/O
station special function module
Data link
instructions
Routing information read/write
instructions
Reads, writes, and registers routing information.
8
QCPU
instructions
Instruction for QCPU
Reading module information; trace set/reset; reading/writing binary data;
load/unload/load + unload program from memory card; high-speed block
transfer of file register
9
Redundant system
instructions
Instructions for Q4ARCPU
Operation mode setting during CPU startup; operation mode setting
instructions during CPU switch; data tracking; buffer memory batch refresh
10
2
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com