Page 1 of 1


PostPosted: Thu Apr 08, 2021 8:25 pm
by andyjack38
Hello all, need help for showing the contain of UCCNC Modbus Reg.(10). I have a good connection in plugin Modbus Master also a good read function from VFD Modbus Register (3004H) (12292) put into UCCNC Modbus Reg.(10). I have created a textfield (20010) which is not showing, so how do I do to see the contain of my text field (20010). Thank you

Re: textfield

PostPosted: Fri Apr 09, 2021 6:13 am
by dezsoe
Save the following lines as a macro (Mxxxx.txt) and set it as macroloop:

Code: Select all
ushort showreg = 0;

exec.GetModbusregister(10, out showreg);                                        // Read from Modbus registers

AS3.Setfieldtext(showreg.ToString(), 20010);                                    // Convert to string and write to screen