Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 09:15:34 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  Strange brain issue
Pages: 1   Go Down
Print
Author Topic: Strange brain issue  (Read 456 times)
0 Members and 2 Guests are viewing this topic.
rrc1962
Active Member

Offline Offline

Posts: 434


View Profile
« on: December 22, 2010, 10:55:55 AM »

I have a brain that writes and reads some data to the modbus.  One of the rungs reads a bit and sets an LED (#1050).  It reads other bits and also sets LED's 1051, 1052 and 1053.  The latter 3 work fine, but the first one does not work when Mach starts.  This is a torch on LED.  After I start Mach3, if I hit the torch on button, the PLC relay clicks on and the status bit mapped to LED 1050 in the brain goes high...but the brain does not switch the LED.  If I turn the torch off then back on, it starts working.  All of the other LEDs, which are handled the same way, work fine.

What happens is when I click the ON button, a script runs that says SetModOutput(2,1).  This sets the output bit in the PLC, the torch relay turns on and status bit V1500.3 is set.  This is mapped as a modbus input in Mach and is mapped to LED 1050.  When V1500.3 goes high, LED 1050 comes on...Except when Mach first opens.

I know the status bit is going high because I can map it to input 4 and the input 4 LED works properly.  Any thoughts on why I have to cycle this particular output in order to get the brain to act on it?
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: December 22, 2010, 06:17:12 PM »

I would pick MUCH higher range of ULEDs, most in that range, have Wizards and all kinds of stuff reading/writing to them...
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 Offline

Posts: 434


View Profile
« Reply #2 on: December 22, 2010, 06:48:55 PM »

What's the top of the range for user LED's?
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!