8.2 Program structure
8-3
8.2 Program structure
A STEP7 structured program consists of blocks, each of which in turn consists of networks (see
the figure below). Each network can be expressed either in LAD, FBD, or STL. Thus a block
can consist of mixed LAD and STL networks, or mixed FBD and STL networks. LAD and
FBD networks, however, cannot be mixed in a block.
While most instructions can be written in any of LAD, FBD, and STL, the LOOP, variable-
address, and some other STEP7 instructions can be written only in STL. In such a case, LAD
and STL networks need to be mixed.
I 0.0
I 0.2
I 0.1
Q 1.0
O
I
2.0
O
I
2.1
=
Q
3.0
I 4.2
M5.1
M 5.0
Network 1
Network 2
Network 3
M5.0
I 6.2
Q 5.0
Network 4
( )
( )
( )
I
I 4.0
( )
( )
Summary of Contents for CNC Series
Page 1: ...Maintenance Manual Serviceman Handbook MANUAL No NCSIE SP02 19 Yaskawa Siemens CNC Series...
Page 26: ...Part 1 Hardware...
Page 38: ...System Configuration 1 2 3 Spindle motor designations 1 12...
Page 58: ...Installing the control panels 2 3 5 Installing lightning surge absorbers 2 20...
Page 62: ...Installing the motors 3 4...
Page 84: ...Connection method 4 3 2 Setting the rotary switches on the inverters and servo units 4 22...
Page 96: ...Part 2 Software...
Page 102: ...Software configuration 6 6...
Page 113: ...7 2 Network settings 7 11 8 Click on the radio button to the left of Specify an IP address...
Page 121: ...7 2 Network settings 7 19...
Page 122: ...Part 3 PLC...
Page 154: ...Part 4 Setting up and maintenance...
Page 160: ...Overview of System 10 1 2 Basic operation 10 6...
Page 204: ...How to use Digital Operation 12 2 9 Setting the password setting for write prohibit 12 32...
Page 327: ...Error and Troubleshooting 15 4...
Page 328: ...15 1 Errors without Alarm Display and Troubleshooting 15 5...
Page 329: ...Error and Troubleshooting 15 6...
Page 343: ...Maintenance and Check 16 3 3 Setting up Initializing Absolute encoder 16 14...