Language reference manual
1. Common elements............................................................................................................. 7
1.1. Variables................................................................................................................................ 7
1.1.1. Booleen variables........................................................................................................................... 7
1.1.2. Numeric variables .......................................................................................................................... 8
1.1.3. Time delay ..................................................................................................................................... 8
1.2. Actions.................................................................................................................................. 10
1.2.1. Assignment of a boolean variable................................................................................................ 10
Complement assignment of a boolean variable .....................................................................................11
1.2.2. Setting a boolean variable to one ................................................................................................. 12
1.2.3. Resetting a boolean variable ........................................................................................................ 13
1.2.4. Inverting a boolean variable......................................................................................................... 13
1.2.5. Resetting a counter, a word or a long........................................................................................... 14
1.2.6. Incrementing a counter, a word or a long .................................................................................... 15
1.2.7. Decrementing a counter, word or long......................................................................................... 15
1.2.8. Time delays.................................................................................................................................. 16
1.2.9. Interferences among the actions................................................................................................... 17
1.2.10. IEC1131-3 standard actions...................................................................................................... 17
1.2.11. Multiple actions ......................................................................................................................... 18
1.2.12. Literal code ................................................................................................................................ 19
1.3. Tests...................................................................................................................................... 19
1.3.1. General form................................................................................................................................ 20
1.3.2. Test modifier................................................................................................................................ 20
1.3.3. Time delays.................................................................................................................................. 21
1.3.4. Priority of boolean operators........................................................................................................ 21
1.3.5. Always true test............................................................................................................................ 22
1.3.6. Numeric variable test ................................................................................................................... 22
1.3.7. Transitions on multiple lines........................................................................................................ 23
1.4. Use of symbols ..................................................................................................................... 23
1.4.1. Symbol syntax.............................................................................................................................. 23
1.4.2. Automatic symbols ...................................................................................................................... 24
1.4.3. Automatic symbol syntax............................................................................................................. 24
1.4.4. How does the compiler manage the automatic symbols ?............................................................ 24
1.4.5. Range of variable attribution........................................................................................................ 25
1.5. Examples.............................................................................................................................. 26
1.6. Grafcet ................................................................................................................................. 28
1.6.1. Simple Grafcet ............................................................................................................................. 28
1.6.2. Divergence and convergence in « And » .................................................................................... 31
1.6.3. Divergence and convergence in « Or »........................................................................................ 33
1.6.4. Destination and source steps, destination and source transitions................................................. 36
AUTOMGEN
7
3 (C)opyright 2002 IRAI