![Mitsubishi Electric MELSEC System Q Скачать руководство пользователя страница 90](http://html.mh-extra.com/html/mitsubishi-electric/melsec-system-q/melsec-system-q_special-instructions-manual_239154090.webp)
88
5 MODULE DEDICATED INSTRUCTION
5.3 Serial Communication Instruction
[ST]
PLS(X51, Var_Flag_Inst); (* Read request pulse *)
IF(Var_Flag_Inst=TRUE)THEN
MOV(TRUE, 0, Var_ControlData[0]);
MOV(TRUE, H3E8, Var_ControlData[2]); (* Sets user frame number *)
MOV(TRUE, 80, Var_ControlData[3]); (* Sets allowable number of bytes for read data *)
FMOV(TRUE, 0, 40, Var_Frame[0]); (* Clears user frame to 0 *)
G_GETE(TRUE, H08, Var_ControlData, Var_Frame[0], Var_Result); (* Reads 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: ......