66
PROSEC T3H
2. Expanded Functions
2.4.6 Network data receive (RECV)
FUN 240
RECV
Network data receive
Expression
Input
─
[
A
RECV
B
]
─
Output
Function
This instruction reads the designated range of register data from another T3H through the network.
(Network: TOSLINE-S20LP or Ethernet)
The transfer source register (target-station) is designated by
A+5
and
A+6
.
The transfer destination register (self-station) is designated by
A+3
and
A+4
.
The transfer size (number of words) is designated by
A+2
. The maximum transfer size is 128 words (S20LP),
or 485 words (Ethernet).
The designation method of the target-station is different between S20LP and Ethernet.
This instruction is also used for other functions of the Ethernet module. Refer to the Ethernet module (EN311)
manual for detailed functions used for the EN311.
Execution condition
Input Operation Output
ERF
OFF No
execution
OFF
−
ON During
execution
OFF
−
Normal
complete
ON
−
When error is occurred (see Note)
ON
Set
Operand
Name
Device
Register
Con-
Index
X Y S L R Z T. C. I O X
W
Y
W
S
W
L
W
R
W
W T C D F I
W
O
W
I J K
stant
A
Transfer
parameter
√
√
√
√
√
√
√
√
√
√
√
B
Status
√
√
√
√
√
√
√
√
√
√
< In case of S20LP >
< In case of Ethernet >
F C
B 8
7
0
F
C B
8 7
0
A
MID
CH
Target station No.
A
MID CH
0
(fixed)
A+1
0 (fixed)
A+1
Request command
A+2
Transfer size
A+2
Transfer size
A+3
Register type (self-station)
A+3
Register type (self-station)
A+4
Leading address (self-station)
A+4
Leading address (self-station)
A+5
Register type (target-station)
A+5
Register type (target-station)
A+6
Leading address (target-station)
A+6
Leading address (target-station)
A+7
Response time limit
A+7
Response time limit
A+8
Target-station IP address
A+9
A+10
Target-station UDP port No.
Note) Parameters for the Ethernet varies depending on the request command. Above figure shows the
parameters for the register read/write command (H0021). Refer to the EN311 manual.