315-4PN33
The following connection-oriented protocol is supported with FBs for
open communication via Industrial Ethernet:
n UDP according to RFC 768 (with connection type 13h):
–
In this case, when calling the sending block you have to
specify the address parameters of the receiver (IP address
and port number).
– During data transmission, information on the length and the
end of the message is also transmitted.
– In order to be able to use the sending and receiving blocks first
you have to configure the local communications access point
at both sides.
– With each new call of the sending block, you re-reference the
remote partner by specifying its IP address and its port
number.
– If you have specified the length of the data to be received
greater than the length of the data to be sent, the receive block
will copy the received data completely into the receive range.
After this, it will set NDR to TRUE and write RCVD_LEN with
the length of the sent data.
– If you have specified the length of the data to be received less
than the length of the sent data, the receive block will not copy
any data into the receive range but instead will supply the fol-
lowing error information: ERROR = 1, STATUS = 8088h.
Those in the following listed UTDs and FBs serve for "open communi-
cation" with other Ethernet capable communication partners via your
user program. These blocks are part of the Siemens SIMATIC Man-
ager. You will find these in the "Standard Library" at "Communication
Blocks". Please consider when using the blocks for open communica-
tion that the partner station does not have to be configured with these
blocks. This can be configured with AG_SEND / AG_RECEIVE or
IP_CONFIG.
UDTs
FB Label Connection-oriented protocols:
TCP native as per RFC 793,
ISO on TCP as per RFC 1006
Connectionless protocol: UDP
as per RFC 768
UDT 65 TCON_PAR Data structure for assigning con-
nection parameters
Data structure for assigning
parameters for the local commu-
nications access point
UDT 66 TCON_ADR Data structure for assigning
addressing parameters for the
remote partner
FBs
FB Label Connection-oriented protocols:
TCP native as per RFC 793,
ISO on TCP as per RFC 1006
Connectionless protocol: UDP
as per RFC 768
FB 63 TSEND Sending data
FB 64 TRCV Receiving data
Handling blocks
VIPA System 300SDeployment Ethernet communication - productive
Configure Open Communication
HB140 | CPU | 315-4PN33 | GB | 14-43 124