Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:45:04 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Can't write to OemDro 39, Spindle RPM?
Pages: 1   Go Down
Print
Author Topic: Can't write to OemDro 39, Spindle RPM?  (Read 944 times)
0 Members and 2 Guests are viewing this topic.
watswood
Active Member

Offline Offline

Posts: 15


View Profile
« on: March 06, 2007, 10:15:41 PM »

Are some DRO's Write protected?

Here is a section of my macropump:

sov=GetoemDRO (202)

If  (sov <= 9500) Then
   'set spindle speed to 9000 RPM
   ActivateSignal (output6)
   DeActivateSignal (output7)
   DeActivateSignal (output8)
   DeActivateSignal (output9)
   SetOEMDRO (39,9000)
   End If
   
If (sov > 9500) And (sov <= 10500) Then
   'set spindle speed to 10000 RPM
   DeActivateSignal (output6)
   ActivateSignal (output7)
   DeActivateSignal (output8)
   DeActivateSignal (output9)
   SetOEMDRO (39,10000)
   End If

Everthing is working fine except the SetOemDro command.  Any ideas?
Thanks
Eugene
Logged
watswood
Active Member

Offline Offline

Posts: 15


View Profile
« Reply #1 on: March 06, 2007, 11:16:51 PM »

Well, I must have looked over the wiki 5 times and didn't see the "not all dro's can be written" statement.  Sometimes I have to post a ? here in order to be able to see!
Logged
Ron Ginger
V4 Screen Contributor

Offline Offline

Posts: 568



View Profile WWW
« Reply #2 on: March 07, 2007, 04:29:36 PM »

You might try DRO 817. Its called "Spindle Requested DRO".

39 is called True Spindle and it shows the measured speed, so you cant change that.

When Im writing wizards I often open the 1024.set screen and select buttons I want to use and see their properties. Its often quicker than trying to read through the long lists of codes.

You might also use a Code command and issue the gcode for speed- Code "s 9000" or whatever speed you want. I think its legal to use an S word alone
« Last Edit: March 07, 2007, 07:33:37 PM by Ron Ginger » Logged
Pages: 1   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!