176
5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
Program example
• The following program remotely switches the QCPU on the station number 2 (target station) to STOP.
[Structured ladder/FBD]
[ST]
IF((Var_Flag_Exe=TRUE) AND (SB47=FALSE) AND (SW0A0.1=FALSE)) THEN
ZP_RSTOP_J(TRUE,"J1",3,2,H3FF,H1,Var_Result); (* Performs remote STOP *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
ELSE (* Error completion *)
END_IF;
END_IF;
MOV(SM400, SW32, Var_ErrorCode); (* Stores error code *)
Performs remote
STOP
Execution finished
Normal completion
Error completion
Stores error code
Process on completion
Process on normal completion
Process on error completion
(* Process on completion *)
(* Process on normal completion *)
(* Process on error completion *)
Summary of Contents for MELSEC System Q
Page 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Page 2: ......
Page 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Page 309: ...I 307 MEMO ...
Page 315: ......