The macro gets its values from the Modbus master plugin.
Getting the values from the registers into the macro is working already. The part I need help with is setting the fields in UCCNC with these values.
The following lines don't seem to work:
- Code: Select all
ushort Feed_Overide; exec.GetModbusregister(6, out Feed_Overide);
ushort Spindle_Override; exec.GetModbusregister(7, out Spindle_Override);
exec.Setfieldtext(Feed_Overide,232);
exec.Setfieldtext(Spindle_Override,233);;
Any help would be most appreciated!
- Blaise