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


 
5.4 Network Dedicated Instruction
5.4.21 RTMWR instruction
5-209
Z_RTMWR_J, Z_RTMWR_U
5
MODULE DEDICATED
INSTRUCTION
Z_RTMWR_J,
Z_RTMWR_U
[ST]
IF (Var_Flag_Inst=TRUE) THEN
MOV(TRUE,H38,Var_ClockData[0]); (* Sets clock data *)
MOV(TRUE,H0,Var_ClockData[1]);
MOV(TRUE,H8,Var_ClockData[2]);
MOV(TRUE,H3000,Var_ClockData[3]);
MOV(TRUE,H0,Var_ClockData[4]);
END_IF;
IF((Var_Flag_Exe=TRUE) AND (SB47=FALSE) AND (SB0A0=FALSE)) THEN
ZP_RTMWR_J(TRUE,"J1",5,H0FF,H3FF,Var_ClockData,Var_Result);
(* Writes clock data to other stations*)
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, SW34, Var_ErrorCode);(* Stores error code *)
(* Process on completion of writing *)
(* Process on normal completion *)
(* Process on error completion *)