6 Program Creation
6.1 Flow of Program Creation...................................................................6-2
6.2 Program Creation Window
..................................................................6-3
6.2.1 Main Pane........................................................................................ 6-3
6.2.2 Declaration Editor ............................................................................ 6-3
6.2.3 Auto Declaration .............................................................................. 6-5
6.2.4 Toolbox............................................................................................. 6-7
6.2.5 Setting up the Program Input Window ............................................. 6-8
6.2.6 Window Operations for the Program Input Window......................... 6-12
6.3 Creating a Program Object (POU Object)...........................................6-14
6.4 Types of Programming Language.......................................................6-15
6.5 Variables .............................................................................................6-18
6.5.1 Standard Data Types ....................................................................... 6-18
6.5.2 Array ................................................................................................ 6-19
6.5.3 Subrange Types............................................................................... 6-19
6.5.4 Structure, Enumeration, Alias, and Union Data Types..................... 6-20
6.5.5 Constants......................................................................................... 6-24
6.5.6 Object for Global Variable Declaration ............................................. 6-24
6.5.7 Global Variables ............................................................................... 6-25
6.5.8 Persistent Variables ......................................................................... 6-27
6.5.9 Short Form Function ........................................................................ 6-30
6.6 Function and Function Block...............................................................6-32
6.6.1 Function ........................................................................................... 6-32
6.6.2 Function Block ................................................................................. 6-36
WUME-GM1RTXOP-01 6-
1