Mitsubishi MELSEC-L series Programming Manual page 191

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,K1,Var_ControlData[2]);
MOV(TRUE,H0,Var_ControlData[3]);
MOV(TRUE,K1,Var_ControlData[4]);
MOV(TRUE,K4,Var_ControlData[5]);
MOV(TRUE,K0,Var_ControlData[6]);
MOV(TRUE,K5,Var_ControlData[7]);
MOV(TRUE,K0,Var_ControlData[8]);
MOV(TRUE,K5,Var_ControlData[9]);
MOV(TRUE,K0,Var_ControlData[10]);
END_IF;
IF((Var_Flag_Exe=TRUE) AND (SB47=FALSE) AND (SW0A0.3=FALSE)) THEN
J_SREAD(TRUE,1,Var_ControlData,D250,D700,Var_Result,Var_Flag);
END_IF;
IF(Var_Result[0]=TRUE)THEN
(* Process on completion of readout *)
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
J_SREAD, G_SREAD
(* Sets error completion type *)
(* Sets channel used by host station *)
(* Sets target station's CPU type *)
(* Sets target station network number *)
(* Sets target station number*)
(* Sets number of resends *)
(* Sets monitoring time *)
(* Sets data length by the word *)
(* Performs readout *)
(* Execution finished *)
(* Normal completion *)
(* Error completion *)
5.4.2 SREAD instruction
5
5-145

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents