Libraries
9.4 Open user communication library
S7-200 SMART
518
System Manual, V2.3, 07/2017, A5E03822230-AF
Note that UDP messages are not guaranteed to be delivered. There is no error returned if
the remote device is not present.
Table 9- 19 Parameters of the UDP_SEND instruction
Parameter
Declaration Data type
Description
EN
IN
BOOL
Enable input
Req
IN
BOOL
The CPU starts the send operation if Req =
TRUE. If Req = FALSE, then the outputs show
the current status of the send operation.
ConnID
IN
WORD
The Connection ID (ConnID) is the number of the
connection for this send operation (defined during
the connect process with UDP_CONNECT).
DataLen
IN
WORD
The DataLen is the number of bytes to transmit (1
to 1024).
DataPtr
IN
DWORD
The DataPtr is the pointer to the data to be sent.
This is an S7-200 SMART pointer to I, Q, M, or V
memory (for example, &VB100).
IPaddr1
...
IPaddr4
IN
BYTE
These are the four IP address octets. IPaddr1 is
the most significant byte and IPaddr4 is the least
significant byte of the IP address.
RemPort
IN
WORD
The RemPort is the port number on the remote
device. The remote port number range is 1 to
49151.
Done
OUT
BOOL
The instruction sets the Done output when the
connect operation is complete with no errors.
Busy
OUT
BOOL
The instruction sets the Busy output while the
connection operation is in progress.
Error
OUT
BOOL
The instruction sets the Error output when the
connection operation is complete with an error.
Refer to "Open user communication library in-
struction error codes" (Page 524) for further in-
formation.
Status
OUT
BYTE
The Status output shows the error code if the
instruction sets the Error output. Status is zero
(no error) if the instruction sets the Busy or Done
outputs.
Содержание 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 ...