Mitsubishi MELSEC-L series Programming Manual page 282

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

Advertisement

Z_ABRST1
[ST]
IPLS(SM400, Var_Flag_Inst);
IF((Var_Flag_Inst=TRUE) & (X0=FALSE))THEN
END_IF;
IF(Var_Result[0]=TRUE)THEN
END_IF;
IF(Var_Flag_Mem=TRUE)THEN
END_IF;
5.5 Positioning Instruction
5-236
5.5.1 ABRST instruction
SET(TRUE, Var_Flag_Mem);
MOV(TRUE, 0, Var_ControlData[4]);
IF(Var_Result[1]=FALSE)THEN
MOV(TRUE, Var_ControlData[3], K1Y50);
(* Turns the servo ON with the data to be sent to the servo amplifier *)
ELSE
MOV(TRUE, Var_ControlData[4], Var_ErrorCode);
END_IF;
IF(Var_ControlData[4]=0)THEN
RST(TRUE, Var_Flag_Mem);
END_IF;
(* Sets ABS data *)
BSET(X47, 0, Var_ControlData[2]);
(* Sets ABS data in data b0 received from the servo *)
BSET(X48, 1, Var_ControlData[2]);
(* Sets ABS data in data b1 received from the servo *)
BSET(X49, 2, Var_ControlData[2]);
(* Sets send data ready flag in data b2 received from the servo *)
Z_ABRST1(TRUE, "00", Var_ControlData, Var_Result);
(* Absolute position restoration pulse *)
(* Turns absolute position restoration memory ON *)
(* Clears completion status *)
(* Execution finished *)
(* Normal completion *)
(* Error completion *)
(* Sets completion status to error code *)
(* Turns absolute position restoration memory OFF *)
(* absolute position restoration memory ON *)
(* Restores absolute position *)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents