Mitsubishi MELSEC-L series Programming Manual page 266

Hide thumbs Also See for MELSEC-L series:
Table of Contents

Advertisement

Z_UINI
Program Example
The following program sets the station number 2.
[Structured ladder]
[ST]
IF(LDP(TRUE,Var_Flag_Inst)=TRUE)THEN
END_IF;
IF((Var_Flag_Exe=TRUE) AND (SB70=TRUE))THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction
5-220
5.4.22 UINI instruction
Process on completion
Process on normal completion
Process on error completion
MOV(TRUE,H1,Var_ControlData[2]); (* Sets change target *)
MOV(TRUE,ZR0,Var_ControlData[3]);(* Sets host station number *)
ZP_UINI(TRUE,"U0",Var_ControlData,Var_Result);
(* Process on completion *)
IF(Var_Result[1]=FALSE)THEN
(* Process on normal completion *)
ELSE
(* Process on error completion *)
MOV(TRUE, Var_ControlData[1], Var_ErrorCode);(* Stores error code *)
END_IF;
Sets change
target
Sets host
station number
Performs
reinitialization
Execution finished
Normal completion
Error completion
Stores error code
(* Performs reinitialization *)
(* Execution finished *)
(* Normal completion *)
(* Error completion *)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents