Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:41:14 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  macropump & LCD
Pages: 1   Go Down
Print
Author Topic: macropump & LCD  (Read 1347 times)
0 Members and 2 Guests are viewing this topic.
gfosdike
Active Member

Offline Offline

Posts: 9


View Profile
« on: December 17, 2010, 11:45:04 AM »

Hello all,

I'm using the macropump script to display information on my LCD screen on my pendant.

Does anyone know if it's possible to make the axis letter blink when it's selected?

The line of code below show the Z axis userlabel. If I could either make the letter blink or just appear when selected it would be great!

SetUserLabel (103,"Z" & Format (GetDro(2), "+000.0000;-000.0000"))

Am I trying to ask the impossible, any thoughts?  Huh

regards

Gary
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: December 17, 2010, 07:17:42 PM »

hmmm try this:
'macropump.m1s

BlinkControl = GetUserDRO(1700) 'every 5 counts (1/2 seconds) it shows or hides the "Z"

if BlinkControl >= 0 and BlinkControl < 5 then
SetUserLabel (103,"Z" & Format (GetDro(2), "+000.0000;-000.0000"))
BlinkControl = BlinkControl + 1
SetUserDRO(1700, BlinkControl)
end if

if BlinkControl >= 5 and BlinkControl < 10 then
SetUserLabel (103," " & Format (GetDro(2), "+000.0000;-000.0000"))
'NOTE the "Z" has been replaced with a space character " "
BlinkControl = BlinkControl + 1
SetUserDRO(1700, BlinkControl)
end if

if BlinkControl > 9 then
SetUserDRO(1700, 0)
end if

'scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
gfosdike
Active Member

Offline Offline

Posts: 9


View Profile
« Reply #2 on: December 21, 2010, 06:09:19 PM »

Thanks Scott, that's given me something to work with! Smiley

One other thing you might be able to give me some advise on if you would'nt mind?

I would like to be able to display what jog mode I'm in via my LCD, as already have what Axis and Jog increments are active on screen.

"If GetOEMLED(117) = 1 then" will get me Velocity active and I then get stuck on how to display the text "Velocity" on the LCD.

What other code would be needed to display diferent text depending what Jog mode I'm in?

I hope this makes sense! Huh

Regards

Gary
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #3 on: December 22, 2010, 10:06:04 AM »

Look at Peter Holmanns modio pendant, he shows how he talks to his LCD via macro pump........

scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
gfosdike
Active Member

Offline Offline

Posts: 9


View Profile
« Reply #4 on: December 22, 2010, 07:16:32 PM »

Many thanks for pointing me in the right direction Scott, I'm up and running! Grin
Logged
germil
Active Member

Offline Offline

Posts: 6



View Profile
« Reply #5 on: March 08, 2011, 07:05:30 AM »

How can i get some another dat  to lcd 4x20 like that

X position;     X,Y,Z or A  for JOG
Y position;      X1, X10, X100   Multiplier
Z  position;     XX.000 SPINDLE SPEED
A  position;     ESTOP/OK


Or

X  position; Y  position;  (in one line)
Z  position; A  position;  (in one line)

Can you give me an exsample of VB code to do that?

Thank you.
regards,
Milan
Logged
wayne.b
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #6 on: April 03, 2011, 05:48:00 AM »

G'day Milan

Has any helped you out with VB code.?

Cheers

wayneb
Logged
germil
Active Member

Offline Offline

Posts: 6



View Profile
« Reply #7 on: April 06, 2011, 04:34:31 PM »

Thanks for asking, but no, not yet. Cry
Logged
Tony Bullard
Active Member

Offline Offline

Posts: 83


View Profile
« Reply #8 on: April 15, 2011, 03:40:44 PM »

hmmm try this:
'macropump.m1s

BlinkControl = GetUserDRO(1700) 'every 5 counts (1/2 seconds) it shows or hides the "Z"

if BlinkControl >= 0 and BlinkControl < 5 then
SetUserLabel (103,"Z" & Format (GetDro(2), "+000.0000;-000.0000"))
BlinkControl = BlinkControl + 1
SetUserDRO(1700, BlinkControl)
end if

if BlinkControl >= 5 and BlinkControl < 10 then
SetUserLabel (103," " & Format (GetDro(2), "+000.0000;-000.0000"))
'NOTE the "Z" has been replaced with a space character " "
BlinkControl = BlinkControl + 1
SetUserDRO(1700, BlinkControl)
end if

if BlinkControl > 9 then
SetUserDRO(1700, 0)
end if

'scott

Pretty clever Scott, having the macropump frequency do the timing. I like it!

Tony
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!