62
5 MODULE DEDICATED INSTRUCTION
5.3 Serial Communication Instruction
Program example
• The following program receives data using the bidirectional protocol and stores the data in the devices starting from D10.
(For the Q series C24 whose I/O signals are X/Y00 to X/Y1F)
[Structured ladder/FBD]
[ST]
IF(X3=TRUE)THEN
MOVP(TRUE, 1, Var_ControlData[0]); (* Sets receive channel to 1 *)
MOVP(TRUE, 10, Var_ControlData[3]); (* Sets allowable number of words for receive data to 10 *)
G_BIDIN(TRUE, H00, Var_ControlData, D10, Var_Result); (* Receives data *)
END_IF;
IF((Var_Result[0]=TRUE)&(Var_Result[1]=FALSE))THEN
BMOV(TRUE, D10, Var_ControlData[2], D110); (* Stores receive data *)
END_IF;
Sets receive channel
to 1
Sets allowable number
of words for receive data
to 10 words
Receives data
Stores receive data
Содержание 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: ......