5 MODULE DEDICATED INSTRUCTION
5.3 Serial Communication Instruction
85
5
[ST]
PLS(X50, Var_Flag_Inst); (* Registration request pulse *)
IF(Var_Flag_Inst=TRUE)THEN
MOV(TRUE, 1, Var_ControlData[0]); (* Sets registration request *)
MOV(TRUE, H3E8, Var_ControlData[2]); (* Sets user frame number *)
MOV(TRUE, 10, Var_ControlData[3]); (* Sets number of registered bytes *)
MOV(TRUE, H3946, Var_Frame[0]); (* User frame 0 *)
MOV(TRUE, H3030, Var_Frame[1]); (* User frame 1 *)
MOV(TRUE, H3030, Var_Frame[2]); (* User frame 2 *)
MOV(TRUE, H4646, Var_Frame[3]); (* User frame 3 *)
MOV(TRUE, H3030, Var_Frame[4]); (* User frame 4 *)
TO(TRUE, 1, H08, H2000, 1); (* Sets write enable in flash ROM side *)
G_PUTE(TRUE, H08, Var_ControlData,Var_Frame[0], Var_Result); (* Registers user frame *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Execution finished *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
SET(TRUE, Var_Flag_Normal); (* Turns normal completion flag ON *)
ELSE (* Error completion *)
SET(TRUE, Var_Flag_Error); (* Turns error completion flag ON *)
END_IF;
END_IF;
Содержание 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: ......