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 26, 2012, 09:03:02 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
General Mach Discussion
How calculate incremental values in each Gcode Line?
Pages:
1
Go Down
« previous
next »
Author
Topic: How calculate incremental values in each Gcode Line? (Read 374 times)
0 Members and 1 Guest are viewing this topic.
renenpaz
Active Member
Offline
Posts: 72
How calculate incremental values in each Gcode Line?
«
on:
June 27, 2010, 12:46:57 PM »
Hi,
I need calculate incremental values in each axis for a Gcode line, relative to previous line. It's possible this?
I know how doit out of Mach, but I need to do it inside Mach for calculate longitude of each movement
Out of Mach will be in this way.
Sqr (pot(Xfinal-X initial)+ pot(Yfinal-Y inicial))
Final= Actual line
Initial= Previous line
If this is possible, then I can calculate distance to travel in each line and calculalate spindle speed for
controlling sincronism of a needle bar (spindle) for each g code line or for about 20 lines
due inertia problems.
In this way I can rotate spindle in calculte speed, and in coordinate movement moves hoop and fabric when needle is
out of fabric.
Thanks for your answer.
Regards
Rene
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: How calculate incremental values in each Gcode Line?
«
Reply #1 on:
June 27, 2010, 02:09:59 PM »
Rene I don't know of any way to extract what you need from a running gcode. You may want to play with distance to go but it does not look as thought it will help you. Remember mach moves are stacked into a buffer to run after the stack is created there can be no interaction with them as you are needing.
It can probably be done with a plugin at the core level but not from the user interface "that I know of" You need to ask BRIAN.
Logged
renenpaz
Active Member
Offline
Posts: 72
Re: How calculate incremental values in each Gcode Line?
«
Reply #2 on:
June 27, 2010, 09:36:30 PM »
Hi,BR549
I was reading a lot in all Mach publications that are in may hands, didn't find any reference of this.
Embrodery CAM software yes it does, because are an option to select a Max Stitch Length,then software place a JUMP Stitch(spindle stop,solenoid activation,ecc)in all stitches longer that Max sticht declared, that is the answer that we need of Mach.Then of course this software will calculate lenght of all movements (stitches)
I will ask Khalid, may be inside his software are option to do this calculus.
I need to know length to all movements, (stitch length), having these values is possible reduce spindle speed for all longer movements (stitches).
Making trial and error tests, I can determine a speed for sincronizity a max stitch lenght using max pulse frecuency of Mach. If I can sYncronize stitches of 3mm lenght in 480 RPM motor=8stitches/second (8 gcode lines/second),then I need reduce RPM'S motor for longer stitches of 4mm for keep sincronyc work.
For stitches longer that 7mm,I need Jump stitches,these are setted in Khalid embroidery software.
Sorry, but finally I think that this part of job should be in Khalid software. I need write him.
Thanks
Rene
Logged
Ya-Nvr-No
Active Member
Offline
Posts: 268
Scuptris 3D
Re: How calculate incremental values in each Gcode Line?
«
Reply #3 on:
June 28, 2010, 07:19:43 AM »
Seems like a Function/Sub call in a macro pump would handle it easy enough.
Not ever doing it as of yet, just not sure how to pass a value from the Gcode to a VB variable.
I assume that all Axis values are variables being read in.
You just need to pass them into a VB script and do your calculations.
Then display them in a OEMDRO(#) that you create on your Screen.Set
I did mine in a Plugin but it wont work for your app, sorry.
Just a thought: The lookahead value might be an issue.
That one bites me more often then most. Most of the time I leave it at 2.
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...