6–4 MITSUBISHI ELECTRIC
Applied Instructions Reference More Advanced Programming
Category Instruction Function
Data
conversion
instructions
Binary data -> Gray
code
GRY
Converts 16-Bit binary data to Gray code
DGRY
Converts 16-Bit binary data to Gray code
Gray code -> binary
data
GBIN
Converts Gray code to 16-Bit binary data
DGBIN
Converts Gray code to 32-Bit binary data
Sign reversal
NEG
Complement of 2 (sign reversal) of 16-Bit binary data
DNEG
Complement of 2 (sign reversal) of 32-Bit binary data
ENEG
Sign reversal for floating decimal point values
Move functions
for 16-bit binary data
MOV
Move single 16-bit data from one storage area to another
BMOV
Block data transfer
FMOV
Fill Move, copy to a range of devices
XCH
Exchange data in specified devices
BXCH
Exchange block data
SWAP
Exchange upper and lower byte of a word
EROMWR
Write data to a EEPROM register
for 32-bit binary data
DMOV
Move single 32-bit data from one storage area to another
DXCH
Exchange data in specified devices
for floating decimal
point values
EMOV
Move floating decimal point values
for character strings
$MOV
Move character string
Negation, logical
inversion of device
contents
CML
Inverts 16-bit binary data bit by bit
DCML
Inverts 32-bit binary data bit by bit
for files
SP.FWRITE
Write to file
SP.FREAD
Read from file
for block data
RBMOV
High-speed block transfer of file registers
Program branch instructions
CJ
Conditional Jump to a program position
SCJ
Conditional Jump from next program scan on
JMP
Jump instruction
GOEND
Jump to the end of a program
Program exe
-
cution control
instructions
Enable interrupts
EI
Enable the call of an interrupt program
Disable interrupts
DI
Disable the execution of an interrupt program
Enable/Disable indi
-
vidual interrupts
IMASK
Control of the execution conditions of interrupt programs
End of an interrupt
program
IRET
Return from an interrupt programm to the main program
Data refresh
instructions
Inputs and outputs
RFS
Refresh the inputs and outputs of an designated range of
I/O devices during one program scan.
Link and interface
data
COM
Refresh of link and interface data
Execution condition
for a link refresh
DI
Disable link refresh execution
EI
Enable link refresh execution
Logical opera
-
tion instructions
Logical AND
WAND
Combination of two 16-bit devices
DAND
Combination of two 32-bit devices
BKAND
Combination of 16-bit devices in data blocks
Logical OR
WOR
Combination of two 16-bit devices
DOR
Combination of two 32-bit devices
BKOR
Combination of 16-bit devices in data blocks
Logical exklusive OR
(XOR)
WXOR
Combination of two 16-bit devices
DXOR
Combination of two 32-bit devices
BKXOR
Combination of 16-bit devices in data blocks
Logical exklusive
NOR (XNR)
WNXR
Combination of two 16-bit devices
DNXR
Combination of two 32-bit devices
BKXNR
Combination of 16-bit devices in data blocks