Programs, clues,rules about programming

Lukasz_Poland

Member
Join Date
Aug 2019
Location
Poland
Posts
28
I am beginner at writing plc programs. I had a few courses about S7-300 and I am learning Tia Portal. At work I have got Gefanuc and I can say that I know Proficy Machine a little. Now I am looking programs, clues and generally help in learning plc programming(structures of programs, rules how write, how to divide memory, data blocks etc..).


Sorry for my English.
 
welcome to the forum.

you have to plan ahead for memory items.
as far as writing programs, the following is what I tell everyone.
For any given homework assignment or task at work, you must consider these instructions as the customers specifications.
1. read the specifications several times.
2. write down your understanding of what you read in a step by step fashion.
3. review what you wrote down and see if it makes since, modify if necessary.
4. step through your notes again this time, you are the one following the instructions.
In other words, you are the plc. Write down on paper the events you are doing.
For example, turn on hydraulic motor 1, write down hydraulic motor 1 on.
If a sensor is needed, write that down.
5. continue through the instructions. When you turn off the motor, mark a line thru it.
6. go through your instructions with all the sensors, motor aux. contacts, outputs
Documented. Modify if necessary.
7. repeat step 6 until no changes are made.
8. Try to group your data words into some organized fashion.
The more programs you write, the more organized you become
9. write the plc program using your notes.
10. install the program and leave in program mode if possible so you can to debug your i/o
11. Question for you, when is a machine and plc the most dangerous and why?
When it’s first powered on – when power is first applied to a machine, you don’t know
How things are wired. When you energize the plc outputs, you don’t know how things
are wired. When the plc is put into run mode the first time, it will do what you told it to do,
NOT what you wanted it to do.
12. debug the program.
13. DOCUMENT EVERYTHING!!!
you may remember things today, but in 5 years and hundreds of programs later, you won't
remember, so DOCUMENT EVERYTHING.
14. MAINTENANCE is your best friend or your worst enemy.
if you work with them and find out what they can do, write the program where they can
trouble shoot the program. they will be able to fix the problem and everyone will be happy.
BUT
if you write the program to where you are the only one who understands what is going on,
maintenance can't fix the issue, the machine is down, production is down, management hears about
it, your boss hears about it, then you hear about it - rewrite the program or else.
you get calls all hours of the day and night.

this still holds true, a machine can cost a billion dollars, but it's not worth 10 cents if
maintenance cannot trouble shoot the issue and fix the issue.

everyone has their own style of programming and you must develop your own way as well.

this is the best advice I can give anyone.
of others has more / better suggestions, feel free to post.
 
James has some good suggestions. Here is some more advice:
-look at example programs and try to figure out how they work
-if you have free time, try to learn a new programming trick or look at some programs you wrote a while ago and think about how to improve them
-if you can't figure out how to program something, break the problem down into smaller pieces. Figure out how to accomplish at least part of the problem. Then ask for help/advice on whatever is left.
 

Similar Topics

Has anyone found a way to convert/replace/update the firmware on old Parker TS80xx series HMIs (i.e. TS8010, TS8006, etc) to accept Crimson...
Replies
0
Views
89
Hi All, I am trying to program some new Versamax micro PLCs through PAC using some programs saved in our archive however whenever i go to import...
Replies
2
Views
123
I have multiple programs defined inside a single continuous task. I have an ONS defined in the very first program that is used throughout multiple...
Replies
68
Views
5,208
A chance to tell us of a particular program you wrote that still makes you happy and proud. It doesn't have to be the software for a lunar landing...
Replies
28
Views
2,095
Hey guys, I've a requirement that a two different PLC program should work in same system depending upon user input. Consider Program A is used...
Replies
11
Views
1,894
Back
Top Bottom