Mitsubishi MELSEC-L series Programming Manual page 182

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

Advertisement

G_RLPASET
[ST]
FROM(TRUE, H0, H5E4, 28, K4SB40);
FROM(TRUE, H0, H640, 448, SW40);
IF((SM402=TRUE) & (SB6E=TRUE))THEN
END_IF;
IF(Var_Flag_Inst=TRUE)THEN
GP_RLPASET(TRUE, H00, Var_ControlData, Var_SlaveStation,
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
5.3 CC-Link Instruction
5-136
5.3.7 RLPASET instruction
SET(TRUE, Var_Flag_Inst);
MOV(TRUE, 0, Var_ControlData[0]);
MOV(TRUE, 15, Var_ControlData[1]);
MOV(TRUE, 3, Var_ControlData[2]);
MOV(TRUE, 3, Var_ControlData[3]);
MOV(TRUE, 1, Var_ControlData[4]); (* Sets number of automatic return modules *)
MOV(TRUE, 0, Var_ControlData[5]);
MOV(TRUE, 0, Var_ControlData[6]);
MOV(TRUE, 0, Var_ControlData[7]);
MOV(TRUE, H2101, Var_SlaveStation[0]);
(* First module: local station, 1-station occupy, station number 1 *)
MOV(TRUE, H0102, Var_SlaveStation[1]);
(* Second module: Remote I/O station, 1-station occupy, station number 2*)
MOV(TRUE, H0103, Var_SlaveStation[2]);
(* Third module: Remote I/O station, 1-station occupy, station number 3 *)
MOV(TRUE, H4, Var_ReservedStation[0]);
MOV(TRUE, H2, Var_ErrorInvalidStation[0]);
MOV(TRUE, 100, Var_BufferSize[0]);
MOV(TRUE, 100, Var_BufferSize[1]);
MOV(TRUE, 0, Var_BufferSize[2]);
Var_ReservedStation, Var_ErrorInvalidStation, Var_BufferSize,
Var_Result);
IF(Var_Result[1]=FALSE)THEN
SET(TRUE, SB3);
SET(TRUE, Var_Flag_Exe);
ELSE
(* Process on error completion *)
END_IF;
RST(TRUE, Var_Flag_Inst);
(* Reads SB0040 to SB01FF *)
(* Reads SW0040 to SW01FF*)
(* Parameter setting command *)
(* Parameter setting command ON *)
(* Clear completion status *)
(* Sets all of setting flags to Valid *)
(* Sets number of connected modules *)
(* Sets number of retries *)
(* Sets operation specification when CPU is down to stop *)
(* Sets scan mode specification to asynchronous *)
(* Set delay time specification *)
(* Reserved station specification: station number 3 *)
(* Error invalid station specification: station number 2 *)
(* First module: local module, send buffer 100 words *)
(* Second module: local station, receive buffer 100 words *)
(* Third module: local station, auto-refresh buffer 0 words *)
(* Performs parameter setting *)
(* Execution finished *)
(* Normal completion *)
(* Refresh command *)
(* Control program start command *)
(* Error completion *)
(* Turns parameter setting command OFF *)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents