Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5-206
5.4 Network Dedicated Instruction
5.4.20 RTMRD instruction
Z_RTMRD_J, Z_RTMRD_U
Function
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).
[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 *)