JeffB
Lifetime Supporting Member
Hello Everyone,
I've been tasked with building a panelview screen to display "servo faults". The machine I'm working on has 9 servo axis. The ".servofault" word is a DINT, but only uses bits 0-8. I'm thinking about using a BDT instruction to move these nine bits into a nine word INT array and using a FBC instruction to compare this to a nine word INT array whose bits are set to "0".
Now to my question, is there an advantage to using a FBC as opposed to a DDT?
I would like to use the value in the .POS of the result control structure to indirectly address a value to move into a panelview message display. Is this a possiblity? Would using the value in the .POS compare structure be better suited to this?
One more thing, I'd like to inhibit the FBC once a fault has been detected, and resume comparing once the fault has been cleared, would using the status of the .FD bit of the compare or result structure be appropriate?
BTW, I faulted the processor just experimenting with a FBC, I think I didn't define an array large enough in the result. Do I need a word in the result for every bit I'm comparing?
Thanks for all who reply,
Jeff
I've been tasked with building a panelview screen to display "servo faults". The machine I'm working on has 9 servo axis. The ".servofault" word is a DINT, but only uses bits 0-8. I'm thinking about using a BDT instruction to move these nine bits into a nine word INT array and using a FBC instruction to compare this to a nine word INT array whose bits are set to "0".
Now to my question, is there an advantage to using a FBC as opposed to a DDT?
I would like to use the value in the .POS of the result control structure to indirectly address a value to move into a panelview message display. Is this a possiblity? Would using the value in the .POS compare structure be better suited to this?
One more thing, I'd like to inhibit the FBC once a fault has been detected, and resume comparing once the fault has been cleared, would using the status of the .FD bit of the compare or result structure be appropriate?
BTW, I faulted the processor just experimenting with a FBC, I think I didn't define an array large enough in the result. Do I need a word in the result for every bit I'm comparing?
Thanks for all who reply,
Jeff