5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
193
5
[ST]
IF( Var_Flag_Exe = TRUE ) (* Execution flag *)
MOV( TRUE, H107, Var_ControlData[1]); (* Sets control data *)
MOV( TRUE, 3, Var_ControlData[2]);
MOV( TRUE, 0, Var_ControlData[3]);
MOV( TRUE, H2101, Var_NetworkStruct[0] ); (* Sets data of network configuration setting *)
MOV( TRUE, H0, Var_NetworkStruct[1] );
MOV( TRUE, 32, Var_NetworkStruct[2] );
MOV( TRUE, H0, Var_NetworkStruct[3] );
MOV( TRUE, 16, Var_NetworkStruct[4] );
MOV( TRUE, H2102, Var_NetworkStruct[5] );
MOV( TRUE, H20, Var_NetworkStruct[6 ] );
MOV( TRUE, 32, Var_NetworkStruct[7] );
MOV( TRUE, H10, Var_NetworkStruct[8] );
MOV( TRUE, 16, Var_NetworkStruct[9] );
MOV( TRUE, H2103, Var_NetworkStruct[10] );
MOV( TRUE, H40, Var_NetworkStruct[11] );
MOV( TRUE, 32, Var_NetworkStruct[12] );
MOV( TRUE, H20, Var_NetworkStruct[13] );
MOV( TRUE, 16, Var_NetworkStruct[14] );
END_IF;
IF( Var_Flag_Exe = TRUE ) (* Execution flag *)
MOV( TRUE, H4, Var_ReservStData[0] ); (* Sets data of reserved station specification *)
END_IF;
IF( Var_Flag_Exe = TRUE ) (* Execution flag *)
MOV( TRUE, H4, Var_ErrorInvalidData[0] ); (* Sets data of error invalid station setting *)
END_IF;
IF( Var_Flag_Exe = TRUE ) (* Execution flag *)
GP_CCPASET(TRUE, H0, Var_ControlData, Var_NetworkStruct, Var_ReservStData, Var_ErrorInvalidData, Var_Result); (* Performs writing *)
RST( TRUE, Var_Flag_Exe ); (* Turns execution flag OFF *)
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;
(* 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: ......