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 27, 2012, 09:05:00 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
Set modbus output in brain
Pages:
1
Go Down
« previous
next »
Author
Topic: Set modbus output in brain (Read 1267 times)
0 Members and 2 Guests are viewing this topic.
rrc1962
Active Member
Offline
Posts: 434
Set modbus output in brain
«
on:
December 21, 2010, 10:37:06 AM »
I've been reading and writing to the modbus in brains with not problem, but now I want to set a modbus output if the e-stop is enabled. For instance, if e-stop is enabled, I want to do SetModbusOutput(0, 0). How would I do that in a brain? I tried... ESTOP->NOP->MOD:0 and also ESTOP->INVERT->MOD:0. Those didn't work.
Thanks
Logged
rrc1962
Active Member
Offline
Posts: 434
Re: Set modbus output in brain
«
Reply #1 on:
December 22, 2010, 03:41:03 PM »
Anyone? This driving me nuts trying to do the equivalent of SetModOutput(8, 0) in a brain when the estop is triggered. This should be simple.
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Set modbus output in brain
«
Reply #2 on:
December 22, 2010, 06:10:11 PM »
to answer:
You need to set your modbus in brains correctly: Please READ the "Brains User's Guide" under member docs....
this ASSUMES (per the way you asked your questions, that you are using the OLD style serial modbus).
so under ports/pins, make sure you have the Enable Modbus support checked, (but NOT the enable plugin serial modbus if your wanting to use the old style serial mb). Make sure you set up your, modbus config parameters correclty and test them with the modbus test dialog.
in Brians, ASSUMING again, that in the old style modbus, your using the first "row" of outputs, *which are discrete* not word.
your rung would look like this: the important pick is how you pick your terminator for serial modbus.
when you set your terminator: you want to pick "output" check box, local address "0" (assuming your estop is the FIRST in the register bit map). tick the User NON-plugin serial modbus radio button, and tick "0" for the config.
here on my comp, when I push the Estop button, then the Non-serial MB term goes to 1 also.
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/
rrc1962
Active Member
Offline
Posts: 434
Re: Set modbus output in brain
«
Reply #3 on:
December 22, 2010, 06:47:05 PM »
What are you selecting as in input for the rung? When I select the estop input from the list, brain viewer shows the input active but it's state does not change when estop is triggered. Everything else is working great. I have lots of inputs and outputs. Just can't get this estop rung to respond.
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Set modbus output in brain
«
Reply #4 on:
December 22, 2010, 06:54:56 PM »
you need to select the ESTOP LED, NOT the ESTOP input/button
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/
rrc1962
Active Member
Offline
Posts: 434
Re: Set modbus output in brain
«
Reply #5 on:
December 23, 2010, 12:49:20 PM »
I was using the wrong estop. I was using 19 and I should have been using 800. One more question though. How can I get it to only write a 1 to the modbus when the estop activates and not a 0 when it deactivates. This brain is to disable PLC outputs when an estop is triggered. What's happening is when the estop is triggered, the outputs deactivate because a 0 is sent, but then when the estop is reset, the outputs reactivate because a 1 is sent. I need to only send the 0 and not the 1.
Thanks.
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Set modbus output in brain
«
Reply #6 on:
December 23, 2010, 06:46:40 PM »
put an INVERT OP after your estop LED
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/
rrc1962
Active Member
Offline
Posts: 434
Re: Set modbus output in brain
«
Reply #7 on:
December 23, 2010, 07:56:41 PM »
That just inverts the output. It doesn't prevent the 1 from being written. When inverted, it sens a 1 when estop is deactivated and a 0 when it is activated. There is a way. You have to have more than one rung and do a comparison and only output if the value is 0. I'll figure it out eventually. For now, a macropump is doing the job.
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...