Mitsubishi MELSEC-L series Programming Manual page 209

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

Advertisement

[ST]
IF (LDP(TRUE,Var_Flag_Inst)) THEN
MOV(TRUE,H81,Var_ControlData[0]);
MOV(TRUE,K3,Var_ControlData[2]);
MOV(TRUE,H5,Var_ControlData[3]);
MOV(TRUE,K1,Var_ControlData[4]);
MOV(TRUE,K2,Var_ControlData[5]);
MOV(TRUE,K0,Var_ControlData[6]);
MOV(TRUE,K5,Var_ControlData[7]);
MOV(TRUE,K0,Var_ControlData[8]);
MOV(TRUE,K4,Var_ControlData[9]);
MOV(TRUE,K0,Var_ControlData[10]);
END_IF;
IF (LDP(TRUE,Var_Flag_Inst2)) THEN
MOV(TRUE,K10,D750);
MOV(TRUE,K20,D751);
MOV(TRUE,K30,D752);
MOV(TRUE,K40,D753);
END_IF;
IF((Var_Flag_Exe=TRUE) AND (SB47=FALSE) AND (SW0A0.1=FALSE)) THEN
JP_WRITE(TRUE,1,Var_ControlData,D750,D300,Var_Result);(* Sends data *)
END_IF;
IF(Var_Result[0]=TRUE)THEN
(* Process on completion of sending *)
IF(Var_Result[1]=FALSE)THEN
(* Process on normal completion *)
ELSE
(* Process on error completion *)
MOV(TRUE, Var_ControlData[1], Var_ErrorCode);(* Stores error code *)
END_IF;
END_IF;
5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction
(* Sets execution/error completion type *)
(* Sets channel used by host station *)
(* Sets target station channel *)
(* Sets target station network number *)
(* Sets target station number *)
(* Sets number of resends *)
(* Sets monitoring time *)
(* Sets data length by the word *)
(*Sets send data to D750 to D753 *)
(* Execution finished *)
(* Normal completion *)
(* Error completion *)
5.4.5 SEND instruction
J_SEND, G_SEND
5
5-163

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents