Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Hood on April 27, 2008, 04:07:52 AM

Title: OEM codes for buttons, DRO's and LED's
Post by: Hood on April 27, 2008, 04:07:52 AM
The xls contains a list of OEM codes for buttons, LEDs and DRO's. If any more are known that are not in the list please let me know and I will alter and re attach it for all to use.
Hood


Another version of the list can be found in this post. Read the post the newer list is in for more info.

http://www.machsupport.com/forum/index.php/topic,6657.msg90480.html#msg90480

Edit: Added link
Brett
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: sshneider on April 30, 2008, 11:40:36 PM
Hey Hood!

Thanks for posting that! Good Stuff!

I have an embarassingly lame question...  Is there an OEM code for 'Fast' Jog.  I'm not even really sure if I am using the correct terminology.  It's when you hold down the Shift button and jog your machine.  Or maybe there is an OEM code for the shift button?

I hope I am making myself clear- if not let me know and I'll try and think of a better way to say this.

Thanks,
Sid
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Chaoticone on May 01, 2008, 05:34:20 AM
I think toggle override of rapid feeds 287 may be what your looking for. 

Brett
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: sshneider on May 01, 2008, 02:38:55 PM
Thanks Brett!  I tried it but it's not quite what I needed.  I wanted to be able to toggle between slow jog and rapid jog using the shuttle but, No worries- I've got PLENTY of time!  ;)

Regards,
Sid
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Hood on May 01, 2008, 07:03:23 PM
The list has been updated with more stuff that Chip pointed out was on the wiki.

Hood
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Hood on May 01, 2008, 07:05:30 PM
Sid
 sorry dont know :( if its not in the list then you may have to resort to making a VB button to change the feedrate DRO, not great at VB but it should be possible.
Hood
Title: Re: No Z Axis forward in Turn3
Post by: absolutecontrols on May 15, 2008, 09:28:36 AM
Hi ;)
 
    Just a quick question about Z Axis motor in Mach3Turn3. I have been using Mach3Mill on my router for a couple years and I just decided to mount a couple stepper motors and connect it up to my Taig lathe. Everything went ok except I don't get any response from the up arrow which should move my work platform towards the head stock. It works if I give it a "G00 Z-.5" under program control but now I seem to have lost the jog in that direction. I think the setup is ok, seems to work fine during tuning. What am I forgetting? Input pins and key codes look ok.
 
   
    Thanks
 
Barry
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: sshneider on May 15, 2008, 09:33:20 AM
I don't use a lathe but, I thought that the Keyboard shortcut for Z axis was the Page Up/Page Down keys.  Arrow Keys only work in the Motor Tuning config.  Maybe it's different for Lathe though???

HTH,
Sid
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Hood on May 15, 2008, 09:55:18 AM
In Turn I think the left and right arrow may be default for the Z, thats what I use. If its not default then its easy enough to set up, just go to Config menu then down to Hotkeys, in there presse on the Z++ and a box will pop up asking you to select a key, press the right arrow and it will be set, do the same for the Z--.
 The X Axis on my lathe is the up and down arrows, again whether this is default I am not sure but easy to set up as detailed above for the Z.
Hood
Title: Re: Responce to Sid
Post by: absolutecontrols on May 15, 2008, 01:31:06 PM
Hi Sid
 Thanks for the Reply. When I am using my CNC Router the page up and down controls the Z Axis but when I loaded the turn3 Lathe Mach3 program the default was set to Axis X (Tool Platform) and Axis Z for (back and forth towards the head stock). It surprised me too when I first saw it but when you think about on a Mill or Router the depth cut is the Z Axis the surface is just round here. I did see a options to select different Axis but it kind of made sense so I am working on it from there. It acts like it see the limit switch when using the up arrow but that's working ok. I did change the control for the Z Axis keys to the up and down arrow keys just to keep it visually correct. Maybe I'll try switching them back to the page keys to see if it is different. I know when I reverse the signal the problem reverses and like I said it works in the tune mode ok but then again the up and down arrow jog what Axis you have selected at the time. Thanks for taking the time out to reply. It works under program control just not the jog.... strange.
 
I'll Post something when I figure it out if I live that long.

Thanks again
Title: Re: No Z Axis forward in Turn3
Post by: absolutecontrols on May 16, 2008, 06:15:09 AM
Well it looks like changing the keys used to control the Z Axis in Turn3 is not a great idea. The Hot Key menu will let you do it but you lose one direction of travel. (At least it did to me) When I changed the Z Axis control keys back to Page up and Page down I got control of both directions of travel again. Sid was right... If I hadn't been changing so many things at one time I would have got it sooner. Oh well ..

  Off to other things. After getting it running I seen my little Tiag dose not want to cut .010 depth on a ruff cut on steel and I don't see how to enter a smaller value into the wizard so now I am off to written my own program in VB6 to get some smaller cuts. I may have to put some bigger motors on I though these 86 oz would do the job.


Thanks for the help Sid

Barry
 
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Kryten on March 14, 2009, 01:31:40 PM
Was there a solution to the fast jog problem ? I'm looking for an OEM code that is the same as pressing the Shift key while jogging. Thanks,
Glen.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Tweakie.CNC on March 23, 2009, 05:35:18 AM
Thanks Hood for posting the .xls file. It has been most useful.

Tweakie.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: MachineMaster on March 28, 2009, 11:12:47 PM
The xls contains a list of OEM codes for buttons, LEDs and DRO's. If any more are known that are not in the list please let me know and I will alter and re attach it for all to use.
Hood
Hood,
I just posted at
http://www.machsupport.com/forum/index.php/topic,11008.msg69087.html#msg69087
and attached an xls file containing all of the Mach3 specific VBScript words that I could find.
That file really should be over here and on the Wiki but I dont know how to move it or
put it on the Wiki.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Hood on March 30, 2009, 02:30:10 AM
I believe you can add to or edit the wiki yourself although maybe now you need to sign up as I seem to remember for a while there was malicious changing being done..
Hood
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Pythagoras on April 02, 2009, 06:58:58 PM
This topic shouldnt be a sticky, and should be moved to the downloads section.
IMHO :)
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: MachineMaster on April 02, 2009, 07:19:01 PM
Brian just posted at

http://www.machsupport.com/forum/index.php/topic,11068.0.html

That the OEM codes are going to be changed in the next Mach revision.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: xnaron on April 24, 2009, 03:48:52 PM
Thanks Brett!  I tried it but it's not quite what I needed.  I wanted to be able to toggle between slow jog and rapid jog using the shuttle but, No worries- I've got PLENTY of time!  ;)

Regards,
Sid

Did you ever figure out how to do this?  I am trying to do same on bluetooth wireless keypad with no shift key.

Title: Re: OEM codes for buttons, DRO's and LED's
Post by: softselect on December 13, 2009, 04:20:19 AM
I have made a pdf version, since my development PC doesn't have Excel, I also made a alphabetical listing next to the original by Hood
At the moment it is only A4 page size should anyone need a different page size, I would do it with pleasure
thanks for the list Hood, your a life saver ;)
Friedrich

Update (removed blank pages)
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Hood on December 13, 2009, 06:47:50 AM
Looks good Friedrich, but better point out I just put the list into a xml doc so I could have it on my computer and could search. The original list is on the Mach Wiki and I think originally put together by John Prentice.

