Page 1 of 1

Best stratery for small changes, plc or M-code?

Posted: Fri Dec 27, 2024 8:18 am
by spikee
Hi all,

I'm wondering what is the best strategy to make minor changes to how my CNC12 setup does things.
For example, my vfd is a bit weird, it still allows the vfd to run even through vfd enable is off , but CW or CCW direction is on...
In this instance would it be best do adjust this in the PLC to block this behaviour (M5 = all vfd io's off) or do this in the M code?

The pro of the M-code is that it feels that the barrier of entry is lower, but you could perhaps run into issues with the PLC conflicting in some aspects.

Any tips or guidance is very welcome :)

Re: Best stratery for small changes, plc or M-code?

Posted: Fri Dec 27, 2024 8:51 am
by tblough
If you use the VFD enable signal as the source for the forward and reverse signals, you will not have any inputs on when enable is off. No PLC or macro changes needed.

Re: Best strategy for small changes, plc or M-code?

Posted: Fri Dec 27, 2024 6:33 pm
by spikee
That is ... pretty smart! Im going to do that
When i was working on my machine in the garage i had the centroid cnc playlist on in the background regarding plc. Learned a lot just listening to it. Will have to do some mods for the atc. Will get into that soon