13 Applied Instructions (Handy Instruction)
13.7 ALT / Alternate State
342
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
2. Flicker operation
1) When the input X006 is turned ON, the contact of timer T2 operates momentarily in every 5 seconds.
2) Every time the contact of T2 is turned ON, the output Y007 is alternately turned ON/OFF.
3. Alternate output operation using auxiliary relay (M) (same operation as ALT command)
The following circuit shows an example of alternate operation by using the basic command and auxiliary relay
(M) in the same operation as ALT command.
1) When the X000 is turned on, M0 is turned ON for one operation period only.
2) When M0 is turned ON for the first time, the Y000 operates by self-holding, and when turned ON second
time, the self-holding function is canceled.
ON
X006 TS2
X006 TS2
ONON
ON
X006
T 2
Y007
5 sec 5 sec 5 sec 5 sec 5 sec 5 sec 5 sec
ALT
EN ENO
d
Y007
[Structured ladder/FBD]
OUT_T
EN
TCoil
TValue
ENO
TC2
K50
[ ST ]
OUT_T(X006 AND NOT TS2, TC2, K50);
ALT(X006 AND TS2,Y007);
X000
X000
M1
M0 Y000
M0 Y000
M 0
M 1
Y000
[Structured ladder/FBD]
OUT(X000 AND NOT M1, M0);
OUT(X000);
OUT((M0 OR NOT Y000) OR (NOT M0 AND Y000), Y000));
[ST]