Sign in to follow this  
Followers 0
ParaffinPower

[PLC Sample Code] - Tracking product on conveyor

1 post in this topic

File Name: Tracking product on conveyor File Submitter: ParaffinPower File Submitted: 12 Feb 2006 File Category: PLC Sample Code Products arrive on conveyor irregularly pitched. Conveyor is equipped with an encoder or maybe a proxy looking at the sprocket. This program captures the position and then multiple FB calls can be made to give an output at a distance from the input point maybe at a label inspction point or reject unit. The Shift register readout FB can be called as many times as necessary. The encoder can be connected to a high-speed counter meaning that the PLC scan need not 'see' every number i.e the encoder counter can be asynchronous. I've simulated this in this program by incrementing the 'encoder' with a timed interrupt. Adjacent to the product position stack is a product status stack so data can be written in at any point too e.g. I'm in front of the label detect sensor - if it's on then I can enter a '1' (say) into the stack. As the status is kept in a Word then upto 16 devices can write into the stack. Subsequent writes are ORed with existing data. This can be achieved with FIFO but this method is more efficient as data is not actually moved just pointers to the data. Click here to download this file
1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0