Quote Originally Posted by m_c View Post
Looking at that, that's an example for something with an incremental toolholder (something similar to your Triac, but you only get a single pulse per tool position), however what it does show, is that you can directly manipulate the tool position number, simply by setting CurrentTurretPosition_W.

Now you have a couple choices on how to implement the turret rotation.
You can either create a function that only moves one position at a time, and updates the counter each time, such as this basic flow-

while not at required position,
rotate turret one position
end while
rotate turret backwards to lock.

Function rotate turret one position
Rotate A-axis NN degrees
Increment turret position by one
end function


Or if you do it in a single function

calculate required turret movement
Rotate A-axis required movement
Reverse A-axis to lock
Update tool position

However, looking at that code snippet, it does look like it will handle the tool position rollover automatically.
I'd try creating a basic M6 macro that simply increments it by maybe 3 or 5 position in one swift move, and see if the tool position rolls over to where you'd expect. It may be limited to only incrementing by one (I'd hope not, but a quick bit code to test is easier, than having to re-write a whole macro if it is limited).


If you're really stuck, post up the links to the PLC manual and I'll have a bit read later.
From what I looked at a couple weeks ago, the PLC language does seem to be some kind of Basic/Ladder/Fanuc love child.
Thanks.

The ATC 'process' is mapped here and links to the PLC reference manual also there.

http://centroidcncforum.com/viewtopi...52327af32d86da

PLC Manual - http://www.centroidcnc.com/downloads...g%20Manual.pdf

Many thanks.