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, 07:17:38 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
SetDro(0 ,GetDro(0)/2) in BrainControl
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: SetDro(0 ,GetDro(0)/2) in BrainControl (Read 1380 times)
0 Members and 2 Guests are viewing this topic.
sams_n
Active Member
Offline
Posts: 10
SetDro(0 ,GetDro(0)/2) in BrainControl
«
on:
January 27, 2008, 12:28:54 PM »
Hi,
I want to run this simpe Code in BrainControl.
Dim taste as Integer
Taste = GetInput (70)
Select Case Taste
Case = 1
SetDro(0 ,GetDro(0)/2)
Case = 2
SetDro(1 ,GetDro(1)/2)
Case = 3
SetDro(2 ,GetDro(2)/2)
End Select
Have anybody an idea how I can do this in a BrainControl.
I only want to divide a Dro Value when some Input Signal comes in.
Best regards ,
Gerhard
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 766
Briceville, TN, USA
Re: SetDro(0 ,GetDro(0)/2) in BrainControl
«
Reply #1 on:
January 27, 2008, 07:54:48 PM »
Ok here you go:
This Brain is called "Taste Brain" and what it does is take the value of UserDRO(1700), and uses a compare statement, if it meets the criteria it will scale that axis. NOTE: When you first load the Brain your scaling LEDs may blink that is ok, just push the reset scaling or G50.
When the 1700dro is 1, x is scaled by2, etc. for the Y and Z. (you can change 1700 to what ever is good for your needs).
the Brain is mutually exclusive only one axis can be scaled at a time with the UserDRO.
I have enclosed a Screen Shot of the Brain, and a Zip file with the Brain in it (works as of 3.0)
I have put a Test Script that you can step through on the VB scripter to watch its function.
Scott
'Scaling DRO Script
SetUserDRO(1700,1)
SetUserDRO(1700,2)
SetUserDRO(1700,3)
SetUserDRO(1700,0)
TasteBrain.png
(31.34 KB, 1074x293 - viewed 196 times.)
TasteBrain.zip
(0.71 KB - downloaded 41 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.
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 766
Briceville, TN, USA
Re: SetDro(0 ,GetDro(0)/2) in BrainControl
«
Reply #2 on:
January 27, 2008, 07:58:14 PM »
Note: you could add another Rung that when 1700=0 it would reset the scaling to "1.00" for you and that would stop the scaling led lights blinking unless your 1700 was active or you changed it by entering someing the usual ways.
Scott
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.
sams_n
Active Member
Offline
Posts: 10
Re: SetDro(0 ,GetDro(0)/2) in BrainControl
«
Reply #3 on:
January 28, 2008, 01:12:38 AM »
Hi Scott,
thank you for the quick answer.
But I think , what you wrote is not that what i want to do.
What i need is: to change a DRO value when I press a button, but i cant find a function in BrainControl
Best regards Gerhard
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 766
Briceville, TN, USA
Re: SetDro(0 ,GetDro(0)/2) in BrainControl
«
Reply #4 on:
January 28, 2008, 09:43:29 AM »
In your request, you showed an example of an input changing value from 1-3, only a DRO will do that, OEMTriggers are on or off only.
Here is the Brains that will work, it is set up for OEMTRIG1,
each time you push the trigger, it will increment by 1, as
it increments it will scale each axis as it meets the criteria.
At 4, the other Brain (I had to make two since the multilple glitch
happened at that point), has the reset the counter DRO.
The TWO Brains as screenshots are posted, and they are in a Zip
for you to try out.
Here is a VB scripter Testing macro for you to step through and
watch its function on the Brain view.
'Taste2 Brain test macro
ActivateSignal(OEMTRIG1)
DeActivateSignal(OEMTRIG1)
ActivateSignal(OEMTRIG1)
DeActivateSignal(OEMTRIG1)
ActivateSignal(OEMTRIG1)
DeActivateSignal(OEMTRIG1)
ActivateSignal(OEMTRIG1)
DeActivateSignal(OEMTRIG1)
'scott
TasteBrain1.png
(55.37 KB, 1078x399 - viewed 190 times.)
TasteResetBrain1.png
(25.55 KB, 1071x138 - viewed 188 times.)
Taste2Brains1.zip
(1.89 KB - downloaded 34 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.
sams_n
Active Member
Offline
Posts: 10
Re: SetDro(0 ,GetDro(0)/2) in BrainControl
«
Reply #5 on:
January 30, 2008, 11:22:46 AM »
Hi scott,
thanks for your answer.
But I cant use a scale funktion, that is not that what I need.
What I need is :
If A=1 then
B=B/2
end if
I am missing many functions in braincontrol and I hope that there comes more functions in the next time with the next versions of mach3.
An other missing function ist the output of DRO values with modbus.
Presently we need many Brains to do that.
There is the sendstring command to send text but not to send DRO values , its a pity.
Best regards , Gerhard
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 766
Briceville, TN, USA
Re: SetDro(0 ,GetDro(0)/2) in BrainControl
«
Reply #6 on:
January 30, 2008, 11:45:00 AM »
Then I dont understand you original request. You wanted the Axis to divide by 2 then make that the amount the axis moves, and that is what Scaling the Axis by 50% does.........
So perhaps you could go into much more detail to Clairfy what it is, that you do want, since for the life of me, I Cant see what it is.
scott
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.
jimmybondi
Active Member
Offline
Posts: 27
Re: SetDro(0 ,GetDro(0)/2) in BrainControl
«
Reply #7 on:
January 30, 2008, 11:47:02 AM »
Hi Gerhard,
maybe you can use this one:
i used any input (input #1), any DRO (X Pos) and as destination a Modbus-register
you have to apply to your requirements :-)
Not sure if it works well but an attemp
Frank
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 766
Briceville, TN, USA
Re: SetDro(0 ,GetDro(0)/2) in BrainControl
«
Reply #8 on:
January 30, 2008, 03:24:16 PM »
I think the booleen operations are bit only as in will look at 1 or 0 only not a 16 bit register
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.
jimmybondi
Active Member
Offline
Posts: 27
Re: SetDro(0 ,GetDro(0)/2) in BrainControl
«
Reply #9 on:
January 30, 2008, 03:51:01 PM »
2nd try
first inactive button:
and active button:
Frank
«
Last Edit: January 30, 2008, 04:44:55 PM by jimmybondi
»
Logged
Pages:
1
2
»
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...