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

All things ecat Hickory CNC controller

Moderator: cnckeith

Post Reply
spikee
Posts: 128
Joined: Thu Feb 01, 2024 5:34 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Contact:

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

Post 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 :)


tblough
Community Expert
Posts: 3524
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

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

Post 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.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.


spikee
Posts: 128
Joined: Thu Feb 01, 2024 5:34 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Contact:

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

Post 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


Post Reply