Specifications

A-6
4.2.9 EN and ENO ................................................................................................................................ 4 - 13
4.3 Labels 4 - 15
4.3.1 Global labels ................................................................................................................................ 4 - 15
4.3.2 Local labels.................................................................................................................................. 4 - 15
4.3.3 Label classes ............................................................................................................................... 4 - 16
4.3.4 Setting labels ............................................................................................................................... 4 - 17
4.3.5 Data types.................................................................................................................................... 4 - 18
4.3.6 Expressing methods of constants................................................................................................ 4 - 20
4.4 Method for Specifying Data 4 - 21
4.4.1 Bit data......................................................................................................................................... 4 - 22
4.4.2 Word (16 bits) data ...................................................................................................................... 4 - 23
4.4.3 Double word (32 bits) data........................................................................................................... 4 - 26
4.4.4 Single-precision real/double-precision real data.......................................................................... 4 - 29
4.4.5 String data ................................................................................................................................... 4 - 33
4.4.6 Time data..................................................................................................................................... 4 - 34
4.4.7 Arrays .......................................................................................................................................... 4 - 35
4.4.8 Structures .................................................................................................................................... 4 - 37
4.5 Device and Address 4 - 38
4.5.1 Device.......................................................................................................................................... 4 - 38
4.5.2 Address........................................................................................................................................ 4 - 39
4.5.3 Correspondence between devices and addresses...................................................................... 4 - 40
4.6 Index Setting 4 - 43
4.7 Libraries 4 - 55
4.7.1 User libraries................................................................................................................................ 4 - 56
4.8 Precautions on Assigning a Name 4 - 57
5. WRITING PROGRAMS 5 - 1 to 5 - 20
5.1 ST 5 - 2
5.1.1 Standard format ............................................................................................................................. 5 - 2
5.1.2 Operators in ST language.............................................................................................................. 5 - 3
5.1.3 Syntax in ST language................................................................................................................... 5 - 4
5.1.4 Calling functions in ST language ................................................................................................... 5 - 9
5.1.5 Calling function blocks in ST language........................................................................................ 5 - 10
5.1.6 Precautions when using conditional syntax and iteration syntax................................................. 5 - 11
5.2 Structured Ladder/FBD 5 - 13
5.2.1 Standard format ........................................................................................................................... 5 - 13
5.2.2 Ladder symbols in structured ladder/FBD language.................................................................... 5 - 14
5.2.3 Executing order............................................................................................................................ 5 - 16
5.2.4 Ladder branches and compilation results ....................................................................................5 - 17
5.2.5 Precautions on creating programs with structured ladder/FBD ................................................... 5 - 19