Machsupport Forum
Mach Discussion => Brains Development => Topic started by: Kently on July 16, 2009, 04:13:04 PM
-
What is the OEM code to write text to the "Status" area located at the bottom of Mach's Program-Run screen?
-
you cant do it directly with a Brain.
you will need to have your message in something like Macropump, and have it watch an input or other event that is driven via the Brian (or macropump), and when that event happens, have it post your message. (note you will need to do an interlock in Macropump so that it will only send the message once).
scott
-
Thank you for the reply.
I read your user guide for Brains which was very helpful.
I have another question. I'd like to update a local brain variable with an encoder DRO value only when another condition exists. The other condition is the status of an ouput signal. Basically I am trying to do an IF statement. If the output is high, then update the brain variable with the encoder DRO vlaue; otherwise leave the variable at the same value it was before. I don't really see how to logically combine two rows and have the output of that combination some value other than the logical combination of the two inputs. I think I am trying to do more than what a brain is designed to do.
Thanks,
Kent
-
your correct