SMC_AxisSettingsFromAxes (FB)ΒΆ
FUNCTION_BLOCK SMC_AxisSettingsFromAxes
Reads the axis settings from the given axes and stores
them in the output AxisSettings.
Note: not all inputs must be connected. For example, if
the kinematics has 3 axes, then only input Axis0, Axis1,
and Axis2 have to be connected.
Intended for use with SMC_Trafo_Wrapper and SMC_TrafoF_Wrapper.
- InOut:
Scope
Name
Type
Initial
Comment
Input
Axis0IAxisRefThe first axis of the kinematics
Axis1IAxisRefThe second axis of the kinematics
Axis2IAxisRefThe third axis of the kinematics
Axis3IAxisRefThe fourth axis of the kinematics
Axis4IAxisRefThe fifth axis of the kinematics
Axis5IAxisRefThe sixth axis of the kinematics
Output
AxisSettingsARRAY [0..(SMRB.MAX_KIN_AXES - 1)] OF TRAFO.Axis_Settings
[6(STRUCT(limits := STRUCT(xUnlimited := TRUE)))]
The axis settings (e.g. axis ranges) of the axes
Axis0..Axis5. This output can be connected to the inputAxisSettingsof function block SMC_Trafo_Wrapper and SMC_TrafoF_Wrapper.