Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 04:41:21 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
| | |-+  How can I create a ticker when E-Stop button is pressed?
Pages: 1   Go Down
Print
Author Topic: How can I create a ticker when E-Stop button is pressed?  (Read 500 times)
0 Members and 1 Guest are viewing this topic.
system32
Active Member

Offline Offline

Posts: 9


View Profile
« on: June 06, 2010, 11:15:19 AM »

I want to show a message to the user to say if the E-Stop button is pressed. I want the message to show up in a label and blink like I have seen in the default mach3 screen. Can someone please help me out?

Thanks
Logged
BR549
Active Member

Offline Offline

Posts: 2,551


View Profile
« Reply #1 on: June 06, 2010, 02:40:43 PM »

IS the Estop activated from an outside input?

IF yes then you need to monitor that input and do a function IF it is active.

First you need to install a Label on your screen. Then set the label text to   TICKER250 this will create a ticker label that you can send text to.

Next from the macropump you would add code to monitor the input and IF it goes active then send text to the ticker label

IF Isactive(input1) then
                SetTicker(250," Estop is now active")
Else
                SetTicker(250,"")
end if

As long as the input1 is active the message will flash and scroll across the label.

Hope that helps, If not tell us what you need






Logged
system32
Active Member

Offline Offline

Posts: 9


View Profile
« Reply #2 on: June 06, 2010, 03:28:52 PM »

Where can I insert this code? Where is the macropump? I am still new to Mach and want to learn Smiley.
Logged
BR549
Active Member

Offline Offline

Posts: 2,551


View Profile
« Reply #3 on: June 06, 2010, 03:54:30 PM »

YOu do realise IF you just tie your ESTOP button input to  the  Reset function in mach you will have the same thing. When the Estop button is pushed MACH will go into reset and Flash the message on the ticker0 next to the reset button.

Learning Mach VB is NOT something to be attempted here in the forums. There ARE videos available AND manuals to help you learn the process.

http://www.machsupport.com/videos.php
http://www.machsupport.com/documentation.php

Then When you need help you can call on us here.

Hope that helps,
Logged
system32
Active Member

Offline Offline

Posts: 9


View Profile
« Reply #4 on: June 07, 2010, 09:23:58 AM »

thank you
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!