931
Mach4 General Discussion / Re: Mach4 Screw Error Mapping
« on: March 24, 2015, 01:08:11 AM »
Screw error mapping will work for the rack. But it as yet untested. So I would not say it is ready for prime time.
Steve
Steve
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I learned alot from this thread, thank you.
I have an additional Modbus Question, is there a way to 'shut off' modbus , and turn it back on from a button script ?
hReg = mc.mcRegGetHandle(inst, "mbcntl/command");
mc.mcRegSetValueString(hReg, "start"); -- start modbus
mc.mcRegSetValueString(hReg, "restart"); -- stop then start modbus
mc.mcRegSetValueString(hReg, "stop"); -- stop modbus
hReg = mc.mcRegGetHandle(inst, "mbcntl/status");
local status = mc.mcRegGetValueString(hReg);
status will equal "RUNNING" or "STOPPED"