Mitsubishi MELSEC-L series Programming Manual page 251

Hide thumbs Also See for MELSEC-L series:
Table of Contents

Advertisement

[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",K1,Var_ControlData,D500,Var_Result);
(* Reads data in fixed buffer communication *)
END_IF;
IF(Var_Result[0]=TRUE)THEN
IF(Var_Result[1]=FALSE)THEN
(* Process on normal completion *)
ELSE
(* Process on error completion *)
END_IF;
END_IF;
5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction
(* Execution finished *)
(* Normal completion *)
(* Error completion *)
5.4.17 BUFRCV instruction
ZP_BUFRCV
5
5-205

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents