Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 10:55:53 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Machscreen Screen Designer (Moderator: Klaus1311)
| | | |-+  OEM Codes...
Pages: 1 2 »   Go Down
Print
Author Topic: OEM Codes...  (Read 1954 times)
0 Members and 1 Guest are viewing this topic.
Arbo
Active Member

Offline Offline

Posts: 40


View Profile
« on: November 03, 2009, 10:56:55 AM »

If I make a button and use say, OEM Zero X, then go back and look at the button,  it shows up as user defined, though the code # is correct.  But the button doesn't work.  But if I use the STD zero X, with the depreciated code, it works fine.

Is this a known problem?

Logged
Klaus1311
Active Member

Offline Offline

Posts: 302


View Profile WWW
« Reply #1 on: November 04, 2009, 04:32:29 AM »

Hey,

if I understood the wiki right, the codes you are talking about, are for programming purpose. For designing the standard codes are for the predefined actions



Klaus
Logged
Arbo
Active Member

Offline Offline

Posts: 40


View Profile
« Reply #2 on: November 04, 2009, 09:07:49 AM »

Perhaps I am confused then...  why are the OEM codes available to pick for a button if only the STD ones are 'correct' ones to use?

Other than that, great program, it's the only screen designer that even runs for me.  Loving it so far.

Logged
Arbo
Active Member

Offline Offline

Posts: 40


View Profile
« Reply #3 on: November 04, 2009, 11:03:05 PM »

Klaus,

Perhaps I can explain a bit better.   Say you are working on a 100% new screen.   Create a background, create a page 0 screen with a global reset button.   Set the button to 'OEM Reset' and it changes in the data field to 'user defined: *********x' (don't remember the number).  Save it, the reset does not work.  Go back and change it to 'STD Reset'  and save it, the reset button works.

Same thing with OEM Load vs. STD Load.    It's all good I guess as long as there is a STD function that is the same as the OEM function, but if not.....

Odd thing is if you load the default 1024.set, the load file, edit file and other things are set up as using the OEM codes, and show up correct in the details window rather than user defined: *********x....

I have attached pictures that show this behavior....  first one is setting the reset button to OEM Reset, which changes to "user defined"...  next is using STD Reset...    last shows how default screens come up with proper OEM codes.



* oembutton.png (393.13 KB, 1547x778 - viewed 166 times.)

* stdbutton.png (412.65 KB, 1543x845 - viewed 120 times.)

* 1024button.png (115.9 KB, 786x692 - viewed 158 times.)
« Last Edit: November 04, 2009, 11:04:47 PM by Arbo » Logged
Arbo
Active Member

Offline Offline

Posts: 40


View Profile
« Reply #4 on: November 04, 2009, 11:21:36 PM »

I think I figured out what must be going on.   If you create a button from scratch it will assign properly.   If you create an image-button from scratch, when it saves to the SET file, it saves the OEM code (ie, 216 for load file) but it doesn't set a bit saying it's an OEM code.

Figured this out by running screen3 on the screen and clicking on the buttons that do not seem to work right, and it brought it up with the right # code, but no option (ie, OEM) bit set.

Hope that clarifies.

Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,612



View Profile WWW
« Reply #5 on: November 05, 2009, 09:11:45 AM »

Hey, you stole my reset!! Wink
Logged

Arbo
Active Member

Offline Offline

Posts: 40


View Profile
« Reply #6 on: November 05, 2009, 09:16:18 AM »

Yeah, that is it.  I might even steal your cool aqua buttons.  Wink     Your screen is awesome.

Logged
Arbo
Active Member

Offline Offline

Posts: 40


View Profile
« Reply #7 on: November 07, 2009, 10:22:48 AM »

Klaus?  Have you read any of this?
Logged
Klaus1311
Active Member

Offline Offline

Posts: 302


View Profile WWW
« Reply #8 on: November 08, 2009, 04:30:02 AM »

Hey Arbo,

sorry I didn't answer earlier. There is no bit specifying a OEM-code. When you "add" a control you have to assign a function. Depending want function you want, you select either OEM or standard code. When you are using an OEM code, the decimal code is shown in the OEM_code line. The naming is taken from the wiki. The OEM-codes are for programming purposes e.g. SetOEMLed. As I wrote earlier, to assign a function to a control, use the Std calls.



Klaus

Logged
Arbo
Active Member

Offline Offline

Posts: 40


View Profile
« Reply #9 on: November 08, 2009, 10:28:46 AM »

Ok, I guess I'm not being clear, and will have to give up modifying my screens as now none of the screen programs work.

Do this, open the default 1024 set, click on some of the controls, you will see they are OEM controls, in fact, there are not STD
controls for some functions (I believe edit gcode is one of them).     Now that you see that,  create a brand new screen  you don't
need a background, on that screen, add an image button and set it to an oem function like load gcode.  Watch what it does.

Now create a normal button and assign it the same function, and watch what it does.

You will see the button works, but the image button does not.

As a former programmer, I'm just trying to let you know on the image button save, something is missing, a bit is not being
set if it's an OEM code.

I hope I am being clear as I'd like to continue to use your program, but can not until this feature works correctly.

Logged
Pages: 1 2 »   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!