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 23, 2012, 08:16:49 PM
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
Brain for tool turret
Pages:
1
Go Down
« previous
next »
Author
Topic: Brain for tool turret (Read 1877 times)
0 Members and 1 Guest are viewing this topic.
N4NV
Active Member
Offline
Posts: 336
Brain for tool turret
«
on:
February 01, 2009, 09:41:14 PM »
I have a brain that sends the currentTool to my PLC via modbus. Now I need to change it so that one condition true before it will send the current tool to the PLC. Jason gave me a macro that helps with the too turret change. In the macro he sets user DRO 2000 to 1 if the carriage is in position for a tool change. I need this DRO2000 to be 1 before the brain sends the current tool to the PLC. In the first line I just pass the current tool. In the second line I compare DRO 2000 to 1 (which would be true if the carriage was in the proper position). Then I do an AND function then terminate with an output to my PLC via modbus. This does not work. Any suggestions?
Vince
turret.JPG
(22.12 KB, 1198x739 - viewed 287 times.)
Logged
Chaoticone
South Carolina, US
Administrator
Offline
Posts: 3,598
Precision Chaos
Re: Brain for tool turret
«
Reply #1 on:
February 01, 2009, 10:39:40 PM »
In your Brain your looking at OEM LED instead of OEM DRO.
Brett
Logged
If you could see the things I have in my head, you would be laughing too.
www.precisionchaos1.com
My guard dog is not what you need to worry about!
N4NV
Active Member
Offline
Posts: 336
Re: Brain for tool turret
«
Reply #2 on:
February 02, 2009, 01:48:54 PM »
I made a mistake in my post, I am looking for LED 2000 to be 1. I believe my brain is correct for that. I am loosing somewhere in the and statement.
Vince
Logged
N4NV
Active Member
Offline
Posts: 336
Re: Brain for tool turret
«
Reply #3 on:
February 02, 2009, 02:50:46 PM »
In my brain I can see that the DRO LED 200 is being set to one by my macro. I just can't figure out how to make the CruuentTool value pass through conditional on the DRO LED 2000 being 1.
Vince
Logged
N4NV
Active Member
Offline
Posts: 336
Re: Brain for tool turret
«
Reply #4 on:
February 03, 2009, 06:13:22 PM »
Jason helped me with a solution. It turned out that it could not be done with a brain directly and took some VB code in a macro to make it work. The final bran just turned out to be on line with a pass through to the modbus.
Vince
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Brain for tool turret
«
Reply #5 on:
February 03, 2009, 07:49:50 PM »
N4NV
If your sending to a PLC then you need to seperate rungs of ladder, the first rung sends your Tool number to the PLC to a register
the second sends the LED that tells the PLC iit is OK to move.
Rung 1: Current Tool->No Op->Modbus register that drops that value into your holding register in the PLC.
Rung 2: LED2000 -> No Op->Send to a Bit of word register OR a Control Register
tie the Control bit of your PLC with the Rotate output from your PLC and have your Register that has holds your Tool number to do a Compare to what ever your using as the "In position" sensor.
TurretPLCbrain.brn
(2.11 KB - downloaded 193 times.)
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/
N4NV
Active Member
Offline
Posts: 336
Re: Brain for tool turret
«
Reply #6 on:
February 03, 2009, 09:51:28 PM »
Thanks Scott, that could have worked as well. I would have had to change the code in my PLC to look for that second bit. Jason's VB script turned out to be a little more elegant. Since I had to have the VB script for the tool change anyway, it all worked out in the end. I really appreciate all the help I have received with this project. There was a the possibility that the tool turret could rotate before getting to the tool change position and also a problem if it did not seat properly. All the items have now been resolved and the tool change is working as good as it did when new, 30 years ago.
Vince
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...