
Libraries
9.4 Open user communication library
S7-200 SMART
516
System Manual, V2.3, 07/2017, A5E03822230-AF
Example
This is an example usage of the TCP_RECV instruction:
9.4.2.6
UDP_SEND instruction
The UDP_SEND instruction transmits the requested number of bytes (DataLen) from the
requested buffer location (DataPtr) to the device specified by the IP address (IPaddr1 –
IPaddr4) and port (RemPort). This instruction is used only for UDP protocol and connections
created with UDP_CONNECT.
LAD/FBD
STL
Description
UDP_SEND Req, ConnID,
DataLen, DataPtr, IPaddr1,
IPaddr2, IPaddr3, IPaddr4,
RemPort, Done, Busy, Er-
ror, Status
The UDP_SEND instruction transmits the requested number of
bytes from the requested buffer location to the device specified by
the IP address and port.
The UDP_SEND instruction initiates sending the specified number of bytes when the
following occur:
●
The program calls the instruction with the Req input set to TRUE.
●
The connection is not currently busy with another send operation.
The Req input is level-triggered. It is recommended that you put a positive edge trigger on
the Req input so that the instruction does not initiate unintended send operations. The
program ignores the Req input while the UDP_SEND is busy. The Done, Busy, and Error
outputs and the Status output byte show the status of the UDP_SEND for each call.
Содержание 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 ...