Mitsubishi Electric MELSEC-L Special Instructions Manual page 175

Melsec-q/l structured programming manual
Hide thumbs Also See for MELSEC-L:
Table of Contents

Advertisement

Program example
• The following program remotely switches the QCPU on the station number 2 (target station) to RUN.
[Structured ladder/FBD]
[ST]
IF((Var_Flag_Exe=TRUE) AND (SB47=FALSE) AND (SW0A0.1=FALSE)) THEN
Z_RRUN_J(TRUE,"J1",3,2,H3FF,H1,Var_Result); (* Performs remote RUN *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
(* Process on completion *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
(* Process on normal completion *)
ELSE (* Error completion *)
(* Process on error completion *)
END_IF;
END_IF;
MOV(SM400,SW32,Var_ErrorCode); (* Stores error code *)
Process on completion
Process on normal completion
Process on error completion
Performs
remote RUN
Execution finished
Normal completion
Error completion
Stores error code
5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
5
173

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q

Table of Contents