
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.
Setting data
■
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.
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).
Operation error
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)
(d)
ALTP
ON
ON
ON
ON
ON
(d)
(d)
Command input
Command input
ON
ON
ON
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
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......