Skip to main content
Submitted by maxdealflex on Thu, 02/18/2016 - 00:44

Hello everyone, I am quite novice on DMC programming, hence forgive me in advance if is a basic question.
How to I move ECAM master axis to the negative side (from right to left let's say)

MORE explanation.
I am trying to program a movement to trace sine waves horizontally and vertically, the DMC is driving a sawing machine.

Currently I am populating the CAM table ET manually with 256 value from a plotted COSine wave (I understand I could already built it inside the program, this will be the next improvement)

The problem I have is the following:
After the first wave from left to right has been completed, I move the head downward and I want to draw the sine wave from right to left (negative master X but the DMC gets stuck and goes in block state.

QUESTION:
how to I tell the DMC to read the CAM table in backward and how do I action the master X axis in the negative direction?

I have read note 2441 but is not indicated how to move in the opposite direction.
Before posting the code (which is messy), I would like to understand the logic.

Many thanks in advance .
Max

Comments 1

AndrewS on 08/30/2016 - 09:04

Hi maxdealflex,
For reading the CAM table backwards, you'll want to re-input the CAM table backwards. You can set up a quick subroutine to do so.

For moving in the negative direction, you can move the master in the negative direction. Even though only shows the modulus and shows a discontinuous jump, the actual motion won't be like that for the master. For a sine wave, the end of the ECAM table is the same position as the beginning (assuming the ECAM table is one period of sine wave), so you don't have to worry about a discontinuous jump. If you're profile is different and you can't have a jump on the slave, then the EM command can adjust for that.

For moving the ECAM in the negative direction, just make sure that the ECAM will properly engage at the right time when moving backwards.

Regards,
Andrew