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 24, 2012, 12:47:45 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
VB and the development of wizards
Please help, NOOB trying to use PLC and Script for M6
Pages:
1
Go Down
« previous
next »
Author
Topic: Please help, NOOB trying to use PLC and Script for M6 (Read 883 times)
0 Members and 2 Guests are viewing this topic.
METALTEK
Active Member
Offline
Posts: 10
Please help, NOOB trying to use PLC and Script for M6
«
on:
May 18, 2009, 09:30:10 PM »
Is it possible to run a script and have it set outputs that run subroutines in the PLC. Because I set up subroutines for the tool removal and replacement and linked them to discrete input buttons to test and the subroutines work great. But when Mach is on then the plc wired buttons begin to work then STOP. I am wondering if I need to set it different. I would appreciate any help, I am sure I will return the favor in the future.
Thank you
Jaime
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Please help, NOOB trying to use PLC and Script for M6
«
Reply #1 on:
May 19, 2009, 07:47:46 AM »
Jamie,
Your problem that your experiencing is unclear, can you elaborate more.......? Having said that, I run PLCs from my M6, and other things.
You will need to syncronize your scripts with the PLC in a "Hand Shake" style arrangement.
let me give an example:
In your M6 you turn on a ULED, the next line you set a UDRO to a tool number, the next block is a while loop waiting on the ULED.
the brain transfers the info to your PLC, the PLC sees the ULED is on, and jumps to your substage. The substage pulls the UDRO and does
the tool change function you wrote. At the end of that change, the PLC, turns off the ULED, the brian sees it and turns off the ULED, the while loop drops
out. your next code updates the tool dro to the new tool.
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/
METALTEK
Active Member
Offline
Posts: 10
Re: Please help, NOOB trying to use PLC and Script for M6
«
Reply #2 on:
May 20, 2009, 06:37:22 PM »
Thank you Scott for replying. I have gotten my plc to write the tool location into a register and Mach to read it now. But I am having trouble getting mach to send the newtool number to another register, or any register for that matter. As I attempt to do this on my own( with help from you) I have very much respect for you and what it takes to figure this out. I have a migraine on a daily basis. My problem before was I had mach reading and writing the discrete i/o's not holding registers. So mach was taking control of all of the inputs and outputs.
Any help further would be great,
Thank you
Jaime
Logged
METALTEK
Active Member
Offline
Posts: 10
Re: Please help, NOOB trying to use PLC and Script for M6
«
Reply #3 on:
May 20, 2009, 08:27:32 PM »
I did get it transmitting my new tool number now, Thanks again for the help
Jaime.
I will post more info as I go, I have a tread on the zone with videos if anyone is intersted
BTC-1 machine build
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Please help, NOOB trying to use PLC and Script for M6
«
Reply #4 on:
May 21, 2009, 08:58:01 AM »
NOTE: If you decide to use Holding registers in the PLC (User varible memory), AND you want to use Discrite bits to and from mach, then make that a "Bit of Word" to represent each bit.
i.e. B1200.0, and B1201.0 in an ADC plc would represent 2 discrete bits that you can access in your ladder. Unfortunatly, you have to use an entire word, since the Bit of word function in Brians is currently broken.
see the "Brians Users Guide" in the members doc section of this forum, it may clear up some things for you.
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/
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...