Table of contents
8.6
RS485 .................................................................................................................................. 395
8.6.1
PPI protocol .......................................................................................................................... 395
8.6.2
8.6.2.1
8.6.2.2
8.6.3
8.6.3.1
8.6.3.2
8.6.4
Building your network ........................................................................................................... 400
8.6.4.1
General guidelines ............................................................................................................... 400
8.6.4.2
8.6.4.3
Repeaters on the network .................................................................................................... 401
8.6.4.4
8.6.4.5
Connector pin assignments ................................................................................................. 402
8.6.4.6
8.6.4.7
8.6.4.8
8.6.5
Freeport mode ...................................................................................................................... 406
8.6.5.1
8.6.5.2
8.7
RS232 .................................................................................................................................. 410
9
Libraries ................................................................................................................................................. 411
9.1
9.2
USS library instructions ........................................................................................................ 413
9.2.1
9.2.1.1
USS protocol overview ......................................................................................................... 413
9.2.1.2
9.2.1.3
9.2.2
USS program instructions .................................................................................................... 416
9.2.2.1
9.2.2.2
USS_INIT instruction ............................................................................................................ 417
9.2.2.3
USS_CTRL instruction ......................................................................................................... 419
9.2.2.4
USS_RPM_x instruction ....................................................................................................... 422
9.2.2.5
USS_WPM_x instruction ...................................................................................................... 425
9.2.2.6
9.2.2.7
9.3
9.3.1
9.3.1.1
Modbus library features ....................................................................................................... 431
9.3.1.2
9.3.1.3
Modbus addressing .............................................................................................................. 434
9.3.2
Modbus RTU master ............................................................................................................ 436
9.3.2.1
9.3.2.2
9.3.2.3
MBUS_MSG instruction ....................................................................................................... 438
9.3.2.4
9.3.3
Modbus RTU slave .............................................................................................................. 443
9.3.3.1
9.3.3.2
9.3.3.3
MBUS_SLAVE instruction .................................................................................................... 446
10
System Manual, 09/2015, A5E03822230-AC
S7-200 SMART