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


 
5-230
5.4 Network Dedicated Instruction
5.4.27 BUFRCV instruction
ZP_BUFRCV
[ST]
IF(SM400=TRUE)THEN
(* Always ON *)
MOV(TRUE,U0\G20480,K4M0);
(* Open completion signal/connection 1 open completion signal *)
MOV(TRUE,U0\G20482,K4M20);
(* Open request signal/connection 1 open request signal *)
MOV(TRUE,U0\G20485,K4M40);
(* Fixed buffer receive status signal/fixed buffer 1 receive status signal *)
END_IF;
(* Program to receive fixed buffer number 1 (main program) *)
IF((X19=TRUE) AND (M0=TRUE) AND (M40=TRUE) AND (M500=FALSE))THEN
(* Initialization normal completion signal/connection 1 normal open completion signal *)
(* Fixed buffer 1 receive status signal/receive instruction completion signal *)
PLS(TRUE,Var_Flag_Exe);
(* Receive instruction 1PLS *)
END_IF;
IF(Var_Flag_Exe=TRUE)THEN
(* Receive instruction 1PLS *)
ZP_BUFRCV(TRUE,"U0",1,Var_ControlData,D500,Var_Result);
(* Reads data in fixed buffer communication *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
ELSE (* Error completion *)
END_IF;
END_IF;
(* Process on normal completion *)
(* Process on error completion *)