124
5 SEQUENCE INSTRUCTIONS
5.3 Output Instructions
Inverting the bit device output
ALT(P)
These instructions reverse (ON OFF) bit devices when input turns ON.
■Descriptions, ranges, and data types
■Applicable devices
*1 Only the FX5 series intelligent function module can be used.
*2 T, ST, C cannot be used.
■Alternating output (1-step)
The bit device specified by (d) is reversed ON OFF each time the command input changes from OFF to ON.
■Division output (according to alternating output (2-step))
The ALTP instruction can be used in multiple combinations to perform division output.
When the CPU module is programmed with the ALT instruction, reversal operation is performed at every operation cycle. To
perform reversal operation by command ON/OFF, either use the ALTP instruction (pulse execution type) or set a command
contact as LDP etc. (pulse execution type).
There is no operation error.
Ladder diagram Structured text
ENO:=ALT(EN,d);
ENO:=ALTP(EN,d);
Operand Remarks Range Data type Data type (label)
(d) Bit device number whose output is alternated Bit ANY_BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(d)
*1
*2
ALTP
ONON
ON ON ON
(d)
(d)
Command input
Command input
ON
ONON
ON ON ON
ON
ALTP M0
ALTP
M1
M0
M0 (d)
M1 (d)
(d)
(d)
1st step
2nd step
Command input
Command input
Specify the same device