6 SEQUENCE INSTRUCTIONS
6.3 Output Instructions
137
6
Inverting the bit device output
ALT(P)
These instructions reverse (ON
OFF) bit devices when input turns ON.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*1 T, ST, C cannot be used.
*2 Only the FX5 intelligent function module can be used.
Processing details
■
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.
Precautions
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).
Ladder diagram
Structured text
ENO:=ALT(EN,d);
ENO:=ALTP(EN,d);
FBD/LD
Operand
Remarks
Range
Data type
Data type (label)
(d)
Bit device number whose output is alternated
Bit
ANY_BOOL
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
T, ST, C, D, W,
SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(d)
(1): Specify the same device
(d)
EN
ENO
d
ALTP
ON
ON
ON
ON
ON
(d)
(d)
X1
X1
ON
ON
ON
ON
ON
ON
ON
ALTP
M0
ALTP
M1
M0
M0 (d)
M1 (d)
(d)
(d)
X1
X1
(1)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......