FB_MdHoming

FB_MdHoming 1:

This machine data component contains parameters that are relevant for homing an axis.

Syntax:

FUNCTION_BLOCK FB_MdHoming EXTENDS FB_MdBaseComponent

FB_MdHoming 2: Machine data

Index (Identifier)

Parameter

PLC storage location

0x0000 3001

Setup.EnableMdAutoSave

FB_AxisHomingSetupHmi

 

0x0000 3010

Setup.TimeLimitMax

0x0000 3011

Setup.DetectionVeloTimeMax

0x0000 3020

Setup.DistanceMax

0x0000 3021

Setup.PositionMin

0x0000 3022

Setup.PositionMax

Groups (homing procedure)

0x0000 31xx

HomingAbsSwitch

FB_AxisHomingAbsSwitchHmi

 

0x0000 32xx

HomingBlock

FB_AxisHomingBlockHmi

0x0000 33xx

HomingBlockDetect

FB_AxisHomingBlockDetectHmi

0x0000 3Fxx

HomingFinish

FB_AxisHomingFinishHmi

Parameters per group

0x0000 3x10

Homing.Acceleration

Each in the group

0x0000 3x11

Homing.Deceleration

0x0000 3x12

Homing.Jerk

0x0000 3x13

Homing.Velocity

0x0000 3x14

Homing.Distance

0x0000 3x20

Homing.TimeLimit

0x0000 3x21

Homing.TorqueLimit

0x0000 3x22

Homing.DistanceLimit

0x0000 3x23

Homing.Detect.VelocityLimit

0x0000 3x23

Homing.Detect.VelocityTime

0x0000 3x30

Homing.TorqueTolerance

0x0000 3x40

Homing.SetPosition

0x0000 3x50

Homing.Direction

0x0000 3x51

Homing.SwitchMode

0x0000 3x60

Homing.Option.DisableDriveAccess

0x0000 3x61

Homing.Option.LagErrorDetection

0x0000 3x62

Homing.Option.InstantLagReduction

0x0000 3x63

Homing.Option.TorquePolarityInverted

FB_MdHoming 3: Properties

Name

Type

Access

Initial value

Description

Connected

BOOL

Get

FALSE

Component is connected to its dependencies (except for the MD container).

FB_MdBaseComponent

LinkedContainer

I_MdBaseContainer

Get

NULL

Points to the container to which the component was appended.

Tc3_PlasticFunctions.FB_MdComponent

Further characteristics

<>

<>

<>

Implemented by FB_MdComponent

FB_MdHoming 4: Methods

Name

Description

AddNextComponent()

Adds the subsequent component to the component (list).

FB_MdHoming

Connect(ipAxisBase, ipAxisHmi)

Connects the component with the necessary dependencies.

FB_MdBaseComponent

[PROTECTED] ConfigCompType(eCompType)

Used with inheriting classes to initialize the encoding offset after E_StandardCompType.

[PROTECTED] ConfigCompTypeEx()

Used with the inheriting class to initialize the encoding offset.

[PROTECTED] NextString(…)

Simplified method for reading a text-based machine data parameter. This method is used within the MdNextParameter(...) Callback method.

[PROTECTED] SetString(…)

Simplified method for writing a text-based machine data parameter. This method is used within the MdSetParameter(...) Callback method.

Tc3_PlasticFunctions.FB_MdComponent

Other methods

Implemented by FB_MdComponent.

FB_MdHoming 5: Event-driven methods (callback methods)

Name

Description

MdNextParameter(…)

Container call for saving the parameters in a file, implemented by FB_MdComponent.

MdSetParameter(…)

Container call for loading the parameters into the runtime, implemented by FB_MdComponent.

FB_MdHoming 6: Interfaces

Type

Description

I_MdComponent

Standard interface on FB_MdComponent

I_MdHoming

Standard interface on FB_MdHoming.

I_MdBaseComponent

Standard interface on FB_MdBaseComponent

Further interfaces

Implemented by FB_MdComponent

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.35

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.5.0)