Hello Guest it is April 16, 2024, 08:42:07 AM

Show Posts

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.


Messages - gjk

Pages: 1
1
Mach4 Toolbox / Re: M4 Serial and TCP Modbus tutorial using an ADC DL06 PLC
« on: December 30, 2014, 03:20:19 PM »
Scott,

Thank you for creating the modbus tutorial. It has been extremely helpful. I'd like to display a 32 bit accumulating timer value in a DRO. I've converted the value from BCD to binary in the PLC and am reading the two registers in Mach.  I then plan to use WriteReg("iRegs0/doubletimerval", ?); This is where I am stuck. I am not sure how to format the write register command so that it feeds timer1 and timer2 into the Mach register as a double word. Any help would be appreciated. Thanks again. 



2
Brains Development / Brain Modulus Function
« on: November 04, 2014, 01:30:46 PM »
I am having trouble getting the modulo operator to work in a brain.  I would like to activate an output for .5 seconds each time my machine moves a specified distance.  This output will control an oiler. I can’t get any value from the formula in the brain. It always outputs 0. Hopefully someone can tell me if my syntax is wrong or if there is a better way to do this. Thanks.   

Pages: 1