Libraries
9.5 USS library
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
549
9.5.2.2
USS_INIT instruction
Table 9- 23 USS_INIT instruction
LAD / FBD
STL
Description
CALL USS_INIT, Mode, Baud,
Port, Active, Done, Error
The USS_INIT instruction is used to enable and initialize,
or to disable Siemens drive communications. Before any
other USS instruction can be used, the USS_INIT instruc-
tion must be executed without errors. The instruction
completes and the "Done" bit is set immediately, before
continuing to the next instruction.
The instruction is executed on each scan when the "EN" input is on.
Execute the USS_INIT instruction only once for each change in communications state. Use
an edge detection instruction to pulse the "EN" input on. To change the initialization
parameters, execute a new USS_INIT instruction.
Table 9- 24 Parameters for the USS_INIT instruction
Inputs/outputs
Data type
Operands
Mode, Port
BYTE
VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *VD, *AC, *LD
Baud, Active
DWORD
VD, ID, QD, MD, SD, SMD, LD, Constant, AC *VD, *AC, *LD
Done
BOOL
I, Q, M, S, SM, T, C, V, L
Error
BYTE
VB, IB, QB, MB, SB, SMB, LB, AC, *VD, *AC, *LD
Table 9- 25 USS_INIT parameter descriptions
Parameter
Description
Mode
This value selects the communications protocol:
•
An input value of 1 assigns the port to USS protocol and enables the protocol.
•
An input value of 0 assigns the port to PPI and disables the USS protocol.
Baud
Sets the baud rate at 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200
Port
Sets the physical communication port (0 = RS485 integrated in CPU, 1 = RS485 or
RS232 located on the optional CM01 signal board)
Active
Indicates which drives are active. Some drives only support addresses 0 through
30.
Done
Turned on when the USS_INIT instruction completes
Error
This output byte contains the result of executing the instruction. The USS protocol
execution error codes (Page 560) define the error conditions that could result from
executing the instruction.
Содержание 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 ...