Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
7-24
7.9 SOCRDATA Instruction
S_SOCRDATA
7.9 SOCRDATA Instruction
S_SOCRDATA
Function
This instruction reads data for the specified number of words from the socket communication
receive data area of a specified connection, and stores it.
S(P)_SOCRDATA
P: Executing
condition
:
indicates the following instructions.
S_SOCRDATA SP_SOCRDATA
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]
n:
Number of read data (1 to 1024 words) ANY16
Output argument ENO:
Execution result :Bit
d:
Variable that stores read data ANY16
Setting
data
Internal device
R, ZR
J\
U\G
Zn
Constant
K, H
Others
Bit Word Bit Word


n 

QnUDE(H)
LCPU
S_SOCRDATA
EN
ENO
d
s1
s2
ST
S_SOCRDATA
(EN, Un, s1, s2, n, d);ENO:=
Un
n
Structured ladder/FBD
s1
s2
d