Hood
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Chaoticone on January 13, 2010, 06:13:23 PM
This is the list I have been working on for a while. This is just a small part of some of the work going into Rve.4. Its likely you want need a list like this at all in Rev.4  ;) but this needed to be done to get to that point. Hopefully it will help with Rev.3. Really the first 4 columns is all you need to pay much attention to. The vb call column (column 5) is just for reference. Some will be get/set OEMLED, button, dro but it is not noted in this list. I think you will find column 6 (New Number good to sort by. The idea was to group by similar function. If you find any of the new descriptions misleading or think they should be grouped different let me. No guarantee it will change anything but I'd like to know what you think. This isn't being posted to encourage lots of questions or debate just some of our notes that I hope will help you. But, I would like to know if you find the grouping and new descriptions accurate.  

Brett
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Overloaded on January 13, 2010, 06:24:31 PM
Hey...you did tidy it up a bit.....Looks real good Brett.
 :)
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Overloaded on January 13, 2010, 06:53:20 PM
Brett,
  The new .xls is great. Better than 4-09.
Just curious, what do you open the .ods with ?
Thanks,
Russ
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Chaoticone on January 13, 2010, 07:47:32 PM
ods is the Open Office spread sheet extension. It is pretty good and free.  :)

Brett
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Overloaded on January 13, 2010, 08:12:18 PM
Thanks Brett.
I found it..........and only 150 meg.
Would take over 4 hrs here. :P
I'll just trust you on the "pretty good". lol
.xls is OK for me, was only curious.
 
Russ

Oh, you think you should put your new list in the first post with Hoods. It will be easier to find when anyone comes to this thread/topic.
(especially since I've cluttered it up ::))
Just a thought,
Russ :)
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Chaoticone on January 14, 2010, 05:47:17 AM
Yup, good point RC

Brett
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: revwarguy on February 10, 2010, 10:24:48 AM
Hello Hood, et al,

Could one of you please tell me or point me to an explanation of how you open the gcode file on a screen?  I have been looking into screen design, and am trying to make one of my own, and I think I can "hook up"mostl the buttons I need, whether they are standard functions, or VBscripts, except how to load the gcode file.  I know every one needs to do this, but I just haven't been able to find an example.  I don't see it listed on the standard function list, which is odd.  Is it done in VB?

TIA,

Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Overloaded on February 10, 2010, 10:53:24 AM
OEM Button 216
Jut plop one on your screen, click it then navigate to the file you want to load.
Hope this helps you,
Russ
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: revwarguy on February 10, 2010, 11:01:42 AM

DOH!  ::)

(sheepish grin)

Sorry about that, sometimes things have a perverse way of hiding from me.

Thanks.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Overloaded on February 10, 2010, 11:04:20 AM
No prob....

Here it is also in Bretts masterpiece.
Russ
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: BR549 on May 07, 2010, 08:30:05 PM
Chaoticone, If you get a moment could you add a description for each column. I am having a hard time referenceing the old vs new stuff

I am opening with WORKS

Thanks
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: andmar2005 on February 19, 2011, 01:23:03 PM
hello
DRO what number to use in turning the panel to display information the number of offsets used at any given time
such as M6 T01 1911
T01-No tools
11 - used thistle (just at the table for the tool T11), but loads it to the tool T01
M6 - change tools
hi
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: rimawi2008 on April 25, 2011, 05:32:16 AM
hello , every one

iam beginner in mach3 i build plasma cnc machine and try to learn on mach3 can i ask what is dro and leds oem is?
and i need to know how can i control z- axis in mach3 i need to move it down until limit switch closed then move it up for a specific value then take  signal to start plasma
can i do that using mach3 if i cant what is the way to control plasma ??
thank you very much
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Tweakie.CNC on April 25, 2011, 07:15:46 AM
Hi Rimawi2008,

Not trying to fob you off but you really need to read through some of the Mach manuals to get an idea of the way Mach works and the terminology used. The documentation can be found here http://www.machsupport.com/documentation.php
Then come back with your questions. Doing it this way will save you a lot of time.  ;)

Tweakie.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: nelsonk11 on June 26, 2011, 01:55:51 AM
I haven't been able to use the mach 3 in DRO mode only.  An idea was given to me, but it didn't work out.  All I want to do is zero an axis and be able to manually move the tables with position updating.  Any other ideas?
Regards
nelsonk11
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: brian98 on November 04, 2012, 11:45:48 PM
Many thanks for all that work.  It is most useful.  I'm hoping you can assist with helping ID the Port 1 and 2 pins.  There are LED's on the Diagnostics screen (12 for Port 1 and 12 for Port 2) but they are not identified as to which pins the LED's match.  The OEM codes are sequential, Port 1 has #137 through #148 and Port 2 has #149 through 160.

