Executing the slave axis with cams of variable cycle lengths
The non-linear motion profile of an actuator is generated from the linear reference of the master axis. The motion profile of an actuator is led via the slave axis. The reference value is the x axis, which is coupled with the master axis.
Notice
Reference between the slave axis and y axis:
In some applications, it is necessary to adapt the setpoint for the actuator.
An intermediate value is inserted so the cam does not have to be modified; a virtual y axis that can only be used within the "Flex Cam" TM.
-
The y axis returns the raw value from the cam.
-
The y axis can be manipulated in relation to the slave axis via scaling factors and offset. The specification of the offset has an additional effect on the y axis. The specification of the scaling factor has a multiplicative effect on the y axis.
-
The setpoint from the cam (y axis) resulting from the manipulated offset and scaling factor is connected through to the slave axis.
The slave axis is coupled with the y axis via the parameters "speed", "acceleration" and "jerk". The xSlaveAbsolute parameter is used to establish the reference of the position between the y axis and the slave axis. This always refers to the first start or cycle of the currently active cam:
-
xSlaveAbsolute = FALSE
When the cam is activated for the first time, an internal offset is set between the current slave position and the y starting position. This activates the cam without any step changes of the slave axis. In this way, cam-dependent cycle lengths can be implemented without having to adapt the "external" modulo cycle length of the slave axis. However, in this case the absolute assignment between the slave cycle and the y cycle of the cam is lost.
-
xSlaveAbsolute = TRUE
The position of the slave axis is set to the y position from the cam. During the second cam cycle, the position of the slave axis is calculated relative to the y axis. The cycle assignment between the y cycle of the cam and the modulo cycle of the slave axis is always maintained if the y cycle length corresponds to the modulo cycle length of the slave axis. If the y cycle length is set so that it does not equal the modulo cycle length of the slave axis, the relative reference to the slave axis is set automatically after the first cam cycle (see above, xMasterAbsolute = FALSE).
Parameters to be set
The parameters to be set are located in the L_TS2P_scPar_FlexCamHigh structure.
-
xSlaveAbsolute , BOOL, initial value: TRUE