Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:46:37 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)
| | | |-+  DRO Question
Pages: 1 2 »   Go Down
Print
Author Topic: DRO Question  (Read 422 times)
0 Members and 1 Guest are viewing this topic.
rwskinner
Active Member

Offline Offline

Posts: 50


View Profile
« on: January 15, 2012, 01:19:08 PM »

Okay, I'm a newby and I'm creating my first screen.
I created a new screen for my Tool changer and I'm having an issue with a couple of DRO's.

When I add a DRO for Current Tool Number DRO - Code 24 it never actually displays the current tool, always Zero.
If I enter a number in there, it does update the Current Tool DRO on other pages, but mine still says Zero.

Also, I created another DRO and I'm trying display the value in the OEM DRO1200 but It always shows Zero as well.
I used the following:  OEM Code 12000

What am I doing wrong?

Thanks,
Richard
Logged
ger21
Global Moderator
*
Online Online

Posts: 2,619



View Profile WWW
« Reply #1 on: January 15, 2012, 01:36:39 PM »

Rather than using DRO 24, try using the System Function for Current Tool Number. Or. use OEM Code 824

Quote
Also, I created another DRO and I'm trying display the value in the OEM DRO1200 but It always shows Zero as well.
I used the following:  OEM Code 12000

1200, or 12000? Is 12000 a typo?

DRO1200 would be a user DRO, and you'd need to send data to it. What are you trying to do with it?
Logged

rwskinner
Active Member

Offline Offline

Posts: 50


View Profile
« Reply #2 on: January 15, 2012, 01:42:21 PM »

Thanks,  1200,  I'm just trying to display the value stored in DRO1200.
Logged
ger21
Global Moderator
*
Online Online

Posts: 2,619



View Profile WWW
« Reply #3 on: January 15, 2012, 01:45:26 PM »

There is no value stored in DRO 1200 unless you put the value there. It's a User DRO, not a standard Mach3 DRO.
Logged

rwskinner
Active Member

Offline Offline

Posts: 50


View Profile
« Reply #4 on: January 15, 2012, 01:51:05 PM »

I use it to store a value in from my M6Start Macro.

SetUserDRO (1200, NewTool)

Mach always starts up with Current Tool as 0,  The DRO1200 Stores the LastTool#
I use it in an init macro to set CurrentTool on startup. 

Works very well however I want to be able to see it's value.

Richard
Logged
rwskinner
Active Member

Offline Offline

Posts: 50


View Profile
« Reply #5 on: January 15, 2012, 01:57:24 PM »

I'm still not having any luck displaying the Current Tool.
In Screen Designer, I Add a DRO, the properties for the DRO are:
Function: Tool Number DRO
Code: 824
Format: %2D
 
If I go the Screen 1 and enter a tool number it's displayed properly in the DRO on Screen1 but the DRO on my new screen page always remains at Zero.
Logged
ger21
Global Moderator
*
Online Online

Posts: 2,619



View Profile WWW
« Reply #6 on: January 15, 2012, 02:18:24 PM »

And the two DRO's are the same?

Can you post the .set file?
Logged

rwskinner
Active Member

Offline Offline

Posts: 50


View Profile
« Reply #7 on: January 15, 2012, 02:32:08 PM »

It's screen 11.  Don't laugh, I'm just playing and trying to get the hang of screens.


* RF45-1024.set (96.64 KB - downloaded 16 times.)
Logged
ger21
Global Moderator
*
Online Online

Posts: 2,619



View Profile WWW
« Reply #8 on: January 15, 2012, 02:40:50 PM »

The format is wrong. It should be %2.0f
Logged

rwskinner
Active Member

Offline Offline

Posts: 50


View Profile
« Reply #9 on: January 15, 2012, 02:43:25 PM »

Ah, Thanks.  Let me try again.
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!