
Table of contents
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
11
9.3.3.3
MBUS_SLAVE instruction ..................................................................................................... 492
9.3.3.4
Modbus RTU slave execution error codes............................................................................ 493
9.3.4
Modbus RTU master example program................................................................................ 494
9.3.5
Modbus RTU advanced user information ............................................................................. 496
9.4
Open user communication library ......................................................................................... 498
9.4.1
Parameters common to the OUC library instructions ........................................................... 499
9.4.2
Open user communication library instructions ...................................................................... 501
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
Open user communication library instruction error codes .................................................... 524
9.4.4
Open user communication library example .......................................................................... 525
9.4.4.1
Active partner (client) ............................................................................................................ 526
9.4.4.2
CheckErrors subroutine ........................................................................................................ 535
9.4.4.3
Active partner symbol table .................................................................................................. 536
9.4.4.4
Passive partner (server)........................................................................................................ 537
9.4.4.5
CheckErrors subroutine ........................................................................................................ 543
9.4.4.6
Passive partner symbol table ................................................................................................ 544
9.5
USS library ............................................................................................................................ 545
9.5.1
USS communication overview .............................................................................................. 545
9.5.1.1
USS protocol overview.......................................................................................................... 545
9.5.1.2
Requirements for using the USS protocol ............................................................................ 546
9.5.1.3
Calculating the time required for communicating with the drive ........................................... 547
9.5.2
USS program instructions ..................................................................................................... 548
9.5.2.1
Using the USS protocol instructions ..................................................................................... 548
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
USS protocol execution error codes ..................................................................................... 560
9.5.2.7
USS protocol example program ............................................................................................ 561
9.6
Creating a user-defined library of instructions ...................................................................... 563
10
Debugging and troubleshooting ........................................................................................................... 565
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
Displaying status in the program editor ................................................................................ 568
10.2.2
Configuring the STL status options ....................................................................................... 571
10.3
Using a status chart to monitor your program ...................................................................... 572
10.4
Forcing specific values.......................................................................................................... 574
10.5
Writing and forcing outputs in STOP mode .......................................................................... 575
Содержание SIMATIC S7-200
Страница 30: ...Product overview 1 7 Programming software S7 200 SMART 30 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 267: ...Program instructions 7 6 Counters S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 267 HSC modes 3 and 4 ...
Страница 394: ...Program instructions 7 18 Subroutine S7 200 SMART 394 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 425: ...Communication 8 5 PROFIBUS S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 425 ...
Страница 786: ...Technical specifications A 11 S7 200 SMART cables S7 200 SMART 786 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 798: ...Error codes C 4 PLC fatal error codes S7 200 SMART 798 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 848: ...Ordering information F 6 Human Machine Interface devices S7 200 SMART 848 System Manual V2 3 07 2017 A5E03822230 AF ...