Mitsubishi MELSEC-L series Programming Manual page 271

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

Advertisement

[ST]
IF(LDP(TRUE,X21)=TRUE)THEN
SET(TRUE,Var_Flag_Exe);
END_IF;
IF((Var_Flag_Exe=TRUE) AND (U0\G9858.F=TRUE))THEN
MOVP(TRUE,H200,Var_ControlData[0]);
(* Sets to inquire to server *)
MOVP(TRUE,K0,Var_ControlData[2]);
(* Sets to read the first mail *)
MOVP(TRUE,K0,Var_ControlData[9]);
(* Sets to adjust data length to that of the received mail *)
MOVP(TRUE,K0,Var_ControlData[10]);
(* Sets to adjust header data length to that of the received mail *)
ZP_MRECV(TRUE,"U0",Var_ControlData,D100,Var_Result);
(* Reads received e-mail *)
RST(TRUE,Var_Flag_Exe);
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.23 MRECV instruction
ZP_MRECV
5
5-225

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents