Uss_Init Instruction - Siemens Simatic S7 Series System Manual

Hide thumbs Also See for Simatic S7 Series:
Table of Contents

Advertisement

9.2.2.2

USS_INIT instruction

Table 9- 2
USS_INIT instruction
LAD / FBD
STL
CALL USS_INIT, Mode, Baud,
Port, Active, Done, Error
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- 3
Parameters for the USS_INIT instruction
Inputs/outputs
Mode, Port
Baud, Active
Done
Error
Table 9- 4
Parameter
Mode
Baud
Port
Active
Done
Error
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
Data type
Operands
BYTE
VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *VD, *AC, *LD
DWORD
VD, ID, QD, MD, SD, SMD, LD, Constant, AC *VD, *AC, *LD
BOOL
I, Q, M, S, SM, T, C, V, L
BYTE
VB, IB, QB, MB, SB, SMB, LB, AC, *VD, *AC, *LD
USS_INIT parameter descriptions
Description
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.
Sets the baud rate at 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200
Sets the physical communication port (0 = RS485 integrated in CPU, 1 = RS485 or
RS232 located on the optional CM01 signal board)
Indicates which drives are active. Some drives only support addresses 0 through
30.
Turned on when the USS_INIT instruction completes
This output byte contains the result of executing the instruction. The USS protocol
execution error codes (Page 428) define the error conditions that could result from
executing the instruction.
Description
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.
Libraries
9.2 USS library instructions
417

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart series

Table of Contents