6F8C0904 39
4.4 Function Block Specifications for EN311 Control
4
4.4 Function Block Specifications for EN311 Control
Before preparing for operations of the EN311 software, this section provides an overview
of the following instructions used to control the EN311 from the S controller user
program.
• USEND_T function block
• URCV_T function block
EN311 module control and transmission control (PC link protocol transmission and
socket interface transmission) are performed solely using above function. Refer to "The
V Series LD/FBD/SFC Instructions Manual" for MREAD instruction. See the individual
items described in the section 4.5, "EN311 Reset (Reset Request)" or after for details on
the actual requests sent to the EN311.
4.4.1 USED_T function block
(1) Parameters
Supplementary information on input parameters
Data structure of request command
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
1000W
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
USEND_T
REQ DONE
CMD ERROR
P STATUS
N
Error
Socket number or error status