1
Mach4 General Discussion / Re: Mach 4 Machtric 2.2kw VFD Modbus
« on: January 09, 2018, 09:26:22 AM »
I have been checking that reset button, and it doesnt stop my spindle, only lowers RPM to 6000 for some reason.
So i added to the button when clicked
local inst=mc.mcGetInstance();
local hcont=mc.mcRegGetHandle(inst,"modbus0/cntrl");
mc.mcSpindleSetDirection(inst, 0);
mc.mcRegSetValue(hcont,01);
This tells spindel to stop on my VFD, might need to adjust to your VFD's (mactric VFD)
Steppes i have done as to solving Emergency button:
Connected S2 VFD innput to a relay on my controller board (pokeys57cnc)
Set S2 as an emergency swith (P318 - option 17)
Relay is active high and set to react after if mach4 is active or not (If you push emergency button, Mach4 will go inactive)
If it is active, it turns on the relay, and ofc the other way around if not.
so if i turn off my controller, spindle will be locked out in Emergency mode.
So i added to the button when clicked
local inst=mc.mcGetInstance();
local hcont=mc.mcRegGetHandle(inst,"modbus0/cntrl");
mc.mcSpindleSetDirection(inst, 0);
mc.mcRegSetValue(hcont,01);
This tells spindel to stop on my VFD, might need to adjust to your VFD's (mactric VFD)
Steppes i have done as to solving Emergency button:
Connected S2 VFD innput to a relay on my controller board (pokeys57cnc)
Set S2 as an emergency swith (P318 - option 17)
Relay is active high and set to react after if mach4 is active or not (If you push emergency button, Mach4 will go inactive)
If it is active, it turns on the relay, and ofc the other way around if not.
so if i turn off my controller, spindle will be locked out in Emergency mode.