Hello Guest it is April 19, 2024, 04:41:21 AM

Author Topic: How can I create a ticker when E-Stop button is pressed?  (Read 3814 times)

0 Members and 1 Guest are viewing this topic.

How can I create a ticker when E-Stop button is pressed?
« on: June 06, 2010, 12:15:19 PM »
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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: How can I create a ticker when E-Stop button is pressed?
« Reply #1 on: June 06, 2010, 03: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






Re: How can I create a ticker when E-Stop button is pressed?
« Reply #2 on: June 06, 2010, 04:28:52 PM »
Where can I insert this code? Where is the macropump? I am still new to Mach and want to learn :).

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: How can I create a ticker when E-Stop button is pressed?
« Reply #3 on: June 06, 2010, 04: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,
Re: How can I create a ticker when E-Stop button is pressed?
« Reply #4 on: June 07, 2010, 10:23:58 AM »
thank you