164
5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
[ST]
IF(Var_Flag_Inst=TRUE)THEN
MOV(TRUE,H91,Var_ControlData[0]); (* Sets execution/error completion type *)
MOV(TRUE,3,Var_ControlData[2]); (* Sets channel used by host station *)
MOV(TRUE,H0,Var_ControlData[3]); (* Sets target station's CPU type *)
MOV(TRUE,1,Var_ControlData[4]); (* Sets target station network number *)
MOV(TRUE,2,Var_ControlData[5]); (* Sets target station number *)
MOV(TRUE,0,Var_ControlData[6]);
MOV(TRUE,0,Var_ControlData[8]); (* Sets monitoring time *)
MOV(TRUE,3,Var_ControlData[9]); (* Sets data length by the word *)
MOV(TRUE,H10,Var_DemandData[0]); (* Sets request data *)
MOV(TRUE,H2,Var_DemandData[1]);
MOV(TRUE,H3,Var_DemandData[2]);
END_IF;
IF((Var_Flag_Exe=TRUE) AND (SB47=FALSE) AND (SW0A0.1=FALSE)) THEN
MOV(TRUE, 5, Var_ControlData[7]); (* Sets number of resends *)
JP_REQ(TRUE,1,Var_ControlData,Var_DemandData,Var_ResponseData,Var_Result); (* Performs transient request to another station *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
ELSE (* Error completion *)
MOV(TRUE, Var_ControlData[1], Var_ErrorCode); (* Stores error code *)
END_IF;
END_IF;
(* Process on completion *)
(* Process on normal completion *)
(* Process on error completion *)
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......