Hello Guest it is April 19, 2024, 02:12:11 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 01sporty

Pages: « 1 2 3 4 5 6 7 8 9 10 »
41
General Mach Discussion / Re: A Simple Macro
« on: March 03, 2013, 01:59:47 PM »
So, if anyone ever needs code for safety buttons, this is what I ended up with.
Here are the macros in a bit of sample code:

g1
M103      (Test that buttons aren't held/taped down)
M102     (Wait for both buttons to be pushed)
x0.195 y0.195 f20
z.5 f60
M103        (Test that buttons aren't held/taped down)
M101      (Wait for right button to be pushed)
x0.2 y0.2 f10
z1 f80
g0
z0
x0y0
m30

Here's the code for M103:

If IsLoading() Then
Else
Message "Please Release the Button"
While IsActive(INPUT1)
While IsActive(INPUT2)
Wend
Wend
DoOEMButton(172)
End If

M101:

If IsLoading() Then
Else
Message "Press Right Button to Continue"
While IsActive(INPUT2) = False
Wend
DoOEMButton(172)
End If

M102:

If IsLoading() Then
Else
Message "Press Both Buttons to Continue"
While IsActive(INPUT1) = False
While IsActive(INPUT2) = False
Wend
Wend
DoOEMButton(172)
End If

42
General Mach Discussion / Re: A Simple Macro
« on: March 02, 2013, 07:44:57 PM »
Well, I found the problem.  I've been writing the macros with Notepad and Mach didn't like the quotation marks around the message.

I opened the files in the VB Script Editor in Mach and the quotes were little squares.  Once I changed the squares to ", both of my routines worked fine.

Never heard of having a problem with Notepad before.

43
General Mach Discussion / A Simple Macro
« on: March 02, 2013, 05:00:46 PM »
At least I thought it would be a simple macro.

All I want to do is pause the program until the operator activates a switch connected to input #2.
I'll need a second macro that pauses the program until the operator activates two switches connected to input #1 and input #2 but I figured I'd start with just the one switch macro.  I've tried two different methods and all I've gotten so far is "scripter compile error" on both.

I first tried:
While IsActive(INPUT2) = False
Message “Press Right Button to Continue”
'Wend

That didn't work so I went with:
Do                                       
Message “Press Right Button to Continue”
If IsActive(INPUT2) Then Exit Do
sleep 10         
Loop

Suggestions please?

44
General Mach Discussion / Re: Barcode reader
« on: March 02, 2013, 11:58:30 AM »
Can you share a copy of the driver ? Or provide the name of the driver at honneywell.

(;-)TP

Yes, I can give you the Honeywell stuff, it's freely available.
http://www.honeywellaidc.com/en-US/Pages/Category.aspx?category=hand-held-barcode-scanner&cat=HSM
Pick just about any one of their scanners go to software and you can download the USB Serial driver package.
I don't think that will help you though.
In the driver package is a list of the scanners the driver is supposed to work with.  What is not in the package are the simplified instructions and a barcode the seller provided.  I'm assuming the seller considers his link private.  Without these, I don't think it will work but you could always contact Honeywell support.  It's probably all freely available if you want to spend the time.

45
General Mach Discussion / Re: Barcode Plugin *** Andrew question
« on: February 27, 2013, 03:54:36 PM »
I finally got a barcode scanner working properly and the VB script NotifyPlugins(10000) works just fine.

Thanks.

46
General Mach Discussion / Re: Barcode reader
« on: February 27, 2013, 03:52:11 PM »
Well, I take it all back.  The virtual driver provided by that seller works just fine.

The computer I originally tried it on had been loaded down with a bunch of garbage that made it painfully slow.  I wasn't patient enough with it.

Once I tried installing it on a nice, clean machine it installed and runs just fine.

47
General Mach Discussion / Re: Barcode reader
« on: February 22, 2013, 06:02:38 PM »
Well, the virtual driver does show up in the device manager as com 4 but Mach 3 still won't use it. Sigh.

48
General Mach Discussion / Re: Barcode Plugin *** Andrew question
« on: February 17, 2013, 05:27:37 PM »
I believe so.  No led is needed.  No oem number is needed.  The talk about led's had me confused.

The only thing that is needed is a button with NotifyPlugins(10000) entered into the box and the  Execute VB Script button selected.

I set it up like that and it seems to operate correctly.  The problem is I don't want to install the scanner on this machine and the machine I will be installing it on has no connectivity.

49
General Mach Discussion / Re: Barcode Plugin *** Andrew question
« on: February 17, 2013, 04:49:50 PM »
I still don't get it.  How about walking me through it?

First I create a led and give it an oem value of, say, 1250 and tell it to turn green when active.  Do I need to do anything else?

Then I create a button called 'load file' and give it an oem value of 1250.  Does the NotifyPlugins(10000) go in the Execute VB Script Box?  Do I need to do anything else?  I assume if I set the hot key, it's the same thing as clicking on the button?


50
General Mach Discussion / Re: Barcode reader
« on: February 14, 2013, 10:56:14 AM »
Here's a guy that says he can supply a driver with his USB readers that will create a virtural port that will be recognized by the device manager.
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=281014488696&ssPageName=ADME:X:RTQ:US:1123

I like the idea of a USB reader a lot better simply because it doesn't need a separate power supply.  I'm going to give it a try.  If it works out, I'll report back.

Pages: « 1 2 3 4 5 6 7 8 9 10 »