Download Structured Text(ST) Programming Guide Book

Transcript
8 ST PROGRAMMING APPLICATION (PASTING FB TO LADDER PROGRAM)
8- 1 to 8- 20
8.1 Creating an FB .......................................................................................................................................... 8- 1
Creating a new project .............................................................................................................................. 8- 1
Adding a new FB ....................................................................................................................................... 8- 2
Defining FB variables ................................................................................................................................ 8- 5
Creating an FB in ST language ................................................................................................................ 8- 9
8.2 Pasting the FB to a Main Program .......................................................................................................... 8-11
Defining the local variables ...................................................................................................................... 8-11
Creating a main program ......................................................................................................................... 8-13
8.3 Online ....................................................................................................................................................... 8-16
Writing to PLC CPU.................................................................................................................................. 8-16
Monitoring the sequence program........................................................................................................... 8-17
Confirming the program behavior ............................................................................................................ 8-18
Index
A-4
Index- 1 to Index- 2
A-4