Hello Guest it is December 08, 2019, 02:29:00 AM

Author Topic: How to- USB powered LCD display of DRO`s  (Read 51311 times)

0 Members and 1 Guest are viewing this topic.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: How to- USB powered LCD display of DRO`s
« Reply #40 on: July 12, 2011, 03:32:57 PM »
ok - so an empty macropump.m1s with the macropump switched on allows Mach to function.
Also, with the macropump switched off the sendserial command works from the vb editor.

so try this in the editor first.

Code: [Select]
message "hello"
You should see hello on the status line of Mach.

then if that worked try

Code: [Select]
message rnd(10)
in the macropump - you should see random numbers on Mach's status line.

Offline budman68

*
  • *
  •  2,360 2,360
    • View Profile
Re: How to- USB powered LCD display of DRO`s
« Reply #41 on: July 12, 2011, 03:42:43 PM »
Yes, and yes, the random numbers just kept changing very rapidly in the status line. I was able to use Mach as normal, no issues.
« Last Edit: July 12, 2011, 04:22:05 PM by budman68 »
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: How to- USB powered LCD display of DRO`s
« Reply #42 on: July 12, 2011, 04:59:14 PM »
ok so now change your macropump code from

Code: [Select]
message rnd(10)
to

Code: [Select]
sendserial rnd(10)
You should see your LCD fill with constantly changing random numbers - yes?

Offline budman68

*
  • *
  •  2,360 2,360
    • View Profile
Re: How to- USB powered LCD display of DRO`s
« Reply #43 on: July 12, 2011, 05:27:49 PM »
Yes, the LCD screen is indeed filled with rapidly changing numbers,  BUT, now Mach is crawling and painfully slow. What I mean is, in the status bar, where it normally says Press Reset, it moves VERY VERY slow, as in it takes almost 30 seconds to scroll to the left one place. I can also load a Gcode fairly quickly but again, any actions like zeroing the DRO's is super slow. They also take about 30 seconds to zero after I hit the "zero" button. Rewind, regen all act the same way as well.

Dave

EDIT: I also tried different screen sets with no difference.
« Last Edit: July 12, 2011, 05:30:43 PM by budman68 »
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: How to- USB powered LCD display of DRO`s
« Reply #44 on: July 13, 2011, 03:31:23 AM »
I think we have an answer then Dave. The macropump works just fine, the sendserial command works just fine. Calling "message" 10 times/sec works fine BUT calling sendserial 10 times / sec is killing your system.

Just for fun try this in the macropump

Code: [Select]
cnt=getVar(1000)
if cnt=10 then
  setVar(1000, 0)
  SendSerial _
  "?x03?y0" & Format (Getdro(0) , "+000.0000;-000.0000") & _
  "?x03?y1" & Format (Getdro(1) , "+000.0000;-000.0000") & _
  "?x03?y2" & Format (Getdro(2) , "+000.0000;-000.0000") & _
  "?x03?y3" & Format (Getdro(3) , "+000.0000;-000.0000")
else
  setVar(1000, cnt+1)
end if

and then jog or run a part program

If this runs OK then it will update your LCD just ONCE a second instead of 10 times / sec. Not a lot of use to you perhaps but it should at least confirm the problem.

Offline budman68

*
  • *
  •  2,360 2,360
    • View Profile
Re: How to- USB powered LCD display of DRO`s
« Reply #45 on: July 13, 2011, 10:53:13 AM »
Yep, a bit better but still a little sluggish for sure. Thanks for all your help Ian, I guess you've helped me figure out here that version 3.039 is not very macropump friendly.

Guess I'll be looking to update my system to a newer version when I get some open time and can be sure it'll run smoothly.

Thank you (and everyone else) as always  :)
Dave
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: How to- USB powered LCD display of DRO`s
« Reply #46 on: July 13, 2011, 12:20:06 PM »
Out of couriousity DAVE what computer specs are you running?

(;-) TP

Offline budman68

*
  • *
  •  2,360 2,360
    • View Profile
Re: How to- USB powered LCD display of DRO`s
« Reply #47 on: July 13, 2011, 12:31:21 PM »
Out of couriousity DAVE what computer specs are you running?

(;-) TP

Hi Terry,

It's an Intel MOBO with a P4 (800Mhz front side bus) and 1 gig RAM. Win XP sp2 with 32MB ATI Rage video card. This is for machine use only.

Thanks,
Dave
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: How to- USB powered LCD display of DRO`s
« Reply #48 on: July 13, 2011, 12:34:17 PM »
IAN, What about IF we try to send the data stream out throught the Serial port using the serial modbus ?

I know Mach does not have a problem with that.

Also Henrik has developed a proper serial port useage with mach through an outside DLL. It allows you OPEN the port and then send recieve, then close the port when done.

I don't have the LCD display here so I can't help develope any solutions in real time. (;-(

Just some thoughts, (;-)TP

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: How to- USB powered LCD display of DRO`s
« Reply #49 on: July 13, 2011, 12:36:54 PM »
Dave is that a 800mhz CPU ?

(;-) TP