I've identified only the following and hope you or someone else can help with the others:

137 ???
138 ???
139 ???
140 - Port 1, Pin 15:  A "Home" on my machine
141 - Port 1, Pin 13:  Z "Home" on my machine
142 - Port 1, Pin 12:  Y "Home" on my machine
143 - Port 1, Pin 10:  E Stop
144 - Port 1, Pin 11:  X "Home" on my machine
145 ???
146 - Port 1 Pin 16 or Pin 17? Not sure which
147 - Port 1 Pin 16 or Pin 17? Not sure which
148 ???
149 Port 2 Pin ???
150 Port 2 Pin ???
151 Port 2 Pin ???
152 Port 2 Pin ???
153 - 160 are Port 2 Pins 2-9 if enabled as inputs

Thanks for any assistance
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Machtank on May 04, 2013, 01:41:48 AM
I am just setting up lathe tooling under Mach3turn, and I notice that the DRO for "Tip Direction" does not do anything (does not reflect the tool table, and does not record inputs).
I have checked the DRO and it is set to OEM code 106 (correct as per documentation I've found). The main problem is I have no idea if Mach is using the value from the tool table.
Entering a G40,G41,G42 command in the MDI produces a change in the axis position (DRO only, no axis movement), but this does not help.
Can anyone shed some light on this?
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: parisharma on June 05, 2013, 03:42:48 AM
Hey thanks for this post. It's very useful for us.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Quin on December 15, 2013, 10:49:13 AM
Is there a way to find out which user DRO's and LED's have been used?  to avoid overwriting.

Quin
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Chaoticone on December 15, 2013, 10:57:44 AM
Not exactly. You can look at the report view in MachScreen to see which are used in screen sets but user leds and dros do not have to be visable to be used in VB. You could open all the VB in Notepad++ and search for userdro and userled.

Brett
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Quin on December 19, 2013, 05:52:11 PM
Thanks Bret,  I now have a handle on DRO's that have been used.

Now a second question:  I would like to attach some code to the E-Stop/reset button that would be used to initialize another button.  I can't find a way to do it in Screen designer.  Any ideas?  

Quin

Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Chaoticone on December 19, 2013, 06:21:54 PM
That's a bit tricky. The reset button kills everything else, script and all so.......... you will have to think about that. Give us some more details if you can.

Brett 
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Hood on December 19, 2013, 06:22:17 PM
Just change it to a VB button then add your code once back in Mach by using the Operator then Edit Button Scripts option.
Hood
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Hood on December 19, 2013, 06:24:08 PM
See Bretts answered but personally dontt think it will be a problem if done right, did that on a few of my screenets and it worked fine.
Hood
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Quin on December 22, 2013, 11:02:55 AM
Hi Bret,
Attached is the scrip for my button that incrementally adds .010” to the Z work offset.

The processing LED (1214) is used to prevent clicking the button while the scrip is processing.  The loops slow down the script execution.  Without these features, if the operator clicks too rapidly DRO 49 will not reliably register the increment.

Here is the problem I am trying to solve.  If the operator exits Mach3 without canceling, DRO (1006) will retain its value.  Upon restarting the retained value will be shown but DRO49 will have been automatically set to it’s original work offset table value.  If he runs a part program under these conditions he will be cutting at finish dimension rather than at the added value shown in DRO(1006).

Also the message box that Mach3 presents on exiting: “Save fixture settings?” can be confusing.

What I would like to do either on exiting or opening Mach3 is to:  Set DRO(1006) to zero and set DRO(49) to the DRO(1011) value.  How can I do this?
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Chaoticone on December 22, 2013, 01:21:31 PM
No way to do it on exit that I know of. You could add your functions to a custom macro and add that to the initialization string in general config. When you launch Mach it will run the initialization string. Optionally you can set the initialization string to run on each reset.

Brett
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Quin on December 22, 2013, 05:11:48 PM
Hi Brett,
 How do I find the initialization string?  I prefer to do it on launch.  As you can see I'm rather green on programming.

Thanks,
Quin
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Chaoticone on December 22, 2013, 05:30:38 PM
Quote
initialization string in general config

Add your code in the VB script editor and save as M1000.m1s in your profiles macro folder. Then add M1000 to the initialization string.

These links should help if you haven't got them already.

http://www.machsupport.com/wp-content/uploads/2013/02/Mach3_V3.x_Macro_Prog_Ref.pdf

http://www.machsupport.com/wp-content/uploads/2013/02/VBScript_Commands.pdf

Brett

Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Quin on December 22, 2013, 09:07:00 PM
As I understand your suggestion:
Write a macro (M1000.m1s) and save it in Mach3>macros>Mach3mill.  Now in what file do I find the "initialization string"?  You mention it being in "general config"??  IF its covered in the program ref doc, a page #i would be helpful.  Thanks.

Quin
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Humbuk on December 24, 2013, 12:58:52 AM
Have recently completed my router with 2 steppers on the X axis. One moter wired in reverse (a axis) and slaved to X. Homing switches are set up on each individual axis.
Problem (1) is that machine homes on every axis but does not reverse off each switch, and problem (2)is after homing the x axis it will not run in the correct direction when jogged by the arrowed keys. After I have reversed the X axis motors to allow jogging in the correct direction the x axis will then not Home in the correct direction.  Hope someone can help Thanks Humbuk
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Hood on December 24, 2013, 02:42:10 AM
You can reverse the homing direction from Config menu then Homing and Limits page.
Regarding your first problem, do the LEDs at the side of the axes DROs turn green? If they do then the axes have reversed off the switches.
Hood
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Humbuk on December 24, 2013, 08:33:36 PM
Hi Hood,I will check out the Led's on the DRO'S, havent noticed that one. With the other problem, do I set to run in the correct direction for normal operation, and then reverse the homing on the limits and home page, in other words is there a definate procedure to follow.
Humbuk
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Hood on December 26, 2013, 05:28:22 AM
You need to set the X Y and Z motion to be the correct direction first. Which way that will be depends on the type of machine you have but one thing is constant and that is the relation of tool to work.
For example if you have a knee type mill the table moving left will be a positive move in X as the cutter would be moving positive in relation to the work piece.
 On something like a gantry router then the gantry moving right would be a positive move as again the cutter is moving positive in relation to the work material.

Once you have X Y and Z set correctly for direction then you can tell Mach the direction you wish to home, ie positive or negative. If you home positive then ideally you want to set a Home Off value equal to the travel of your axis. For example if you had a 500mm X axis and you homed positive then the Home off value would be set as 500. When you homed the axis would be fully positive and the machine coords would be set to 500. That would mean the machine coordinates zero for X was correct as X0 in machine coords would be fully negative.

Its a bit confusing to read but when you see it you will work it out as long as you remember its the relation of tool to material and not necessarily the motion of the axis.



Hood
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: ger21 on December 26, 2013, 08:21:25 AM
As I understand your suggestion:
Write a macro (M1000.m1s) and save it in Mach3>macros>Mach3mill.  Now in what file do I find the "initialization string"?  You mention it being in "general config"??  IF its covered in the program ref doc, a page #i would be helpful.  Thanks.

Quin

If you haven't found it yet, go to the Config menu in Mach3, then General Config. It's in the middle of the screen, slightly to the left.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Quin on December 26, 2013, 08:56:32 PM
Hi Gerry,

I was using a legacy version (1.84) which did not have the general config menu. I converted to the latest version am now able to insert my macro into the initialization string.  It seems to work OK now. I just hope that everything else will work as intended with the latest version.

Thanks, Gerry

Quin
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Humbuk on January 03, 2014, 05:00:42 AM
Hi Hood, back on deck with finishing my router. The set up for homing and jogging in the correct direction is now fine. 1 have a question regarding home switches. currently I use a 5 axis break out board, 1 connection each for 4 axis incl slave , 1 for spindle on off. Can I run the homing switches in series and connect to just 1  board connection so that I can also set up a tool material height micro switch. The Mach 3 simple setup says yes for a 3 axis setup, but it doesnt refer to a 3 axis with fourth slave axis
Regards Humbuk
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: ger21 on January 03, 2014, 07:08:08 AM
The master and slave should be on separate pins if you want the gantry to auto square when homing, but the other two axis can share a pin with either the master or slave.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Humbuk on January 21, 2014, 05:33:08 AM
Hi, I have the router running nc files and homing all ok. I have one problem, I have noticed that a power point or light swiitch when turned of or on is sending a pulse to the cnc and throwing the safety /stop button. All micro homing switch leads are earthed. any ideas to stop this please.
Also I have set up a tool depth set micro , it sits about 200mm in from the end and side of the table and is clear of the machining area. How do I tell mach 3 where this micro switch mechanism is, set the tool depth (surface of the work piece) and then get the XYZ axis  to return to the zero point to start work. I am using Enroute pro for all my toolpathing which sets my tool at top of surface.
I now run all my homing and slave homing switches on 2 inputs on the breakout board, so I now have 2 connections free 1 being for the tool depth micro
Best regards Humbuk
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Tweakie.CNC on January 21, 2014, 05:39:19 AM
Quote
I have one problem, I have noticed that a power point or light swiitch when turned of or on is sending a pulse to the cnc and throwing the safety /stop button. All micro homing switch leads are earthed. any ideas to stop this please.

I would be inclined to fit a mains filter in series with the power input to your CNC (of sufficient current rating).

Tweakie.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Humbuk on January 23, 2014, 01:12:09 AM
Thanks Tweakie, chasing up the electrician for the filter.
I have been running large files on the cnc to basically become familiar with motor tuning, speeds, positions on the table. These files are used on my large ART CNC router.
I am coming up with an intermittant problem where the program stops running and it comes up with message "radius to end of arc differs from radius to start" I know the file is ok as I have already cut this file on the large machine. Why would this be coming up especially when I could run this file again and it wouldn't faulter. It also does it with other files as well

Regards Humbuk
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Tweakie.CNC on March 13, 2015, 02:36:12 AM
Quote
I am coming up with an intermittant problem where the program stops running and it comes up with message "radius to end of arc differs from radius to start" I know the file is ok as I have already cut this file on the large machine. Why would this be coming up especially when I could run this file again and it wouldn't faulter. It also does it with other files as well

Some versions of Mach3 are more tolerant than others with regard to this intermittent problem (load the file first time,it fails - load it a second time and it is OK).
It is worth checking that you have the correct IJ Mode set in Config / General Config and perhaps as a general rule ensure that it is defined at the start of all your Gcode files with G90.1 or G91.1 as appropriate for the way in which arcs have been created in your CAD / CAM.

Tweakie.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Ghantos on May 24, 2015, 01:53:24 PM
Hello Hood,
I want to know how I can use an external button to toggle an  UserOEMLED.

I have used all the "named  inputs" in mach3 and I want to use.

I want that when I press a physical button in control panel at input #17 to activate he led.

Please let me know!
Regards,
Ghantos
 
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: andmar2005 on May 26, 2015, 02:29:10 AM
'simple button
'Paste the contents of the button

 If GetUserLed(1032)=1 Then
     SetUserLED(1032, 0)
     DeActivateSignal(OUTPUT17)
    End
  End If
 
  ActivateSignal(OUTPUT17)
  SetUserLED(1032, 1)
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Ghantos on May 26, 2015, 03:27:53 AM
Hello friends ,
Maybe you don't understand me well.

I want at the end to run a macro with an external button (not a button on the screen)
What you explain here is how to activate an output by a screen button.

Please let me know!
Regards,
Ghantos
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: andmar2005 on May 26, 2015, 04:40:03 AM
Input settings set OemTrig # 15 port and pin your signal
paste it to macropump and restart mach3


Sub Main
  If IsActive(OEMTRIG17) Then
     SetUserLED(1032, 1)
     'ActivateSignal(OUTPUT18)
  End If
Sleep (50)
End Sub
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Ghantos on May 26, 2015, 06:08:23 AM
Hello Andmar,
Thank you for the reply,
I have another Question regarding the MacroPump.

If I have a an endless loop that could be "Broken"
By any logic condition such as input trig, button pressed... And after the loop I have some more vb code like calling function s or subs or any simple vb code.
What happen in this case?
Is the macropump still wait until the loop is broken??

Example:
--------macro pump-------
Sub main ()
While(IsStopped)

Code -------
Code ---------
If isactive(input17) them
--------
--------
Wend. ,end of loop

And now in the same macro pump I have

Code--------
Code------
Code ----

End sub
The question is the vb codes after the loop are executed even before the loop if finished??

Please let me know!
Regards,
Ghantos
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: andmar2005 on May 26, 2015, 06:22:14 AM
hi
in theory you age, but you have to determine what are you going to do with this macro
maybe there is another solution to this simpler
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Belcher on August 02, 2015, 11:14:06 PM
The xls contains a list of OEM codes for buttons, LEDs and DRO's. If any more are known that are not in the list please let me know and I will alter and re attach it for all to use.
Hood


Another version of the list can be found in this post. Read the post the newer list is in for more info.

http://www.machsupport.com/forum/index.php/topic,6657.msg90480.html#msg90480 (http://www.loveandbuyit.com)

Edit: Added link
Brett

Thanks for sharing the information.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Lerner on December 24, 2016, 05:02:26 PM
Perhaps I'm missing something, but is there an OEM code for spindle override (s-ov) reset?

I need to map a Pokey's button to it.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Lerner on December 30, 2016, 03:32:36 PM
Perhaps I'm missing something, but is there an OEM code for spindle override (s-ov) reset?

I need to map a Pokey's button to it.

OEM 183
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Lerner on December 30, 2016, 03:33:47 PM
What is the magic OEM button code for "auto tool zero"
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: ger21 on December 30, 2016, 06:24:32 PM
There isn't one.
OEM codes are for built in functions.
There is no built in auto zero function.

Auto zero routines are user written macro's.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Klaus on October 16, 2018, 04:31:33 AM
Hi

Sorry I new to all this, but how is all this with the OEM code working? Is there a description somewhere or can somebody please explain?

Thanks
Klaus
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: ger21 on October 16, 2018, 07:23:10 AM
Try the Mach2 Customization guide.

http://www.machsupport.com/wp-content/uploads/2013/02/Mach2_6.11_Custom.pdf
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: decari on December 12, 2018, 12:11:22 AM
dear master..need your help for Mach3Mill

if  (Changetools LED process)OEMLED806 "ON"...i need Signal output6 "ON"

Thanks
decari
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: TPS on December 12, 2018, 01:22:44 AM
output6 -> OEMLed(79)
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: decari on December 12, 2018, 01:48:30 AM
External Button-OEM codes ->Triger # OEM code 1=1000(cycleStart)
input signal -> OEM Trig#1=Pin no.0

If Pin no.0 "ON"= cycleStart "ON"

Dear TPS...
if  (Changetools LED process)OEMLED806 "ON"...i need Signal output6 "ON"

is it same methode

Thanks
decari
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: TPS on December 12, 2018, 02:00:24 AM
for the Moment i am not able to catch the Problem.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: decari on December 12, 2018, 02:11:14 AM
 Pls help ....signal output for OEM806(LED ChangeTools)?

Thanks
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: decari on December 12, 2018, 02:17:01 AM
i only need "signal output triger" for OEM806(LED ChangeTools)

How to make ...Change tools have output triger signal ?


Thanks
decari
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: TPS on December 12, 2018, 02:53:16 AM
still not sure, but maybe you are looking for something like this


IF GetOEMLed(806) then
  ActivateSignal(OUTPUT6)
Else
  DeactivateSignal(OUTPUT6)
End If
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: decari on December 12, 2018, 05:56:10 PM
Thanks very much..i Will try it... thanks
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: decari on December 12, 2018, 06:00:26 PM
This signal...i want to make external unit (change tools) by plc.
Combine plc and board...thanks
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: AUKURAS on February 28, 2019, 11:53:12 AM
Hey guys.

Does anyone know why my MACH3 brain does not have some of the DROs?

I looked into the list posted by Hood and another one by Brett and a few other lists that I could find online. All of them includes these:

For example:
75 - Stock Size DRO
836 - Current Tool length DRO

I know there was a couple more that are missing, but I can't remember them.

I use MACH3 R3.043.066

Did later versions of MACH removed some of the DRO's ?
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: TPS on February 28, 2019, 12:50:14 PM
just type in the number, not all of them are in the pull down list.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: AUKURAS on February 28, 2019, 02:40:46 PM
Thank you for the reply,

I tried, with no success. "old codes" and "new codes". Tried to set it in the pull-down field and "Use DRO Number" field. Still can't pull out Tool length DRO...
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: TPS on March 01, 2019, 01:42:21 AM
see attachment
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: AUKURAS on March 01, 2019, 06:50:18 AM
Yes, that's how I did. I can create a rung 836, but the output is always 0.0000 while tool length is set as 7.250 (or any other value).
I tried as well "OEM 180 Machine Z coord - Z Work Offset - Tool length" with the same result.

In the end, I managed to get Tool Length by using OEM 42 (Tool Z Offset). It works like a charm!
And I got stock size by calculating values from other DROs.

I already used some other DROs that are not in pull/down list, and they work fine i.e 124, 126.
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Ormund on September 03, 2019, 09:18:08 PM
I was trying to find the codes for enslaving/freeing the B axis but the list is incomplete; doOemButton(367) will free the B axis but no code to enslave it.
Is there a definitive list of these codes? I've been trying to find a work-around for squaring the gantry of a router until I get a chance to add a second home switch for the B axis.

Title: Re: OEM codes for buttons, DRO's and LED's
Post by: TPS on September 07, 2019, 03:35:57 AM
could also not find a buttoncode for entslaving. maybe

Button 254 DoOemButton Disable movement on axis B 254

can help?
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Fred_evans on October 04, 2019, 06:46:15 AM
hello Chaps-
Found this thread while looking for a way of "set home X" and "set home Z"
how do i write this into gcode?
thanks for the help

regards fred
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: mgolec on December 26, 2019, 02:32:01 PM
Hi!

I want to ask you if there is a way that the numbed is working in Mach3 also. I have it from Estlcam and would like to use the same keys also in Mach3.

Single Axis Movement went fine by set it at the hotkey menu. But 2 axis by press 1,3,7 or 9 and the other functions will work only with macro, sure? (see pic)

Does anyone give me a little help for programming, I am new in mach3 scripting...

Greets Markus
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: erasmodigitax on November 16, 2020, 12:13:14 PM
good afternoon .  I'm new here, and I'm in need of help.  I need to do a function on the machine, that when pressing the button it activates an output for 1 second, and when I press it again it activates another output for 1 second, I will use to fix the part, activate two valves, one to close and one to open  .  How can I do it ?  I'm using input 6, and outputs 3 and 4.
Used mach3 and board nven v2
Tanks
Title: Re: OEM codes for buttons, DRO's and LED's
Post by: Graham Waterworth on November 16, 2020, 06:52:58 PM
Sorry we do not support Novusun products due to licence violations.