IAxisBridgeBuilder
- Namespace
- ZApplication
INTERFACE IAxisBridgeBuilder
Interface to build a bridge between communication interfaces (AxisComPublish and AxisComSubscribe)
and an implementation of an Axis/Drive. Not all axis implementation implement all features that the Zeugwerk Framework implements. Most
notably, Vfd drives usually do not implement positioning interfaces.
Use the "With methods" to build a control instance in the following way. In the following example the actual datatype of axis
refers to a specific implementation, which
implements all features of the Framework. Note that some calls to With may not be supported for the specific implementation that you are using. In the latter case
remove the relevant `"With methods".
_axis1 : ZExperimental.AxisLenzei950;
-----------------------------------
_axisBridge.WithAbsolute(_axis1)
.WithBrake(_axis1)
.WithHoming(_axis1)
.WithFeedbackCurrent(_axis1).WithFeedbackVelocity(_axis1).WithFeedbackPosition(_axis1)
.WithMoveCurrent(_axis1).WithMoveVelocity(_axis1) .WithMovePosition(_axis1)
.AddAxis(_axis1, _parent._com._axis1.publish, _parent._com._axis1.subscribe);
Methods
AddAxis
METHOD AddAxis (
[input] axis : REFERENCE TO ZEquipment.Axis,
[input] publish : REFERENCE TO AxisComPublish,
[input] subscribe : REFERENCE TO AxisComSubscribe)
Inputs
axis
REFERENCE TO Axisprovides a basic axis instance with all its status and actions which are implemented for all axis types
publish
REFERENCE TO AxisComPublishaxis publish structure instantiated somewhere in the plc (usually separated from the actual application code like Global.com)
subscribe
REFERENCE TO AxisComSubscribeaxis subscribe structure instantiated in the plc (usually separated from the actual application code like Global.com)
WithAbsolute
METHOD WithAbsolute (
[input] absolute : ZEquipment.IAxisAbsolute) : IAxisBridgeBuilder
Inputs
absolute
IAxisAbsoluteInterface to an implementation with an absolute encoder
Returns
WithBrake
METHOD WithBrake (
[input] brake : ZEquipment.IAxisBrake) : IAxisBridgeBuilder
Inputs
brake
IAxisBrakeInterface to close/open a brake of an axis
Returns
WithFeedbackCurrent
METHOD WithFeedbackCurrent (
[input] feedbackCurrent : ZEquipment.IAxisFeedbackCurrent) : IAxisBridgeBuilder
Inputs
feedbackCurrent
IAxisFeedbackCurrentCurrent feedback
Returns
WithFeedbackPosition
METHOD WithFeedbackPosition (
[input] feedbackPosition : ZEquipment.IAxisFeedbackPosition) : IAxisBridgeBuilder
Inputs
feedbackPosition
IAxisFeedbackPositionPosition feedback
Returns
WithFeedbackVelocity
METHOD WithFeedbackVelocity (
[input] feedbackVelocity : ZEquipment.IAxisFeedbackVelocity) : IAxisBridgeBuilder
Inputs
feedbackVelocity
IAxisFeedbackVelocityVelocity feedback
Returns
WithHalt
METHOD WithHalt (
[input] halt : ZEquipment.IAxisHalt) : IAxisBridgeBuilder
Inputs
halt
IAxisHaltprovides an interface to the axis halt function
Returns
WithHoming
METHOD WithHoming (
[input] homing : ZEquipment.IAxisHoming) : IAxisBridgeBuilder
Inputs
homing
IAxisHomingprovides an interface to the axis homing functions
Returns
WithMoveCurrent
METHOD WithMoveCurrent (
[input] current : ZEquipment.IAxisMoveCurrent) : IAxisBridgeBuilder
Inputs
current
IAxisMoveCurrentprovides an interface to the axis move current function
Returns
WithMovePosition
METHOD WithMovePosition (
[input] position : ZEquipment.IAxisMovePosition) : IAxisBridgeBuilder
Inputs
position
IAxisMovePositionprovides an interface to the axis move position function
Returns
WithMoveVelocity
METHOD WithMoveVelocity (
[input] velocity : ZEquipment.IAxisMoveVelocity) : IAxisBridgeBuilder
Inputs
velocity
IAxisMoveVelocityprovides an interface to the axis move velocity function
Returns
WithVelocityFeedrate
METHOD WithVelocityFeedrate (
[input] velocityFeedrate : ZEquipment.IAxisVelocityFeedrate) : IAxisBridgeBuilder
Inputs
velocityFeedrate
IAxisVelocityFeedrateprovides an interface to the axis velocity feedrate function