
adccommunitymod (AutomationDirect) asked a question.
Created Date: February 08,2012
Created By: BrianG
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
This has already been touched upon previously; now I'm looking for a shortcut. I am upgrading an exhibit that lets kids "race " against 1 of 8 different animals. The steps are as follows: 1. Select animal 2. HMI screen displays Ready, Set, Go. (Uses timer) 3. Kids break first photo-eye which starts timer used in conjunction with 2 counters that control step 4. 4. Series of 48 lights (one at a time) runs down to the end as the kid races next to them. 5. Breaking end photo-eye stops race. If child gets to this point before final light is on, he "wins ". 6. This current step-up is not able to consider acceleration and so the animal running times are simply based upon the maximum speed of the animal and not really representative of a race. I am want to make the lights come on based upon a TMRF. I have the acceleration for each of the 8 animals and so I know what the TA should be for each light and for each animal. Here's the issue: I am not looking forward to entering the LDR & OUTD instructions 304 times each (8 animals x 48 lights). I cannot come up with a better idea.
Created Date: February 09,2012
Created by: AlbertL
Brian,
I'm new to PLCs myself and am only familiar with the Click, so I probably won't be of much help. Does your PLC have a drum-controller instruction like the Click does? I think that would be the easiest and cleanest way to implement the sequential-lights function.
Albert
Created Date: February 09,2012
Created by: BrianG
That may be a workable option; I need to explore it more. I think I was a bit intimidated by it when I looked through the manual. I had hoped to be able to use MATHR and enter a formula - but what I need does not work with my 250-1.
Created Date: February 09,2012
Created by: bcarlton
Investigate the LDLBL command to transfer fixed data from an area at the end of the program, started by a DLBL command.
It sounds like you have already calculated the times, in hundreths of a second, for each segment. Use pointers to step through the loaded table.
Created Date: February 09,2012
Created by: clasentech
The very first light should be at the end of the acceleration. It would make everything easier, but not that big of a deal. That way each animal only has two timers.
Created Date: February 09,2012
Created by: clasentech
I needed to get a PLC into my office so this gave me a good excuse to pull one in and make a mini-lab. Here is a possible solution without using pointers.
790
I only have three animals at arbitrary rates. You could easily expand this if you want to ignore my other post. Just build on the shift register depending on how long the accl takes.
To try it out turn on C1 and C10 and monitor VC100 as a binary double word.
You'll have to switch the PLC to a 250-1.
Created Date: February 08,2012
Created by: BrianG
This has already been touched upon previously; now I'm looking for a shortcut.
I am upgrading an exhibit that lets kids "race " against 1 of 8 different animals. The steps are as follows:
1. Select animal
2. HMI screen displays Ready, Set, Go. (Uses timer)
3. Kids break first photo-eye which starts timer used in conjunction with 2 counters that control step 4.
4. Series of 48 lights (one at a time) runs down to the end as the kid races next to them.
5. Breaking end photo-eye stops race. If child gets to this point before final light is on, he "wins ".
6. This current step-up is not able to consider acceleration and so the animal running times are simply based upon the maximum speed of the animal and not really representative of a race.
I am want to make the lights come on based upon a TMRF. I have the acceleration for each of the 8 animals and so I know what the TA should be for each light and for each animal. Here's the issue:
I am not looking forward to entering the LDR & OUTD instructions 304 times each (8 animals x 48 lights). I cannot come up with a better idea.