Parameter
|
Type
|
Description
|
---|---|---|
RST
|
bit
|
Setting this bit to 1:
The error code is found in the STATUS word.
|
Parameter
|
Type
|
Description
|
---|---|---|
BUF
|
word table
|
This input and output parameter defines the address of the first %MWi word of the buffer in order to receive the message.
|
MANAGNT
|
word table
|
Management table common to all DFBs
|
Parameter
|
Type
|
Description
|
---|---|---|
ERROR
|
bit
|
This output bit is set to 1 if the exchange is not carried out correctly.
The STATUS word indicates the type of error that has occurred.
|
Parameter
|
Type
|
Write/Read Variables
|
Description
|
---|---|---|---|
FRM
|
double word
|
W
|
This variable defines the IP address of the remote machine on which the client is connected.
By default, FRM = 0, and the DFB awaits the message sent by the unique remote client connected to the local service port of the PLC.
|
PORT
|
word
|
W
|
This variable defines the number of the local port to which the remote client is connected.
|
SIZE
|
word
|
W
|
This variable defines the size of the message to be sent, from 0 to 8192 bytes.
|
ACTIVITY
|
bit
|
R
|
This variable is set to 0 by the DFB when the exchange is finished. If the ERROR output bit is set to 0, the ACTIVITY bit indicates that the message has been received successfully. However, if the ERROR bit is set to 1, the ACTIVITY bit indicates that the exchange finished, but has errors.
|
INHIB
|
bit
|
W
|
This variable allows the error warning to be inhibited. The ERROR output bit and the STATUS word remain at 0 (execution of the block is not interrupted).
|
STATUS
|
word
|
R
|
This word is only significant if the ERROR output bit is set to 1. It indicates the error code that occurred during the exchange (each word bit set to 1 indicates an error).
|
LENGTH
|
word
|
R
|
This variable contains the number of bytes received if the ERROR output bit is set to 0.
|