53
Programming Restrictions
Section 2-4
If Timer Instructions are being used, always use the Always ON Flag (P_On)
for the EN input condition and include the instruction’s input condition within
the function block definition.
• If the same instance containing a timer is used in multiple locations at the
same time, the timer will be duplicated.
2-4-2
ST Programming Restrictions
Restrictions when
Using ST Language in
Function Blocks
• Only the following statements and operators are supported.
• Assignment statements
• Selection statements (CASE and IF statements)
• Iteration statements (FOR, WHILE, REPEAT, and EXIT statements)
• RETURN statements
• Function block calling statements
• Arithmetic operators
• Logical operators
• Comparison operators
• Numerical functions
• Arithmetic functions
• Standard text string functions
• Numeric text string functions
• OMRON expansion functions
• Comments
• The TIMER and COUNTER data types cannot be used.
For further details, refer to
SECTION 5 Structured Text (ST) Language Speci-
fications
in
Part 2: Structured Text (ST).
FB1
EN ENO
U P
LD EN
TI M t i m U P
0.00
The timer’s Completion Flag (UP)
will not be turned OFF even though
input condition 0.00 goes OFF.
Body
FB1
EN ENO
a U P
P _On
LD a
TI M t i m U P
0.00
The timer’s completion flag (UP) is turned
OFF when input condition a (0.00) goes OFF.
Body
Summary of Contents for CX-PROGRAMMER V8.1
Page 3: ...iv...
Page 5: ...vi...
Page 7: ......
Page 15: ...xvi...
Page 19: ...xx...
Page 25: ...xxvi Application Precautions 4...
Page 26: ...Part 1 Function Blocks...
Page 27: ......
Page 153: ...128 Procedures Section 3 2...
Page 154: ...Part 2 Structured Text ST...
Page 155: ......
Page 159: ...134 CX Programmer Specifications Section 4 2...
Page 205: ...180 Procedures Section 6 1...
Page 207: ...182 System defined external variables supported in function blocks Appendix A...
Page 229: ...204 Revision History...
Page 230: ......