Mitsubishi MELSEC-L series Programming Manual page 226

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

Advertisement

J_REQ, G_REQ
[ST]
IF (LDP(TRUE,Var_Flag_Inst)) THEN
END_IF;
IF((Var_Flag_Exe=TRUE) AND (SB47=FALSE) AND (SW0A0.1=FALSE)) THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction
5-180
5.4.8 REQ instruction
MOV(TRUE,H91,Var_ControlData[0]); (* Sets execution/error completion type *)
MOV(TRUE,K3,Var_ControlData[2]); (* Sets channel used by host station *)
MOV(TRUE,H0,Var_ControlData[3]); (* Sets target station's CPU type *)
MOV(TRUE,K1,Var_ControlData[4]); (* Sets target station network number *)
MOV(TRUE,K2,Var_ControlData[5]); (* Sets target station number *)
MOV(TRUE,K0,Var_ControlData[6]);
MOV(TRUE,K5,Var_ControlData[7]); (* Sets number of resends *)
MOV(TRUE,K0,Var_ControlData[8]); (* Sets monitoring time *)
MOV(TRUE,K3,Var_ControlData[9]); (* Sets data length by the word *)
MOV(TRUE,H10,Var_DemandData[0]);(* Sets request data *)
MOV(TRUE,H2,Var_DemandData[1]);
MOV(TRUE,H3,Var_DemandData[2]);
JP_REQ(TRUE,1,Var_ControlData,Var_DemandData,Var_ResponseData,Var_Result);
(* Process on completion *)
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;
(* Performs transient request to another station *)
(* Execution finished *)
(* Normal completion *)
(* Error completion *)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents