9.3.3.3
MBUS_SLAVE instruction ..................................................................................................... 492
9.3.3.4
9.3.4
9.3.5
9.4
9.4.1
9.4.2
9.4.2.1
TCP_CONNECT instruction .................................................................................................. 501
9.4.2.2
ISO_CONNECT instruction ................................................................................................... 504
9.4.2.3
UDP_CONNECT instruction ................................................................................................. 508
9.4.2.4
TCP_SEND instruction.......................................................................................................... 510
9.4.2.5
TCP_RECV instruction.......................................................................................................... 513
9.4.2.6
UDP_SEND instruction ......................................................................................................... 516
9.4.2.7
UDP_RECV instruction ......................................................................................................... 519
9.4.2.8
DISCONNECT instruction ..................................................................................................... 522
9.4.3
9.4.4
9.4.4.1
Active partner (client) ............................................................................................................ 526
9.4.4.2
CheckErrors subroutine ........................................................................................................ 535
9.4.4.3
9.4.4.4
Passive partner (server)........................................................................................................ 537
9.4.4.5
CheckErrors subroutine ........................................................................................................ 543
9.4.4.6
9.5
USS library ............................................................................................................................ 545
9.5.1
9.5.1.1
USS protocol overview.......................................................................................................... 545
9.5.1.2
9.5.1.3
9.5.2
USS program instructions ..................................................................................................... 548
9.5.2.1
9.5.2.2
USS_INIT instruction ............................................................................................................. 549
9.5.2.3
USS_CTRL instruction .......................................................................................................... 551
9.5.2.4
USS_RPM_x instruction ........................................................................................................ 554
9.5.2.5
USS_WPM_x instruction ....................................................................................................... 557
9.5.2.6
9.5.2.7
9.6
10
10.1
Debugging your program ...................................................................................................... 565
10.1.1
Bookmark functions .............................................................................................................. 565
10.1.2
Cross reference table............................................................................................................ 566
10.2
Displaying program status .................................................................................................... 568
10.2.1
10.2.2
10.3
10.4
Forcing specific values.......................................................................................................... 574
10.5
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
Table of contents
11