Mitsubishi MELSEC-L series Programming Manual page 153

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

Advertisement

[ST]
IF(LDP(TRUE, X20))THEN
IF((Y2=FALSE)
&(Y9=FALSE)
&(X6=FALSE)
&(X0D=FALSE))THEN
(* Runs if there is no mode switching *)
FMOV(TRUE, 0, 40, Var_ControlData[0]);
MOV(TRUE, 0, Var_ControlData[0]);
MOV(TRUE, 0, Var_ControlData[1]);
MOV(TRUE, 0, Var_ControlData[2]);
MOV(TRUE,H7E6,Var_ControlData[3]);
MOV(TRUE,H8,Var_ControlData[4]); (* Sets CH1 communication protocol *)
MOV(TRUE, H7E7, Var_ControlData[5]);
MOV(TRUE, H5, Var_ControlData[6]);(* Sets CH2 communication protocol *)
MOV(TRUE, H1, Var_ControlData[7]);
ZP_UINI(TRUE, "00", Var_ControlData, Var_Result);
SET(TRUE, Var_Flag ); (* Turns interlock signal for communication stop ON *)
END_IF;
END_IF;
IF(Var_Result[0]=TRUE)THEN
IF(Var_Result[1]=FALSE)THEN
(* Process on normal completion *)
ELSE
(* Process on error completion *)
END_IF;
RST(TRUE, Var_Flag);
END_IF;
(* Do not perform the data communication process during interlock signal for communication
stop ON *)
IF(Var_Flag=FALSE)THEN
(* Data communication process *)
END_IF;
*1 :
Create a program so that the data communication process does not run while the interlock signal for
communication stop is ON.
5.2 Serial Communication and Modem Interface Instruction
(* Sets CH1 transmission specification *)
(* Sets CH2 transmission specification *)
(* Turns interlock signal for communication stop OFF *)
*1
5.2.14 UINI instruction
Z_UINI
(* UNI instruction command *)
(* CH1 mode switching request *)
(* CH2 mode switching request *)
(* CH1 mode switching *)
(* CH2 mode switching *)
(* Clears control data to 0 *)
(* Always specifies 0 *)
(* Resets execution result to 0 *)
(* Sets execution type *)
(* Sets host station number *)
(* Switches mode *)
(* Execution finished *)
(* Normal completion *)
(* Error completion *)
5
5-107

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents