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 23, 2012, 08:30:20 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
screen4 to brain button on/off vacuum table
Pages:
1
Go Down
« previous
next »
Author
Topic: screen4 to brain button on/off vacuum table (Read 1633 times)
0 Members and 2 Guests are viewing this topic.
david_webb
Active Member
Offline
Posts: 2
screen4 to brain button on/off vacuum table
«
on:
February 04, 2009, 04:54:20 AM »
Hi All,
I am sorry to write to you but I have watched all the videos and look at most of the posts.
I have made A button in screen4 and put an LED behind it to turn my vacuum table on and off.
I under stand modbus and how to write brains (I think quite well as I am controlling my VSD and displaying torque, amps and real speed on the mach screen)
but I can't find how to link the new button and LED to the brain (ie oem number etc)
I want the button on the screen to momentary switch the brain and pass on to the PLC, and the PLC to send back status and light the LED.
Maybe this should be in the screen4 forum?? but we will give it A try.
Kind regards,
David.
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: screen4 to brain button on/off vacuum table
«
Reply #1 on:
February 04, 2009, 10:19:25 AM »
Lets say your LED is called OEM # 2000 (your status LED), in screen 4 the one that you can see around the button, what you need is a two state process.
in your button put this code for instance:
If Not(GetUserLED(2001)) then 'this is the control LED
SetUserLED(2001,1) 'Note your Brain will turn this back off
end if
Next in your brain be watching LED2001 and send it to your PLC, have your Plc
data come in and have it same address comming in,
the first rung turns on LED 2000
the second rung turns OFF led 2001.
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/
david_webb
Active Member
Offline
Posts: 2
Re: screen4 to brain button on/off vacuum table
«
Reply #2 on:
February 06, 2009, 03:39:04 AM »
Hi Poppabear,
Thanks for the help.
I did not end up using the script you sent me but it did send me down the right road of VB.
I found hot topic 4208.
I did not know that I had to edit the button from within Mach3 itself.
and ended up writing this:
If (GetUserLed( 2010 )) Then
SetUserLed( 2010,0 )
Else
SetUserLed( 2010,1 )
End If
End
I then look at LED2010 with A brain.
Every thing looks like it is going to work well so thanks again and I hope to help
someone ealse some time.
Regards
David.
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...