Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 09:47:59 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Third party software and hardware support forums.
PoKeys
(Moderator:
NeoTO
)
IO Mapping looks off by one ?
Pages:
1
Go Down
« previous
next »
Author
Topic: IO Mapping looks off by one ? (Read 551 times)
0 Members and 2 Guests are viewing this topic.
JHChoppers
Active Member
Offline
Posts: 364
IO Mapping looks off by one ?
«
on:
November 23, 2010, 05:45:35 PM »
OK, getting started on the User Interface for BP421 Project. So I thought I would start with something simple like a couple of buttons. Just simple Digital Inputs.
I had a button connected to Pin 1 on the PoKeys Hardware and configured as Digital Input. The diagnostic screen shows pin moving but it is not reflected on the Mach Diagnostic Screen.
So, I them moved the button to Pin 2 of the PoKeys Hardware, the diagnostic screen shows pin2 as functional (just like with pin 1) but the Mach diagnostic screen is off by one!
Just thought I would ask before I waste more time...
Any Ideas?
JH
po-1.JPG
(115.67 KB, 1000x750 - viewed 79 times.)
po-2.JPG
(126.08 KB, 1000x750 - viewed 57 times.)
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: IO Mapping looks off by one ?
«
Reply #1 on:
November 24, 2010, 11:37:23 AM »
in your plugin config, put your IO led start range at 2001, NOT 2000....... (see readme file in installer zip).
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/
JHChoppers
Active Member
Offline
Posts: 364
Re: IO Mapping looks off by one ?
«
Reply #2 on:
November 24, 2010, 01:28:13 PM »
Thanks ! That was it, I now have 2 buttons working and the MPG !
Next Question:
How do I link an external PoKeys button to Macro Code to Run? I know how to add buttons onto the Mach3 Screen and link these to macros (ie M1000.m1s, M1001.m1s .... ) So, what is the trick to make one of these new external buttons run some Macro Code?
If I need a brain to do this, do you have a small sample brain that I can use to make this link between PoKeys External Buttons (ULED 2000, ULED 2001) and Macro Code (M1000.m1s, M1001.m1s)
Thanks,
JH
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: IO Mapping looks off by one ?
«
Reply #3 on:
November 24, 2010, 08:04:56 PM »
for trigger macro from brains (note limit of only ONE macro)
Set Trigger Macro using “Push User Button” in Brians:
First, you dont put the code in a button, you put it in a macro file. For
example file: m600.m1s
SetMessage( "This is a macro call..")
Then , you have to set that macro to be the default macro call with a call to
SetTriggerMacro( 600 ) at some point in the program, an init string could do
that if the SetTriggerMacro call were in another macro file that is called on
startup. Then the brain will execute m600 whenever that brain termination code is
called.
For MORE than one macro triggered from external buttons..... you have three options:
1). put VB in your Macro pump to watch the leds, and then run the macros, (remember you will need interlocks in the macro pump
so you dont get multiple triggers due to the scan time. (look for the blurb I did for Interlocks in the VB section).
2). Buy a copy of Mach MAD (shameless plug for my plug, only 10 bucks!! "What a Bargin......." hehehee. at any rate you can trigger upto FIFTEEN
user macros, you just choose what ULED triggers it, and put the macro number that it controls, (interlock code is already taken care of in the plugin).
3). Write your own plugin to do it.
of the 3: Macropump is obviously the cheapest solution, all it cost you is your time........
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/
JHChoppers
Active Member
Offline
Posts: 364
Re: IO Mapping looks off by one ?
«
Reply #4 on:
November 24, 2010, 08:21:23 PM »
Thanks Brother ! Happy Turkey Day Too.....
Macro Pump with Interlocks.... I love macros
JH
Logged
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...