Work with camming
In this section, you'll learn how to make a cam move using KINGSTAR cam functions.
Process of making a cam move
The process below shows how to make a cam move in KINGSTAR:
SetCamTable -> SetAxisCam -> motion functions -> ReleaseAxis
Functions
SetCamTable: selects a cam table by setting the connections to a relevant table.
SetAxisCam: links the axes and starts to cam.
ReleaseAxis: releases an axis from the Stopping state or detaches it from camming or gearing.
The following are motion functions. For more information about their uses, see Chapter 5.
- MoveAxisAbsolute: moves an axis to an absolute position.
- MoveAxisContinuousAbsolute: moves an axis to an absolute position. After that, the axis keeps moving using the EndVelocity.
- MoveAxisAdditive: adds a relative distance based on the last commanded position in the Discrete Motion state.
- MoveAxisRelative: moves an axis a specified distance.
- MoveAxisContinuousRelative: moves an axis a specified distance. After that, the axis keeps moving using the EndVelocity.
- MoveAxisVelocity: moves an axis continuously at the specified velocity.
- JogAxis: moves an axis continuously at the specified velocity. After you send a Jog command, the axis will accelerate to the specified velocity and keeps moving at that speed, until you stop it.
- InchAxis: same as JogAxis but it has a maximum distance. After the axis travels the distance it will automatically stop.
Keep in mind that cam defines the behavior of a slave axis, not master. The master axis doesn't know a slave axis is attached to itself. After you cam two axes, only the master should be moved.
Start camming
Take the following steps to implement camming: