5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
113
5
[ST]
IF((Var_Flag_Inst=TRUE) (* Write request ON *)
&(Var_Flag_Exe=FALSE) (* Execution flag *)
&(SW83.E=FALSE))THEN (* Data link status of station number 63 *)
(* Sets control data *)
MOV(TRUE, 63, Var_ControlData[1]); (* Sets station number *)
MOV(TRUE, H4, Var_ControlData[2]); (* Sets access code and attribute code *)
MOV(TRUE, H111, Var_ControlData[3]); (* Sets buffer memory address *)
MOV(TRUE, 1, Var_ControlData[4]); (* Sets number of write points *)
(* Sets interlock signal storage device *)
MOV(TRUE, H4, Var_InterlockData[0]); (* Sets request device *)
MOV(TRUE, H104, Var_InterlockData[1]); (* Sets completion device and error code storage area device *)
MOV(TRUE, H1, Var_InterlockData[2]); (* Sets completion mode *)
(* Sets data to be written to intelligent device station *)
MOV(TRUE, 11, D10);
GP_RISEND(TRUE, H00, Var_ControlData, Var_InterlockData,D10, Var_Result); (* Performs writing *)
END_IF;
IF(MEP((Var_Flag_Inst=TRUE) & (SW83.E=FALSE)))THEN (* Write request is ON and data link status of station number 63 is OFF (rising pulse) *)
SET(TRUE, Var_Flag_Exe); (* Turns execution flag ON *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
ELSE (* Error completion *)
END_IF;
RST(TRUE, Var_Flag_Inst); (* Turns write request OFF *)
RST(TRUE, Var_Flag_Exe); (* Turns execution flag OFF *)
END_IF;
(* 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: ......