Справочник Пользователя для Mitsubishi Electronics FX

Скачать
Страница из 382
Applied Instructions 5
5-1
5.
Applied Instructions
The table will be found at the beginning of each new instruction description. The area identified
as ‘Operands’ will list the various devices (operands) that can be used with the instruction.
Various identification letters will be used to associate each operand with its function, i.e. D-
destination, S- source, n, m- number of elements. Additional numeric suffixes will be attached
if there are more than one operand with the same function.
Not all instructions and conditions apply to all PLC’s. Applicable CPU’s are identified by the
boxes in the top right hand corner of the page. For more detailed instruction variations a
second indicator box is used to identify the availability of pulse, single (16 bit) word and double
(32 bit) word format and to show any flags that are set by the instruction.
No modification of the instruction mnemonic is required for 16 bit operation. However, pulse
operation requires a ‘P’ to be added directly after the mnemonic while 32 bit operation requires
a ‘D’ to be added before the mnemonic. This means that if an instruction was being used with
both pulse and 32 bit operation it would look like..... D
P where 
 
was the basic
mnemonic.
The ‘pulse’ function allows the associated instruction to be activated on the rising edge of the
control input. The instruction is driven ON for the duration of one program scan.
Thereafter, while the control input remains ON, the associated instruction is not active.
To re-execute the instruction the control input must be turned from OFF to ON again.
The FLAGS section identifies any flags that are used by the instruction. Details about the
function of the flag are explained in the instructions text.
Mnemonic
Function 
Operands
Program steps
D
CJ
FNC 00
(Conditional 
Jump)
A method of
jumping to an
identified pointer
position
Valid pointers from the range 0 to 63
CJ,CJP:3steps
Jump pointer
P
:1 step
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
Applied Instructions are the ‘specialist’ instructions of the FX family of PLC’s. They allow the
user to perform complex data manipulations, mathematical operations while still being very
easy to program and monitor. Each applied instruction has unique mnemonics and special
function numbers. Each applied instruction will be expressed using a table similar to that
shown below:
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
FLAGS Carry M8022
FX Series Programmable Controllers