Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:02:06 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Flash Screens
| | | |-+  Question regarding GetParam( String ) and SetParam( String )
Pages: 1   Go Down
Print
Author Topic: Question regarding GetParam( String ) and SetParam( String )  (Read 569 times)
0 Members and 2 Guests are viewing this topic.
kevlar129bp
Active Member

Offline Offline

Posts: 7



View Profile
« on: April 13, 2011, 12:44:35 PM »

Could one of you fine folks help me retrieve a parameter from Mach, and store it in a text box on the Flash screen?
Hope that makes sense?

Thanks guys,
Chris
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #1 on: April 25, 2011, 09:36:52 PM »

Sorry for the delay, I did not see the post.

you can call a VB command to either set a Userlabel,LED,DRO OR write to a text file which Flash then could load.

I.E.

Code:
loadSettings =
'value = GetParam("Boundry")'+"\r"+
'if  value = 1 then'+"\r"+
'SetUserLED(1816,1)'+"\r"+
'else'+"\r"+
'SetUserLED(1816,0)'+"\r"+
'end if'
fscommand("VBMacro", loadSettings);

Let me know if you want to read a file in Flash will give an example.
Logged

Regards, Jason Blake

www.Fusioncnc.com
kevlar129bp
Active Member

Offline Offline

Posts: 7



View Profile
« Reply #2 on: April 26, 2011, 12:46:55 AM »

Hey cool zealous, I think that's what I was after. May take me a bit to try it out...way too many projects right now  Wink. I'll keep you posted.
Thanks again,
Chris
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!