1 Outline
1.3 Cautions on Creation of Fundamental Programs
17
FXCPU Structured Programming Manual
(Application Functions)
1
O
utlin
e
2
Function Li
st
3
Functi
on
Cons
tructi
on
4
Ho
w t
o R
ea
d
Explanati
on of
Func
tions
5
Appl
ie
d
Functions
6
Stan
dard
Functi
on
Blocks
A
Correspondence
be
tw
een Dev
ice
s
an
d A
ddres
ses
1.3.2
Double output (double coil) operation and countermeasures
This subsection explains the double output (double coil) operation and countermeasures.
1. Operation of double outputs
When a coil (output variable) is used twice (double coils) in another program block to be executed or in the
same program block, the PLC gives priority to the latter coil.
Suppose that the same coil Y003 is used in two positions as
shown in the right figure.
For example, suppose that X001 is ON and X002 is OFF.
In the first coil Y003, the image memory is set to ON and the
output Y004 is also set to ON because the input X001 is ON.
In the second coil Y003, however, the image memory is set to
OFF because the input X002 is OFF.
As a result, the actual output to the outside is "Y003: OFF, Y004:
ON".
2. Countermeasures against double outputs
Double outputs (double coils) do not cause an illegal input error (program error), but the operation is
complicated as described above.
Change the program as shown in the example below.
The SET and RST instructions or jump instruction can be used instead, or a same output coil can be
programmed at each state using step ladder instructions STL and RET.
When you use the step ladder instructions STL and RET, note that the PLC regards it as double coils if you
program, inside the state, an output coil located outside the RET instruction from another program block or
the STL instruction.
X001
Input processing
X001=ON X002=OFF
First
Y003
X002
Second
Output processing
Y003=OFF Y004=ON
Y003
Y004
Y003
A
B
Ignored
C
E
D
A
B
C
E
D
A
B
C
E
D
M100
M101
Or
Y000
Y000
Y000
M100
M101
Y000
Содержание 09R927
Страница 2: ......
Страница 234: ...232 FXCPU Structured Programming Manual Application Functions Revision History MEMO ...