Input DescriptionΒΆ

../_images/b9b7e46e9be292520a331390005b0e9b

Function Block MC_StepLimitSwitch

Note

The inputs marked with a triangle a3ac62499829eab10a33139001a29bcd_78f228175b765b440a33139001315693 are of the class VAR_IN_OUT (input and output variable). These inputs must be connected to a variable.

Execute

Data type: BOOL

Starts the Function Block at rising edge.

Direction

Data type: MC_HOMING_DIRECTION

Specifies the direction of the motion and corresponding LimitSwitch to search for, just MC_Positive and MC_Negative are possible:

  • MC_Positive = Positive direction searching positive LimitSwitch.
  • MC_Negative = Negative direction searching negative LimitSwitch.

SwitchMode

Data type: MC_HOMING_EDGE

Sensor condition to finalize this Function Block:

  • MC_On = When sensor is ON.
  • MC_EdgeOn = When Off to On transition in sensor.

Velocity

Data type: LREAL, range: > 0, unit: u/s

Value of the maximum velocity (not necessarily reached).

Acceleration

Data type: LREAL, range: > 0, unit: u/s2

Value of the acceleration (increasing energy of the motor).

Deceleration

Data type: LREAL, range: > 0, unit: u/s2

Value of the deceleration (decreasing energy of the motor).

TorqueLimit

Data type: LREAL, unit: t.u.

Maximum torque or force. 0 = No torque limit.

Central Motion Control implementation (Compact Motion Control): TorqueLimit value will not be used.

TimeLimit

Data type: LREAL, unit: s

If the Function Block condition is not met in the TimeLimit, an error is issued.

0 = No time limit.

DistanceLimit

Data type: LREAL

If the Funciton Block condition is not met within a DistanceLimit travel, an error is issued.

0 = No distance limit.

BufferMode

Data type: MC_BUFFERMODE, default: MC_Aborting, no other modes supported

Defines the behavior of the axis.

Axis

Data type: AXIS_REF

Reference to the axis.