Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2008, 10:25:12 AM

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

Offline Offline

Posts: 27



View Profile
« on: January 30, 2008, 10:02:55 AM »

Hi,

can anyone explain this to me



Frank

Logged
Jeff_Birt
Active Member

Offline Offline

Posts: 161



View Profile
« Reply #1 on: January 30, 2008, 04:21:34 PM »

Given the title of this thread I was expecting it to be about Brian  Wink, who indeed does have a mysterious brain. (Only putting in 100 hours a week, come on who needs sleep  Grin)

As for the actual question, it just looks like two ModBus registers that are inverted and then anded together to turn on 'Stop File'.
Logged

Jeff
jimmybondi
Active Member

Offline Offline

Posts: 27



View Profile
« Reply #2 on: January 30, 2008, 04:26:52 PM »

of course - but take a closer look:

both inputs are 0 - but one is inactive (upper) and one active (lower)
Logged
Jeff_Birt
Active Member

Offline Offline

Posts: 161



View Profile
« Reply #3 on: January 30, 2008, 04:45:38 PM »

Hmm....indeed, it seems the top inverter should be on (green) as well. What type of data is in these ModBus registers? Judgin by the value showing "0.0000" it is not a boolean type. Could the value in the register be smaller than 0.0000? Or perhaps it is beign read as a -0.0000. Yes it can happen, if the register is supposed to be a signed short and somehow gets the msb set you will have a negitive zero, which when cast to a boolean might be a 1. (I don't know how Brains handle type casting).
Logged

Jeff
jimmybondi
Active Member

Offline Offline

Posts: 27



View Profile
« Reply #4 on: January 30, 2008, 04:51:55 PM »

both inputs are boolean (switches on/off)

in Modbus CFG configured as coil input - but there no change when changing it.
Transfered from modbus device is just an input

and now the mostly mystery:
when acting P8 - nothing happens on the inverter (input value changed)
after releasing: nothing
when actin P9: BINGO - both green (after release)

but i'm testing on this feature - there must be a solution

Frank
Logged
Jeff_Birt
Active Member

Offline Offline

Posts: 161



View Profile
« Reply #5 on: January 30, 2008, 04:57:59 PM »

Try running both ModBus inputs stright through (no operation) to some UserLEDs (or something similar). See if each input value is transferred properly to the output. If so then the problem has to lie in how Brains are ANDing the two inputs. You could also try passing each input through a 'no operation' and then inverting them.
Logged

Jeff
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Online Online

Posts: 766


Briceville, TN, USA



View Profile WWW
« Reply #6 on: January 30, 2008, 06:36:41 PM »

here are a few things to try and check:

1). Bring in your inputs to a holding register not coil
2). Check both your PLC and Serial Modbus config make sure that your address range goes up high and low enough to pick up the bit off of your plc, and also the range in the config is high/low enough to catch it. If you are one address lower than what your trying to pick up then Garbage will be in that register and thus your bit will be undefined. You could be one starting address to high, than your lower Brian input address..........
3). I recreated your Brian here on my system, with the Serial Plug in and a ADC 06 PLC and it was no issues......

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.
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!