benmccormick
Member
Hi Guys,
Not critical,
I was wondering if there was a way to check/affect multiple Data Type Elements at once.
I am finding it hard to put into words, so here is what I am trying to do:
I have many Motor/Valve blocks in my program.
I need to display an "All Auto" Status on the HMI when everything is in Auto.
At the moment I have a large piece of code which looks like:
(AMC represents Auto/Manual Control, Auto=0)
XIO V08001.AMC XIO M08001.AMC OTE Beans.All_Auto_Stat
The problem is, the more devices the larger this piece of code gets. I was wondering if there was any ways of checking all X.AMC bits with a single instruction?
Thanks a lot!
Not critical,
I was wondering if there was a way to check/affect multiple Data Type Elements at once.
I am finding it hard to put into words, so here is what I am trying to do:
I have many Motor/Valve blocks in my program.
I need to display an "All Auto" Status on the HMI when everything is in Auto.
At the moment I have a large piece of code which looks like:
(AMC represents Auto/Manual Control, Auto=0)
XIO V08001.AMC XIO M08001.AMC OTE Beans.All_Auto_Stat
The problem is, the more devices the larger this piece of code gets. I was wondering if there was any ways of checking all X.AMC bits with a single instruction?
Thanks a lot!