Справочник Пользователя для Mitsubishi Electronics MELSEC Q series MELSEC L series

Скачать
Страница из 412
7-8
7.3 SOCRCV Instruction
 
SP_SOCRCV
7.3  
SOCRCV Instruction
SP_SOCRCV
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction reads receive data of a specified connection from the socket communication 
receive data area at the end process performed after the instruction execution.
SP_SOCRCV
Executing condition :
 indicates the following instruction.
SP_SOCRCV
Input argument
EN:
Executing condition
:Bit
Un:
Dummy ("U0")
:String
s1:
Connection number (1 to 16)
:ANY16
s2:
Variable that stores control data
:Array of ANY16 [0..1]
Output argument
ENO:
Execution result
:Bit
d1:
Start number of the device that stores receive data
:ANY16
d2:
Variable that turns ON during one scan upon completion of the 
instruction
d2[1] also turns ON at the time of error completion.
:Array of bit [0..1]
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
*1
*1
*1
*1
*1
*1
QnUDE(H)
LCPU
SP_SOCRCV
EN
ENO
d1
s1
s2
SP_SOCRCV
(EN, Un, s1, s2, d1, d2);
ENO:=
Un
d2
ST
Structured ladder/FBD
s1
s2
d1
d2