
adccommunitymod (AutomationDirect) asked a question.
Created Date: September 10,2013
Created By: jprindle
**** 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.****
I have done a few programs with the PAC3000 now, but this is the first time I have needed to do a shift register. What is the best way to do this? I have a machine that I need to track good and bad parts along the cycle on. It only has a few stations, so I only need to have about 4 registers active. I saw a couple different commands for this, and didn't know which one to go with. I am not moving numerical data, just a simple on or off (could be 1 or 0). Any advice would be appreciated. Thanks!
Created Date: September 10,2013
Created by: bcarlton
The SRA command seems like the easiest choice. But I haven't used this system yet.
Created Date: September 10,2013
Created by: techme
How many bits do you need for each register? Are the parts going to track over 4 16 bit registers? (64 bits) Do you want to shift from one register to the next? Or will the registers be loaded separately?
If the four registers are independent of each other then I would probably use the SFR(Shift /Rotate Bits) instruction.
If you want to use 64 consecutive bits, (In other words track a bit for more than one word.) then I would create a 1D Array as long as you would need and use the SRA
(Shift/Rotate Array instruction) to track the bits. Then you can use elements of the array in your logic.
Created Date: September 11,2013
Created by: jprindle
I am just looking to shift a register along a line. As the pnp cycles, I want to track the good and bad parts, so I can move the exit chute. The camera is two stations ahead of the chute, so I do not have many registers to deal with.
In the 205/06/Koyo line, I would just set C1 for a good part. Not sure on this system. I am going to play with the SRA today and see how it works. This is one of the easiest parts of the programming, it's just something that I have not done with the P3000 before.
Created Date: September 10,2013
Created by: jprindle
I have done a few programs with the PAC3000 now, but this is the first time I have needed to do a shift register. What is the best way to do this?
I have a machine that I need to track good and bad parts along the cycle on. It only has a few stations, so I only need to have about 4 registers active. I saw a couple different commands for this, and didn't know which one to go with. I am not moving numerical data, just a simple on or off (could be 1 or 0).
Any advice would be appreciated. Thanks!