6.2
Extended instructions.................................................................................................................132
6.2.1
6.2.2
6.2.3
6.2.3.1
String data overview ..................................................................................................................136
6.2.3.2
6.2.3.3
6.2.4
6.2.4.1
6.2.4.2
Stop scan cycle instruction ........................................................................................................151
6.2.4.3
Get Error instructions .................................................................................................................151
6.2.5
6.2.5.1
6.2.5.2
Point-to-Point instructions ..........................................................................................................167
6.2.6
Interrupt instructions ..................................................................................................................167
6.2.6.1
6.2.6.2
6.2.6.3
6.2.7
PID control .................................................................................................................................172
6.2.8
Motion control instructions .........................................................................................................173
6.2.9
Pulse instruction.........................................................................................................................174
6.2.9.1
CTRL_PWM instruction..............................................................................................................174
6.3
Global library instructions...........................................................................................................177
6.3.1
USS............................................................................................................................................177
6.3.1.1
6.3.1.2
USS_DRV instruction.................................................................................................................180
6.3.1.3
USS_PORT instruction ..............................................................................................................182
6.3.1.4
USS_RPM instruction ................................................................................................................183
6.3.1.5
USS_WPM instruction................................................................................................................184
6.3.1.6
USS status codes ......................................................................................................................186
6.3.2
MODBUS ...................................................................................................................................187
6.3.2.1
MB_COMM_LOAD.....................................................................................................................187
6.3.2.2
MB_MASTER .............................................................................................................................189
6.3.2.3
MB_SLAVE ................................................................................................................................199
7
PROFINET ............................................................................................................................................ 209
7.1
7.1.1
7.1.2
Configuring the devices .............................................................................................................211
7.1.3
7.1.3.1
7.1.3.2
7.1.3.3
7.1.4
7.2
HMI-to-PLC communication.......................................................................................................221
7.2.1
7.3
PLC-to-PLC communication ......................................................................................................223
7.3.1
7.3.2
7.3.2.1
7.3.2.2
S7-1200 Programmable controller
System Manual, 11/2009, A5E02486680-02
Table of contents
7