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


 
7.9 SOCRDATA Instruction
7-25
7
SOCKET COMMUNICATION
FUNCTION INSTRUCTION
S_SOCRDATA
S_SOCRDATA
Control Data
Precautions
(1) Use the Built-in Ethernet port QCPU of which the function version is B or later and the first
five digits of the serial number are '11012' or higher.
(2) Use the LCPU other than L02SCPU and L02SCPU-P.
Program Example
The following program reads the receive data length of the connection number 1.
[Structured ladder/FBD]
[ST]
IF((Var_Flag_Inst=TRUE) & (SD1282.0=TRUE) &(SD1286.0=TRUE))THEN
SP_SOCRDATA(TRUE, "00", 1, Var_ControlData, 1, Var_Data);
(* Reads receive data length of connection number 1 *)
END_IF;
Device Item Setting data Setting range Setting side
[0]
System area

[1]
Completion status
The instruction application status is stored.
0 : Normal completion
Other than 0 : Error completion (error code)
System
s2
s2
Reads receive data
length of the
connection number 1