LS_Home Details
Element Name | Element Type | Description |
---|---|---|
Execute | Input | Edge detected request to execute the function block. |
Axis | Input/Output | Axis reference variable.This can not be a constant. |
Position | Input | Specify the position of the axis when the reference signal is detected. |
HomingMethod | Input | Set Homing Method supported by servo drive. |
SwitchSearchSpeed | Input | Set the switch search speed. |
ZeroSearchSpeed | Input | Set the zero search speed. |
HomingAcc | Input | Set Acceleration/Deceleration used during homing. |
HomeOffset | Input | Set home offset position. |
DoneBehavior | Input | Set movement after homing is done.This setting only works for certain LS Electric servo drives. See user manual for your specific servo drive for more information. |
BufferMode | Input | Specify the sequential operation setting of the function block. See BufferMode Table. |
Done | Output | Indicates the operation of the function block is finished. |
Busy | Output | Indicates the function block is currently being executed. |
Active | Output | Indicates the function block is controlling the selected axis. |
CommandAborted | Output | Indicates the function block execution was aborted. |
Error | Output | Indicates whether an error occurs or not. |
ErrorID | Output | Error Identification number |
//Set Axis1 reference variable
Axis1 := 1;
//check that axis 1 is ready
IF (_AX01_RDY) AND (_AX01_SV_ON) THEN
//Example LS_Home fb
INST_LS_HOME(Execute:=Execute_LSHome, Axis:=Axis1,
Position:=INST_LS_HOME.Position,
HomingMethod:=INST_LS_HOME.HomingMethod,
SwitchSearchSpeed:=INST_LS_HOME.SwitchSearchSpeed,
ZeroSearchSpeed:=INST_LS_HOME.ZeroSearchSpeed,
HomingAcc:=INST_LS_HOME.HomingAcc, HomeOffset:=INST_LS_HOME.HomeOffset,
DoneBehavior:=INST_LS_HOME.DoneBehavior, BufferMode:=0,
ErrorID=>INST_LS_HOME.ErrorID);
END_IF;
LM502-2