6–8 MITSUBISHI ELECTRIC
Applied Instructions Reference More Advanced Programming
Category Instruction Function
Instructions for
file register
Switching instructions
RSET
Switch between file register blocks
QDRET
Switch between files in file registers
QCDSET
Switch between comment files in file registers
Read
ZRRDB
Read from byte in file register directly
Write
ZRWRB
Write directly in a byte in a file register
Operations with
the PLC’s inte
-
grated clock
Read
DATERD
Read clock time and date
Set
DATEWR
Write time and date to PLC clock
Add
DATE+
Add clock data
Subtract
DATE-
Subtract clock data
Conversion
SECOND
Convert hours / minutes / seconds time value to seconds
HOUR
Convert seconds time value to hours / minutes / seconds
Peripheral
device instruc
-
tions
Output
MSG
Output of messages to peripheral devices
Input
PKEY
Key input of data from peripheral devices
KEY
Key input of numerical values
Program
control instruc
-
tions
Stand-by mode
PSTOP
Switch program into stand-by mode.
POFF
Switch program into stand-by mode and reset outputs.
Scan execution mode
PSCAN
Switch program into scan execution mode
Low speed execution
mode
PLOW
Switch program into low speed execution mode
Instructions for
programs
Load program
PLOADP
Load program from a memory card
Delete program
PUNLOADP
Delete a stand-by program from program memory
Delete and load
PSWAPP
Delete a stand-by program from program memory and
load program from a memory card
Data link
instructions
Refresh
ZCOM
Network data refresh
Routing
RTREAD
Read routing information
RTWRITE
Write routing information
Instructions for
use in a
Multi-CPU sys-
tem
Write data
S.TO
Write data to the CPU shared memory
Read data
FROM
Read data from shared memory of another CPU
Data refresh
COM
Refresh shared memory used by multi-CPU system
Instructions for
system control
Watchdog timer
WDT
Reset watchdog timer
Module information
UNIRD
Read module information
Index register
ZPUSH
Batch save of index register contents
ZPOP
Batch recovery of index register contents
Store device address
ADRSET
Store device address for indirect designation (not avail
-
able with GX IEC Developer)
Execution scans
DUTY
Preset execution scans of a device
Application
instructions
Counter
UDCNT1
1-Phase input count-up/-down counter
UDCNT2
2-Phase input count-up/-down counter
Timer
TTMR
Programmable timer
STMR
Special function timer (low-speed timer)
STMRH
Special function timer (high-speed timer)
Instruction für rotary
table
ROTC
Positioning of rotary table
Ramp signal
RAMP
Change the content of a device gradually
Pulse density
measurement
SPD
Count pulses at an input for a specified time and store the
result.
Pulse output
PLSY
Pulse output with adjustable number of pulses
Puls width modulation
PWM
Pulse output with adjustable cycle time and ON time
Input matrix
MTR
Building of an input matrix for reading of information