Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:02:22 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
| | |-+  OEM Trigger
Pages: 1   Go Down
Print
Author Topic: OEM Trigger  (Read 1179 times)
0 Members and 1 Guest are viewing this topic.
HillBilly
Active Member

Offline Offline

Posts: 181


View Profile
« on: January 08, 2007, 01:06:42 PM »

What is the call for OEM Triggers?
I tried Get OEMTrigger (4) with no luck.

Darek
Logged
HillBilly
Active Member

Offline Offline

Posts: 181


View Profile
« Reply #1 on: January 08, 2007, 02:55:31 PM »

This is what I am trying to do,
Darek

If GetOEMTrigger (6) = 0 Then
   If GetOEMTrigger (7) = 0 Then
      DoOEMButton (191)   'Select Jog Incr 1
EndIf
'
If GetOEMTrigger (6) Then
   If GetOEMTrigger (7) = 0 Then
      DoOEMButton (192)   'Select Jog Incr 2
EndIf
'
If GetOEMTrigger (6) = 0 Then
   If GetOEMTrigger (7) Then
      DoOEMButton (193)   'Select Jog Incr 3
EndIf
'
If GetOEMTrigger (6) Then
   If GetOEMTrigger (7) Then
      DoOEMButton (194)   'Select Jog Incr 4
EndIf


* ModIO01.jpg (29.34 KB, 620x639 - viewed 305 times.)
Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,665


West Yorkshire, England



View Profile WWW
« Reply #2 on: January 08, 2007, 04:50:14 PM »

I think the triggers start at number 29

So you maybe have to look at 35 and 36 to get the ones you want.

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
HillBilly
Active Member

Offline Offline

Posts: 181


View Profile
« Reply #3 on: January 09, 2007, 06:52:16 AM »

Your right! This is what I ended up with.

Darek

If Not IsActive (34) Then If Not IsActive (35) Then               'Check OEM Triggers 6 & 7
      DoOEMButton (191)                                      'Select Jog Incr 1
End If
'
If IsActive (34) Then If Not IsActive (35) Then                     'Check OEM Triggers 6 & 7
      DoOEMButton (192)                                      'Select Jog Incr 2
End If
'
If Not IsActive (34) Then If IsActive (35) Then                     'Check OEM Triggers 6 & 7 
      DoOEMButton (193)                                      'Select Jog Incr 3
End If
'
If IsActive (34) Then If IsActive (35) Then                           'Check OEM Triggers 6 & 7 
      DoOEMButton (194)                                      'Select Jog Incr 4
End If
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!