
A-5
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 - 25
4.4.4 Single-precision real/double-precision real data.......................................................................... 4 - 27
4.4.5 String data ................................................................................................................................... 4 - 30
4.4.6 Time data..................................................................................................................................... 4 - 31
4.4.7 Arrays ......................................................................................................................................... 4 - 32
4.4.8 Structures .................................................................................................................................... 4 - 34
4.5 Device and Address 4 - 35
4.5.1 Device ......................................................................................................................................... 4 - 35
4.5.2 Address........................................................................................................................................ 4 - 36
4.5.3 Correspondence between devices and addresses...................................................................... 4 - 37
4.6 Index Setting 4 - 40
4.7 Libraries 4 - 52
4.7.1 User libraries................................................................................................................................ 4 - 53
4.8 Precautions on Assigning a Name 4 - 54
5. WRITING PROGRAMS 5 - 1 to 5 - 14
5.1 ST Language 5 - 2
5.1.1 Standard format ............................................................................................................................. 5 - 2
5.1.2 Operators in ST language.............................................................................................................. 5 - 3
5.1.3 Syntaxes 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.2 Structured Ladder Language 5 - 11
5.2.1 Standard format ........................................................................................................................... 5 - 11
5.2.2 Ladder symbols in structured ladder language............................................................................ 5 - 12
APPENDIX App - 1 to App - 12
Appendix 1 Correspondence between Generic Data Types and Devices App - 2
Appendix 2 Character Strings that cannot be Used in Label Names and Data Names App - 6
Appendix 3 Recreating Ladder Programs App - 8
Appendix 3.1 Procedure for creating a structured program ................................................................App - 8
Appendix 3.2 Example of creating a structured program ....................................................................App - 9
INDEX Index - 1 to Index - 2