6F8C0904 41
4.4 Function Block Specifications for EN311 Control
4
4.4.2 URCV_T function block
(1) Parameters
Supplementary information on input parameters
Data structure of request command
(2) Functions
• For the EN311, this is the function block to request module control, TCP/IP protocol,
and/or UDP/IP protocol communication.
• When an execution request(REQ) becomes TRUE(ON) from FALSE(OFF), the N
number of received data words will be routed from receive data P with the contents of
the specified transmission command (CMD).
• The number of received data words, 1-1001 can be specified (It depends on the
socket service command).
• When the reception completes, the completion output(DONE) becomes TRUE(ON) for
one scanning time and the corresponding socket number is displayed on the STATUS.
Communication FB Socket Communication - Send
Diagram
Modification
EN input Put into pulses Index modification
− − −
Parameter Operand Type Constant Description Scope
Input
REQ
Boolean Execution request
CMD Pointer − Request command
P Pointer − Beginning address of the transmit
data storage area
N Unsigned integer Number of data words transmitted 1 to
1001W
Output
DONE
Boolean − Completion output
ERROR Boolean − Error
STATU
S
Integer − Socket number or error status
F0
CMD Destination EN311 module slot number
CMD+1 Socket service command
CMD+2 Request parameter
(Details differ according to services.)
:
Completion output
Transmit command
words transmitted
Transmit data
Execution request
URCV_T
REQ DONE
CMD ERROR
P STATUS
N
Error
Socket number or error status