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


 
5-198
5.4 Network Dedicated Instruction
5.4.17 ZNWR instruction
J_ZNWR
[ST]
IF(M111=TRUE)THEN (* Instruction flag ON *)
MOV( TRUE, 10, D750);
MOV( TRUE, 20, D751);
MOV( TRUE, 30, D752 );
MOV( TRUE, 40, D753 );
(* Stores data to be written to D750 to D753 *)
END_IF;
IF((M112=TRUE) &(SB47=FALSE) & (SW0A0.2=FALSE)) THEN
JP_ZNWR(TRUE,1,3,D300,4, D750, Var_Result); (* Performs writing *)
END_IF;
IF(Var_Result[0]=TRUE)THEN (* Completion of writing *)
IF(Var_Result[1]=FALSE)THEN (* Normal completion *)
ELSE (* Error completion *)
END_IF;
END_IF;
IF(SM400=TRUE)THEN
MOV(TRUE,SW31,Var_ErrorCode); (* Stores error code *)
END_IF;
(* Process on completion of writing *)
(* Process on normal completion *)
(* Process on error completion *)