411
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.7 FNC 66 – ALT / Alternate State
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High-Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
14.7 FNC 66 – ALT / Alternate State
Outline
This instruction alternates a bit device (from ON to OFF or from OFF to ON) when the input turns ON.
1. Instruction format
2. Set data
3. Applicable devices
S: "D.b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.
Explanation of function and operation
1. 16-bit operation (ALT and ALTP)
Alternating output (1-step)
Every time the command input turns from OFF to ON, a bit device specified in is alternated (from ON to OFF or
from OFF to ON).
Dividing output (by 2-step alternating output)
Multi-step dividing outputs are achieved by combination of two or more ALTP instructions.
Operand type Description Data type
Bit device number whose output is alternated Bit
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E "
"P
S
P
FNC 66
ALT
−
−
Mnemonic Operation Condition
16-bit Instruction
3 steps
ALT
ALTP
Mnemonic Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
D
S
2
D
D
1
D
Command
input
FNC 66
ALTP
D
Command input
D
ONON
ON ON ON
1st step
2nd step
Command
input
ON
ONON
ON ON ON
ON
Command
input
FNC 66
ALTP
M0
D
FNC 66
ALTP
M1
D
Specify the same device
M0
D M0
D M1