jakeemon
Member
Hi guys,
I have a problem with setting up a FIFO register in RS500.
What I have is a pump that needs to supply 6 rooms with sprayed water at timed intervals but only 1 room at a time. I've got the timing and spraying side working correctly but I can't figure out how to ensure only 1 room sprays at a time.
This is where the FIFO comes in.....
I've tried to set it up so that each room is assigned a number, the FIFO pushes a number into a register as each room requests a spray.
eg. Room one timer is up so a 1 gets pushed into the FIFO
Room two timer is up so a 2 gets pushed into the FIFO
Room three timer is up so a 3 gets pushed into the FIFO
After the room requests have been set the FIFO unloads to an N:? register. This N:? register is then used in an EQU functions to determine which room sprays.
At the end of program I zero the N:? register ready for the next room.
My problem is I think I'm zeroing the register in the wrong way as the system doesn't work!!
I have a problem with setting up a FIFO register in RS500.
What I have is a pump that needs to supply 6 rooms with sprayed water at timed intervals but only 1 room at a time. I've got the timing and spraying side working correctly but I can't figure out how to ensure only 1 room sprays at a time.
This is where the FIFO comes in.....
I've tried to set it up so that each room is assigned a number, the FIFO pushes a number into a register as each room requests a spray.
eg. Room one timer is up so a 1 gets pushed into the FIFO
Room two timer is up so a 2 gets pushed into the FIFO
Room three timer is up so a 3 gets pushed into the FIFO
After the room requests have been set the FIFO unloads to an N:? register. This N:? register is then used in an EQU functions to determine which room sprays.
At the end of program I zero the N:? register ready for the next room.
My problem is I think I'm zeroing the register in the wrong way as the system doesn't work!!