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 28, 2012, 01:56:50 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 Timing and "Latches"
Pages:
1
Go Down
« previous
next »
Author
Topic: Brain Timing and "Latches" (Read 1882 times)
0 Members and 2 Guests are viewing this topic.
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,348
Brain Timing and "Latches"
«
on:
August 18, 2008, 10:32:06 PM »
I'm assuming brains are run periodically, like every pass through the main loop of Mach3? I've become quite expert at writing brains that end up in endless loops, madly toggling things, or, in too many cases, hanging Mach completely, so I have to re-boot the machine. Are brains evaluted/executed at a fixed time interval? Is this why the "Timer" lobes are provided, to prevent race conditions? If so, what is an appropriate delay to prevent races?
Also, what does the "Latch" lobe function do? I've found no explanation anywhere.
One last question - Are functions limited to arithmetic expressions, or can we use logical expressions as well? For example, if I want to have a lobe output one of two numeric values, based on the value of a boolean input, how would I do that?
Regards,
Ray L.
Logged
Regards,
Ray L.
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Brain Timing and "Latches"
«
Reply #1 on:
August 30, 2008, 04:20:58 PM »
Brains runs with machs update loop.
you can do values, via formulas feed by booleen results into the formula.
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/
dmoore
Active Member
Offline
Posts: 26
Re: Brain Timing and "Latches"
«
Reply #2 on:
March 02, 2009, 12:00:07 AM »
Quote from: HimyKabibble on August 18, 2008, 10:32:06 PM
Also, what does the "Latch" lobe function do? I've found no explanation anywhere.
One last question - Are functions limited to arithmetic expressions, or can we use logical expressions as well? For example, if I want to have a lobe output one of two numeric values, based on the value of a boolean input, how would I do that?
I too also have the same question about what the latch function does.... Anyone?
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Brain Timing and "Latches"
«
Reply #3 on:
March 03, 2009, 08:38:05 AM »
If memory serves......
the "Lathed" function is so that when your conditions are met from 2 or more inputs, that once they become True, then the box will "Latch" itself into an ON state even when the Inputs become false, per run of Mach.
If is for if you have a certain pattern of inputs/conditions that when they occur (even Once), that the result will Stay on.....
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/
CJEls
Active Member
Offline
Posts: 69
Re: Brain Timing and "Latches"
«
Reply #4 on:
March 17, 2009, 03:13:24 AM »
Hallo Scott
Do you have a example of a latching circuit. How do you reset the latch.
Thank you
CJ
«
Last Edit: March 17, 2009, 03:27:38 AM by CJEls
»
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...