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


 
5.4 Network Dedicated Instruction
5.4.13 RECV instruction
5-179
J_RECV, G_RECV
5
MODULE DEDICATED
INSTRUCTION
J_RECV, G_RECV
[ST]
IF (SM400=TRUE) THEN
MOV(TRUE,H80,Var_ControlData[0]); (* Sets error completion type *)
MOV(TRUE,5,Var_ControlData[2]); (* Sets host station channel *)
MOV(TRUE,0,Var_ControlData[6]);
MOV(TRUE,0,Var_ControlData[7]);
MOV(TRUE,0,Var_ControlData[8]); (* Sets arrival monitoring time *)
MOV(TRUE,0,Var_ControlData[10]);
END_IF;
IF((SB34=TRUE) AND (SB47=FALSE)) THEN
JP_RECV(TRUE,1,Var_ControlData,D770,Var_Result);(* Performs readout *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
ELSE (* Error completion *)
MOV(TRUE, Var_ControlData[1], Var_ErrorCode);(* Stores error code *)
END_IF;
END_IF;
(* Process on completion of readout *)
(* Process on normal completion *)
(* Process on error completion *)