Sign in to follow this  
Followers 0
seee

plc programming

3 posts in this topic

hello dear friends. one question has been in my mind for some years and i have not found an answer for it till now. suppose you want to write plc program(s7-300) for a new machine from beginning. this machine have many cylinders,motors,valves and etc. my question is that how you write plc program for each part to avoid confusing? Do you consider an fc for each part(for example:electric valves)? In most of programs i have seen that the programmer write whole cycle of machine in one fc and this fc communicate with other FCs. this fc called "sequencing". how do you write plc program? do you write sequencing program? please please share your experiences. best regards.

Share this post


Link to post
Share on other sites
Hi! good day to you . I'm not an expert in field, i am an apprentice, but i've done several project in the past using s7-300. I created 1 FC for each group or station of the machine, not per component. Example. 5 gallons bottling line. Automatic 5 gallons Washing station and filling station machine. For this machine. I created FC1 for the infeed of the washing station, (it composed of 5 cylinders, 1 motors, 9 sensors including the positioning). another FC2 for the middle stage and outfeed of the washing station. And another FC3 for the filling station, FC4 for the filling valves. FC5 for the capper section. FC6 for the conveyors. FC7 for the drives (Danfoss FC300 drives); FC7 has been call several times, depending how many danfoss drives in the system, and I assigned 1DB for each danfoss drive. and so on. Edited by Jairus

Share this post


Link to post
Share on other sites
I write an FC for each (or an FB if I think the code can be used for more than one component, like cylinders or motor control). For me, it keeps it manageable. I can debug it, bless it, set it aside, and move on to the next.

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