What is your mistakes in LD programming?

minhyuk

Member
Join Date
Feb 2008
Location
Korean
Posts
12
hi all!
I am a Student in Korea! I am a researcher about Programming Lanaguages! I need your help!!!

my question is "what kind of bugs or problems can make hard to find? in Ladder Diagram" and "is there bugs that frequently found?"

"is there any Software for Finding bugs?"
"if you have that SW what kind of SW do you use?"

tell me your episode about your mistake of programming by Ladder Diagram!!

I will provide very nice tools!! as soon as possible!!
please help me!!

let's make great tool together!!
 
The mistake most commonly encountered by me is a simple typing error inducing double coil syndrome.

The hardware/software used to find and correct that mistake is made by mother nature and is called a brain. And of course the software for the PLC in question is also used in conjunction.

Regards,
 
Hi jvdcande! (i don't know how can I address your name sorry :)
What is the double coil syndrome?
I am a stranger here!

Regards,
--------------------------------------------
Minhyuk, Kwon
Programming Language Laboratory
Korea Technology and Education University
 
Common mistakes usually come down to typos as suggested, causing:

XIO instead of XIC and vice versa

Duplicate memory address used (One shots, Timers)

Copy/Paste errors - A big one when you have duplicate code for similar sections and you have to change the addresses for each section. Some PLCs have good find/replace routines, some don't.
 
I agree with Robetmee, the majority of bugs I find are simply due too typo's, the ladder is OK, but the tags have been mixed up. But of course you get the occasional "D'oh, I'm an idiot" type of bugs.

Bugs that occur due to the PLC scan are always hard to find as the ladder looks ok and the tags are correct, that’s when you've got to understand the PLC scan, and understand what the logic is trying to do. That bit me when a program was using math calculations across multiple subroutines....
 
A double coil is when you have the same output used twice. You cant do this in ladder. If you do, the first use of the output basically becomes inactive.
My biggest issues are typos on the addresses as well. Since plcs make poor use of variables, its easy to use the wrong memory address. Think of writing a C program and only using pointers.

matt
 
the only grief i see with any code is poor structure and documentation. it takes time to become organized and good in writing code that other can follow. this is not specific to particular language, it applies everywhere.

my own biggest mistake in ladder? well, one day i was a young and inexperienced so on my first job i placed three contacts in series before pulse instruction. everything seamed to work fine duting test phase but then we tried to run production... need i say more (y)
 
Look again and again

Just goes back to the same thing i was tought by an old guy the day I started programming. grab a piece of paper put down all coils, Vmem ext... have it in fromt of you as you type. then look at it to check. Then look and check, then look again. Then before you finish. Look at the damn thing again. set yourself up to succeed and you will is what he kept telling me. Not sure about all that but I usually dont use the same coil twice lol.
 

Similar Topics

Just burnt up an output card because I forgot to include a relay between the output and a contactor, so the inrush shorted the output to always...
Replies
56
Views
14,520
NOW if i could just tipe. School goin good. Overcame confusion on XIC and XIO ( Allen Bradley ), did the timers, figgered em out, made a flasher...
Replies
16
Views
5,117
Dear all, I have fx2n plc on my hand but I don't have the programming cable sc-09 and it would not be easy for me to get one. I need the cable...
Replies
3
Views
112
Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
20
Views
880
I need to pull the program off of an old 90-30 so I can convert it to Allen Bradley. This is my first time messing with GE and I don't have the...
Replies
2
Views
84
Back
Top Bottom