CamSequencer base code for test or study

I would like to share a little code that I develop, mostly to test my Cam Sequencer configuration.

It should be useful for everyone that is starting with Cam Sequencer to get an ideal how to use the configuration file and FUBs.

CamTest.zip (8.7 MB)

Normally I use an ETAL410.1033-1 but similar configuration works,

You just need to adapt it in physical view

2 Likes

can you maybe provide more details what is inside?

Right, sorry about that

As this project is using an ETAL410.1033-1 with an ACOPOSmicro 80VD100PD.C022-01 with two axis 8LVA13.R0030D000-0

I project one Cam Sequencer with two real axes, that will physically move these two axes in a rotary periodic manner with a 1:1 relation

But to show some interesting features, the master is configured as Linear non-periodic and the slave a rotary periodic

In the logical side, we have a really simple state machine that we should interact with via gCam PV with type gCam_Type

In gCam we have two main commands:

  • The start, that prepare both axes (power and home), and move the axes to zero position and sync with CamSequence
  • Stop command just stop the axes and move the slave to zero position

The home command is set with mcHOMING_DEFAULT, so is going to use the Home configured in the hardware:

By default, is in Absolute homing, is interesting to adjust this value go get better results in the synchronized movements

The main purpose of this project is to test some Cam Sequencer before we use in our application:

You can just adapt the axis feature with your Cam,

or you can use the PV McAcpAxCamAutPar and do an Update command in MpAxisCamSequencer Function block

But this project should be useful for study propose, as it has a basic configuration and setup of a Cam Sequencer
It can be used as a reference on how you can implement a Cam Sequencer in your project.

2 Likes