Mitsubishi MELSEC-L series Programming Manual page 202

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

Advertisement

J_SWRITE, G_SWRITE
(2) Program on the request target (station number 3) of the SWRITE instruction
[ST]
(1) Program on the request source (station number 2) of the SWRITE instruction
IF (LDP(TRUE,Var_Flag_Inst)) THEN
END_IF;
IF (LDP(TRUE,Var_Flag_Inst2)) THEN
END_IF;
IF((Var_Flag_Exe=TRUE) AND (SB47=FALSE) AND (SW0A0.2=FALSE)) THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
(2) Program on the request target (station number 3) of the SWRITE instruction
IF(Var_Flag=TRUE) THEN
END_IF;
5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction
5-156
5.4.4 SWRITE instruction
MOV(TRUE,H81,Var_ControlData[0]);
MOV(TRUE,K2,Var_ControlData[2]);
MOV(TRUE,H0,Var_ControlData[3]);
MOV(TRUE,K1,Var_ControlData[4]);
MOV(TRUE,K3,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]);
MOV(TRUE,K10,D750);
MOV(TRUE,K20,D751);
MOV(TRUE,K30,D752);
MOV(TRUE,K40,D753);
JP_SWRITE(TRUE,1,Var_ControlData,D750,D300,Var_Result,Var_Flag);
(* Process on completion of writing *)
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;
BMOV(TRUE,D300,K4,D500);
(* Stores data of devices from D300 to D303 to devices from D500 to D503 *)
Stores data of
devices from D300
to D303 to devices
from D500 to D503
(* Sets execution/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 *)
(* Sets write data to D750 to D753 *)
(* Performs writing *)
(* Execution finished *)
(* Normal completion *)
(* Error completion *)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents