4.7 Precautions for Programming
4-27
4.7 Precautions for Programming
Programs which do not execute correctly
Do not write the following programs as they will not execute correctly.
Program example 1:
X0
DF
Y10
X1
X2
ANS
X0
DF
Y10
X1
X2
X0
Program in which the example 1 is rewritten
Program example 2:
X0
Y10
X1
X2
TMX5, K30
ANS
X0
Y10
X1
X2
TMX 5, K 30
X0
Program in which the example 2 is rewritten
Program example 3:
DF
Y11
X2
X3
X0
Y10
X1
PSHS
ANS
DF
Y11
X2
X3
X0
Y10
X1
Program in which the example 3 is rewritten
When a combination of contacts are set as the trigger (execution condition) of a
differential instruction (DF) or timer instruction, do not use an AND stack (ANS), push
stack (PSHS), read stack (RDS), or pop stack (POPS) instruction.