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 25, 2012, 06:47:25 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
Mach Discussion
Mach SDK plugin questions and answers.
How to get notified to Zero Encoder
Pages:
1
Go Down
« previous
next »
Author
Topic: How to get notified to Zero Encoder (Read 1087 times)
0 Members and 2 Guests are viewing this topic.
TomKerekes
Active Member
Offline
Posts: 11
How to get notified to Zero Encoder
«
on:
August 20, 2009, 01:26:03 AM »
We're adding Encoder DRO support in our Plugin and I'm trying to respond when the user pushes the Zero X button next to the Encoder DRO.
I set breakpoints everywhere and can't find anything in the plugin that gets called when this button is pushed.
Anyone know how to handle this?
Thanks
TK
DynoMotion, Inc.
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: How to get notified to Zero Encoder
«
Reply #1 on:
August 20, 2009, 11:02:32 AM »
Hey Tom,
Do I understand you correctly, that your brining in a "feedback" encoder (one for each axis), and when the user pushes the Zero X Encoder (NOT the Zero X axis position, correct?).
also you would need to have passive encoders, (not active ones where your boad keeps the count and is always feeding it to mach, if you have that kind, you would need to send some kind of Zero command to your encoder register of your board.) If you just bringing in a staight encoder to a Breakout board. Then try this:
In your screen Set in each button (I am going to just use the X axis only) the zero x encoder button change its function
in screen designer to "VB script" and put this in the VB window for that button:
NotifyPlugins(10000) (10001 = y, 10002 = z etc.)
In your plugin in the:
void myNotify ( int ID)
{
if (ID == 10000)
{
SynchUpEncoderX = 1;
}
}
Then in your MyUpdate() loop
if (SynchUpEncoderX)
{
Engine->Axis[0].Index = 0;
Engine->Encoders[0].Count[0] = 0;
Engine->Sync = true;
SynchUpEncoderX = 0;
}
//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/
TomKerekes
Active Member
Offline
Posts: 11
Re: How to get notified to Zero Encoder
«
Reply #2 on:
August 20, 2009, 12:40:53 PM »
Thanks Scott,
Yes you understood correctly we have hardware encoder counters on our board that we are using to track position.
BTW we have a new mode that runs Steppers under Mach3 in Closed Loop that works pretty well.
http://dynomotion.com/Help/ClosedLoopStep/ClosedLoopStepper.htm
I thought there would be a way to do it without requiring Users (and me) to edit their screens. Maybe watch for Mach to clear the count variable?
But if that is the only way then so be it.
So while I'm bugging you, could you tell me how to edit the VB script of a button that doesn't blink in "Edit Button Script" mode?
Thanks!
TK
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: How to get notified to Zero Encoder
«
Reply #3 on:
August 20, 2009, 01:46:09 PM »
hehehehehhe,
it would be best for you to call me on that one, not easy to explain.........
eight six five - four two six - nine seven two eight
I highly, highly, highly recommend the "Mach screen Designer" the one done by Klaus under mach screens thread.
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/
spl888
Active Member
Offline
Posts: 10
Re: How to get notified to Zero Encoder
«
Reply #4 on:
December 11, 2009, 12:43:55 PM »
If I do not have additional pin to integrate the tool sensor in Mach3. Can I use the same pin (said pin 15) for the emergency stop to integrate the tool sensor. The tool sensor is a contact sensor. The two wire become short when it contact the tool. This is equivalent to push the stop button. If I use this pin to connect the tool sensor, what is the best G code to locate the tool position in the program.
Thanks
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...