178
5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
*1 Local devices and file registers per program cannot be used as setting data.
Processing details
This instruction reads clock data from a CPU module on another station.
Precautions
This instruction is applicable to the QJ71LP21 or QJ71BR11 with the function version B or later.
Program example
• The following program reads out clock data from the QCPU on the station number 2 (target station) and stores the clock
data in the station number 1 (host station).
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
(s1)
(s2)
(s3)
(d1)
(d2)
[Structured ladder/FBD]
[ST]
IF((Var_Flag_Exe=TRUE) AND (SB47=FALSE) AND (SW0A0.1=FALSE)) THEN
ZP_RTMRD_J(TRUE,"J1",4,2,H3FF,D300,Var_Result); (* Reads clock data from another station *)
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;
MOV(SM400, SW33, Var_ErrorCode); (* Stores error code *)
Reads clock data
from another station
Execution finished
Normal completion
Error completion
Stores error code
Process on completion of readout
Process on normal completion
Process on error completion
(* Process on completion of readout *)
(* 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: ......