Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
German Forum
Italian Forum
Portugese Forum
Resources
Links
User Reviews
User Videos
Contact Us
CNCZone
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
November 23, 2008, 10:28:18 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
Brains Development
Modbus Simple spindle control brain........
Pages:
1
Go Down
« previous
next »
Author
Topic: Modbus Simple spindle control brain........ (Read 620 times)
0 Members and 1 Guest are viewing this topic.
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 766
Briceville, TN, USA
Modbus Simple spindle control brain........
«
on:
February 13, 2008, 09:48:45 AM »
Greetings here is a Brain to do Modbus Spindle control (Out), using Brians and Macropump (this is going to a PLC with a 12 bit Analog module, but you could write it to a M1 board, or Peters board).
When doing Spindle control over a modbus (I used TCP in this example), the M3 and M4 CAN happen at the same time. The DRO99 (Spindle percent), is always accurate for Mach regardless of Spindle over rides. It will max out at 1%, at the top of your pulley range, it doesnt matter how much your spindle over ride is.
You need to keep your m3 and m4 controls in Output range 1-6 for mach to use its native LEDs for CW, CCW.
Further When doing control over the Modbus, at the initilize of Mach you can get some wierd "Space junk" in spindle control OVR. I have also put some code you need to drop into your Macropump to set these to correct values on moving out of Reset. (It resets them, each time you move out of reset).
'Macropump.m1s
k=GetUserDRO(2000) 'Interlock counter
If k=0 and Not(GetOEMLED(800)) Then 'reset off (mach in run condition)
DoOEMButton(183) 'Reset Spindle override
SetOEMDRO(99,0) 'set % to zero
SetUserDRO(2000,1) 'set interlock counter
End If
If GetOEMLED(800) Then 'On reset (mach in Estop condition)
SetUserDRO(2000,0) 'reset interlock counter
End If
'Scott (Brain Attached)
ModSpinOutControl.brn
(3.24 KB - downloaded 82 times.)
Logged
All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
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.
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*e*i*n*g
=> Mach Screens
=> Feature Requests
=> Non English Forums
=> FAQs
===> Finished Plugins for Download
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
-----------------------------
*****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
=> Lazy Cam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Promote and discuss your product .
=> Sieg Machines
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
=> One on one phone support.
=> Forum suggestions and report forum problems.
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
Loading...