
6 F 3 B 0 3 6 2
4.2 Ethernet Port Instruction Specifications
Before discussing the software side of the Ethernet Port setup procedure, this section presents an overview of the SEND and RECV instructions, which are the instructions that are used to control the Ethernet Port from T2N user programs. Ethernet Port control and transmission control (PC link protocol transmission and socket interface transmission) are performed solely using the SEND and RECV instructions.
See the individual items for details on the actual requests sent to the Ethernet Port.
(1)Instruction format
Figure 4.2 shows the formats of the SEND and RECV instructions.
|
|
|
| Input |
|
|
| [ A S E N D | B ] |
|
| Output |
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
|
|
|
| Input |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||
|
|
|
|
|
|
| [ A R E C V | B ] |
|
| Output |
|
|
|
|
|
|
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
Operand |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Name |
| Device |
|
|
|
|
| Register |
|
|
|
|
|
|
|
|
|
|
|
| INDEX |
|
| Con- | Index | ||||||
|
|
|
|
| X | Y | S | L | R | Z | X | Y | S | L | R | W | T | C | D | F | I | O | I | J |
| K | stant |
|
| ||||
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
| W | W | W | W | W |
|
|
|
|
|
| W | W |
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A |
| Transfer parameter |
|
|
|
|
|
|
| ü | ü | ü | ü | ü | ü | ü | ü | ü | ü | ü |
|
|
|
|
|
| ü | ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
B |
| Status |
|
|
|
|
|
|
|
|
| ü | ü | ü | ü | ü | ü | ü | ü | ü |
| ü |
|
|
|
|
|
| ü | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
| Input | Operation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Output |
| ERF | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
| OFF | No execution |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OFF |
| OFF | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||
| ON | Execution | Transmission port instruction busy/instruction execution in |
|
| OFF |
| OFF | |||||||||||||||||||||||||
|
|
|
|
|
|
| progress (response wait) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||
|
|
|
|
|
|
| Response reception complete (normal complete) |
|
| ON |
| OFF | |||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
| Instruction error |
|
|
|
|
|
|
|
|
|
|
|
|
| ON |
| ON | ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 4.2 SEND/RECV Instruction Formats
<Important items>
a.ERF is the S0051 special relay. See the
b.For these instructions, instruction execution starts at the point the input changes state from off to on.
c.Since these instructions span multiple scans, applications must hold the input in the on state until the output goes to the on state.
If the input is turned off before the output goes on, the system will not be able to execute the following instruction processing normally.
d.After instruction execution terminates, it is possible to start execution again by applying a new input.
⎯ 32 ⎯