Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
April 25, 2018, 03:46:43 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
Arduino -> modbus -> Brain
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Arduino -> modbus -> Brain (Read 13237 times)
0 Members and 1 Guest are viewing this topic.
oscbe112
Active Member
Offline
Posts: 9
Arduino -> modbus -> Brain
«
on:
January 28, 2012, 09:32:47 AM »
Hi Guys,
Building a arduino[modbus] based Pendant for my machine but has run in some trouble with brain, plz help
1.
I'm jogging the axis by buttonpress. When using the buttons I want it to jog while I press the buttons, just like the binded keys at my keyboard.
It starts jogging but never stops!
What am I missing?
# It haven't crashed. Everything else works.
# Keyboard jogging works
# "Cont jog" is selected
# According to control brain it all works, the input is turned on only when pressed.
# When trying in "Step mode" it works just fine, it steps the amount selected in "incremental step".
2.
I'm using 2 analog inputs FRO and Jog%. One of the registers has stopped working, when I use another one it works but this is strange. The Arduino handles this registers the same way. Is there a limit of registers you can use (I'm using 22)? Is there some known bug causing this?
3.
How do you configure brain to actuate a button on the screen that isnt in the buttonlist?
CNC_Pendant_1.JPG
(49.56 KB, 1338x591 - viewed 1156 times.)
Pendant_test02.brn
(9.96 KB - downloaded 507 times.)
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 2,240
Briceville, TN, USA
Re: Arduino -> modbus -> Brain
«
Reply #1 on:
January 28, 2012, 11:00:54 AM »
Hi Guys,
Building a arduino[modbus] based Pendant for my machine but has run in some trouble with brain, plz help
see below:
1. I'm jogging the axis by button press. When using the buttons I want it to jog while I press the buttons, just like the binded keys at my keyboard. It starts jogging but never stops! What am I missing?
>>>>>>>>>>>>>>>>>>in Brains there are "Stop Jog" commands as well, you will need to integrate that so it will stop moving when you let go.
# It haven't crashed. Everything else works.
# Keyboard jogging works
# "Cont jog" is selected
# According to control brain it all works, the input is turned on only when pressed.
# When trying in "Step mode" it works just fine, it steps the amount selected in "incremental step".
2. I'm using 2 analog inputs FRO and Jog%. One of the registers has stopped working, when I use another one it works but this is strange. The Arduino handles this registers the same way. Is there a limit of registers you can use (I'm using 22)? Is there some known bug causing this?
>>>>>>Havent played with the ardino so couldnt tell you
3. How do you configure brain to actuate a button on the screen that isnt in the buttonlist?
>>>>>>>>No direct way to do that, the best work around, is to set an ULED with the Brian, then have the Macro-pump also execute the code that is in that custom button.
>>>>>>>>make sure you put an Interlock in the MP so that it will only "Hit" that code once per push and release of your button.
Scott
Logged
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/
oscbe112
Active Member
Offline
Posts: 9
Re: Arduino -> modbus -> Brain
«
Reply #2 on:
January 28, 2012, 12:50:43 PM »
1. Ok I got it. But having problem with the AND statement. It only works for one of the two inputs. See attached pictures
2. I suspect that the bug is caused on the other end.
3. Hmm..., no shortcut here
Thanks Poppabear
OK_AND dual_input .png
(71.01 KB, 1008x667 - viewed 3939 times.)
FAIL_AND input .png
(50.55 KB, 1007x580 - viewed 3619 times.)
Logged
oscbe112
Active Member
Offline
Posts: 9
Re: Arduino -> modbus -> Brain
«
Reply #3 on:
February 19, 2012, 04:54:22 AM »
Anyone that can help me with the
AND
statements?
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 2,240
Briceville, TN, USA
Re: Arduino -> modbus -> Brain
«
Reply #4 on:
February 19, 2012, 09:01:00 AM »
ok, that is an easy one.......... hehehee
the issue is according to your screen shots, for your and to work, BOTH of your inputs have to be OFF at the same time, so that the inverts flip it and pass both of them as ON to your AND block. In both screen shots, one of them is ON, and the other is OFF.......
For the AND to function, with the invert on both its feeds being ON, you will need BOTH of your inputs to be OFF at the same time. The Brian only reads what is in the input, so your Arduino is the one "setting" those two inputs. So you need to look at your Arduino code, and when you want the JOGX in M3 to push the off button, then the Ard, needs to send two "0's" one in each MB register.
Scott
Logged
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/
stirling
Global Moderator
Offline
Posts: 2,188
UK
Re: Arduino -> modbus -> Brain
«
Reply #5 on:
February 19, 2012, 09:41:29 AM »
Hi Scott - I think what our man is saying is that in the bottom pic he's getting a "true" out of the AND gate and he SHOULDN'T be.
Ian
Logged
Razordance Torch Height Control
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 2,240
Briceville, TN, USA
Re: Arduino -> modbus -> Brain
«
Reply #6 on:
February 20, 2012, 08:36:19 AM »
Hi Ian,
Yeap, your right, sorry I missed that.........
Ok, do these 5 (possible) things to see if it resolves.
1). Go into editor, and delete your complete last rung, and redo it, see if it works then... If NOT #2.
2). Go into editor delete that last rung, then make a new brain call it part2 or what ever, and put JUST that problem rung in it... if not #3
3). If that fails, Edit the part2 brain, in where you keep your inputs, but pass that data (as a no-op) to 2 unused UDROs.
Then in the macro pump, write a interlock script that looks at those two dros, and does a button push depending on their and'ed value.
you can use "NOT" key words to in effect "invert" their value if your using them as Boolean's..... if not #4
4). Delete the entire brain, and rebuild a new one from scratch.......... if not #5
5). Scrap the Brian stuff, and just do it all in a macro pump, or periodic macro.
scott
Logged
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/
stirling
Global Moderator
Offline
Posts: 2,188
UK
Re: Arduino -> modbus -> Brain
«
Reply #7 on:
February 20, 2012, 01:50:04 PM »
Quote from: poppabear on February 20, 2012, 08:36:19 AM
5). Scrap the Brian stuff, and just do it all in a macro pump, or periodic macro.
Ian
Logged
Razordance Torch Height Control
oscbe112
Active Member
Offline
Posts: 9
Re: Arduino -> modbus -> Brain
«
Reply #8 on:
February 26, 2012, 02:23:36 PM »
1. Fail !
2. Works
Its weird because I've already tried this, but well now it works!
Thanks for the help
Logged
zafarsalam
Active Member
Offline
Posts: 322
Re: Arduino -> modbus -> Brain
«
Reply #9 on:
February 27, 2012, 09:07:13 PM »
I've also noticed that only the first 10 AND based rungs work in a brain. All the AND's after the 10th one don't get triggered in any case. I break the brain into 2 parts for them to work. Is it a bug with brains?
Zafar
Logged
Pages:
1
2
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach4 General Discussion
===> Mach4 Toolbox
===> Mach4 Videos
===> Mach4 Plugins
=> Mach3 under Vista
=> 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
=> CS-Lab
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Mach3 Wizards
=> Newfangled Mill Wizard
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Vistacnc Control Pendants
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Members Docs
=> 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.
Loading...