timbo_uk
Member
Giving myself a headache here!
I have worked with plc's for a few years, but new to programming.
Basically I am wanting to check the status of 8 fault flags (B3:0/0 to B30:0/7)
If any of the flags are high I need to flash a fault code to a single lamp output. The fault code will actually be "bit number + 1 flashes". BUT if more than one is high (eg bit 0 and bit 7) then I need flash the output as follows: 1 flash, pause, 8 flashes, pause.
I am trying to work out how to read the individual bits according the the accumulator in a counter. ie B3:0/x (where x is the counter acc). The flash number will then simply be the counter acc loaded into another counters preset (via an integer flag?)
Hope this makes sense!
Any suggestions will be gratefully received.
I have worked with plc's for a few years, but new to programming.
Basically I am wanting to check the status of 8 fault flags (B3:0/0 to B30:0/7)
If any of the flags are high I need to flash a fault code to a single lamp output. The fault code will actually be "bit number + 1 flashes". BUT if more than one is high (eg bit 0 and bit 7) then I need flash the output as follows: 1 flash, pause, 8 flashes, pause.
I am trying to work out how to read the individual bits according the the accumulator in a counter. ie B3:0/x (where x is the counter acc). The flash number will then simply be the counter acc loaded into another counters preset (via an integer flag?)
Hope this makes sense!
Any suggestions will be gratefully received.