Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 01:39:52 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Third party software and hardware support forums.
| |-+  PoKeys (Moderator: NeoTO)
| | |-+  Triggering Pokey Output Signal from Mcode
Pages: 1   Go Down
Print
Author Topic: Triggering Pokey Output Signal from Mcode  (Read 649 times)
0 Members and 1 Guest are viewing this topic.
ceramics
Active Member

Offline Offline

Posts: 15


View Profile
« on: January 06, 2011, 04:44:08 PM »

I am new to using Pokey and I am trying to send output signals from Pokey55 to PsExtBusRE (eight relay board from cnc4PC) and three other PoExtBusOC also hooked up to the Pokey55.
This gives me a total of 36 outputs that I would like to be able to call from the Gcode  by using user defined Mcodes.

I have installed the latest Pokey software and firmware and I am able to turn relays on and off from Mach3 Pokey tab...

now comes the next step which is creating a bit of VB script to trigger the outputs from an Mcode that will be inserted manually in the Gcode.

I have watched the video tutorials and searched around on the forum, but I am having a hard time finding examples of this.  Here are a few screen shots of what I am working with... and my very novice approach to a VB script that isn't working at the moment.

Any help or direction as to where to read up on this type of thing is greatly appreciated.



* Pokey questions Mach3.jpg (228.32 KB, 1747x872 - viewed 125 times.)

* Pokey55 setup ab.jpg (229.81 KB, 1466x769 - viewed 98 times.)

* Pokey55 VB testing.jpg (55.15 KB, 700x655 - viewed 79 times.)
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: January 06, 2011, 09:07:36 PM »

pic a range,
i.e. ULED2001 is Pin1,

in the macro

'm####.m1s

If GetUserLED(2001) then
what ever you want to do code here
end if

scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
ceramics
Active Member

Offline Offline

Posts: 15


View Profile
« Reply #2 on: January 07, 2011, 12:53:16 AM »

I think I should explain more about what I would like to do... as I think my original question was misleading.
The Pokey is really just being used for simple High or Low outputs  that will then be used to trigger logic that is programmed into an Arduino board...  Does that mean the Pokey is a "slave"?  Either way, I know it may seem weird to go about something with Mach like this, but for the specifics of my project it makes sense... trust me:)  It has to do with the Arduino's capability to interact directly with a piece of 3D software that I am using.

So all I need to do is get an Mcode that can cause the Pokey to switch a output to High, then another Mcode to turn the output to Low.

these signals will be "read" by the arduino that will trigger other things (ie., relays, mosfet)


Scott, does the above information change your suggestion at all?  or do I still need to pick a range? or have I managed to confuse everyone by rambling?

Any advice is welcome... this forum is awesome.
Logged
ceramics
Active Member

Offline Offline

Posts: 15


View Profile
« Reply #3 on: January 07, 2011, 12:54:26 AM »

Scott,
I forgot to thank you while I was typing my response Smiley
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!