387
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.7 FNC 66 – ALT / Alternate State
11
FN
C30-
FN
C39
R
o
ta
tion and
Sh
ift
12
FNC
4
0
-FNC49
D
a
ta
Op
e
ra
tio
n
13
FNC5
0
-FNC5
9
H
igh Speed
Pr
ocessi
ng
14
FM
C6
0
-F
NC6
9
H
and
y
In
st
ru
cti
o
n
15
FNC7
0
-FNC7
9
Ex
te
rn
a
l F
X
I
/O
D
evi
ce
16
FNC8
0
-FNC8
9
Ext
e
rnal
FX
D
evi
ce
17
F
N
C1
00
-F
NC
10
9
Da
ta
Tr
ansf
e
r 2
18
FN
C
110-FN
C
13
9
Fl
oat
ing P
o
in
t
19
FN
C
140-FN
C
149
Da
ta
O
per
at
io
n
2
20
FN
C
15
0-F
N
C
159
P
o
si
tioni
ng
C
ont
ro
l
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" cannot be indexed with index registers (V and Z).
Explanation of function and operation
1. 16-bit operation (ALT and ALTP)
Alternating output (1-step)
Every time the command input turns ON from OFF, 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
X Y M T C S D
.b KnX KnY KnM KnS
T
C
D
R U
\G
V
Z Modify K
H
E
"
"
P
3 3
3
S
3
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
ON
ON
ON
ON
ON
1st step
2nd step
Command
input
ON
ON
ON
ON
ON
ON
ON
Command
input
FNC 66
ALTP
M0
D
FNC 66
ALTP
M1
D
Specify a same device
M0
D
M0
D
M1