AX-Series Motion Controller Instructions Manual Chapter 2
482
2.4.1.2 DFC_SP_HeightToDegree
Supported Devices: AX-308E, AX-8
A dedicated FB for the Servo Press industry, the user inputs the mechanical-related information (crankshaft length, connecting
rod length, slider height) and uses this Function to obtain the corresponding angle (0 ~ 180); if the position has passed the
bottom dead center (BDC, Bottom Dead Center), you can do your own mirroring (360.0 - return value). When an illegal
parameter (ex: less than 0) is input, the angle cannot be obtained, and 0 is returned at this time.
FB/FC Instruction Graphic Expression ST Language
FB DFC_SP_HeightToDegree
_parameter : =
DFC_SP_HeightToDegree(
MachParameters: = _parameter,
lrHeight: = _parameter)
*Note: Valid Input Range:
MachParameters.lrLLength > (2 * MachParameters.lrRLength)
0 <= lrHeight <= (2 * MachParameters.lrRLength)
Inputs
Name Function Data Type
Setting
Value
(Default)
Timing
to Take
Effect
MachParameters
ServoPress machine
electromechanical
ReferenceDMC_SP_MACHIME_PARAMETERS
*3
- -
lrHeight The height of slider LREAL
*1
Positive*
2
-
*Note1: LREAL Range:
Positive values: Between -1.7976931348623157E+308 and -4.9406564584124654E-324
Zero: 0
Negative values: Between 4.9406564584124654E-324 and 1.7976931348623157E+308
*Note2: IrHeightValid Input Range:
0 ~ (2 * rfMachParameters.lrRLength)
*Note3:
DMC_SP_MACHINE_PARAMETERS
Name Function Data Type Setting Value
lrRLength Crank length (unit: mm), provided by
machine maker
LREAL Positive
lrLLength Link length (unit: mm), provided by
machine maker
LREAL lrLLength > (2 *
lrRLength)
lrSPMsys Virtual master-axis’s SPM. (six times
lrSPMsys is equal to the unit deg/sec)
LREAL Positive
lrGearRatio Reduction gear ratio LREAL Positive
lrRPMmotor Max RPM of the motor LREAL Positive