Best programming practices

When using analog input as feedback from drives, etc, please, please, pretty please do not use "<> 0" to check if the drive/etc is active.

I have seen this being done many times. I have never seen it work.
 
When using analog input as feedback from drives, etc, please, please, pretty please do not use "<> 0" to check if the drive/etc is active.

I have seen this being done many times. I have never seen it work.

And never test for equality with floating point numbers. 0.0000000001 does not equal 0.
 
What would be the purpose of this timer? If it rolls constantly, are you picking something up off of this?

I am going to use it in conjunction with a manual switch and some compare functions to pulse a valve open and close.

i.e. 10 second timer. 3 seconds valve open. 7 seconds valve shut.
 
My most favorite rung comment to date, which I just read today going thru a program.

"If the part is over 36" long, the Light Curtains are disabled".

Someones work around from a while back.
 
My most favorite rung comment to date, which I just read today going thru a program.

"If the part is over 36" long, the Light Curtains are disabled".

Someones work around from a while back.

Here's a guy looking for a safe word.
 
You will make a backup before modifying the code.

TIA Portal can and will brick the project file for stupid reasons :(


Why didn't you include HWConfig?
I would've added HWConfig.
You should add HWConfig.
Why should you add HWConfig?

Cuz some ******* ********* ********* **** ********* ****** ***hole did a HWConfig download yesterday and didn't take a back-up.
Download bricked the PLC.
PLC does ... did ... handle an important part of our process.
Most recent back-up had ALL the wrong settings. Sanitary states, tank states, tank designations, recipe data, etc etc etc. All wrong. All wrong.
 

Similar Topics

I've been doing PLC programming for about 15 years now but all of my experience has been with Allen-Bradley PLC's. A few months ago I started a...
Replies
5
Views
3,179
Hi All - I have a system that I am setting up with about 50 axes of motion. There are 10 stations total where 9 of them are exactly the same. I...
Replies
0
Views
1,382
If I have a program that requires 10 different PID loops should I 10 different period tasks (using RSLogix5000)?
Replies
4
Views
2,347
I am looking for Ladder programming Best Practices and Tips. My Background is mostly AB and AD some Omron. Just looking for things to use in...
Replies
28
Views
15,395
and go! I'll start. Always comment the Boolean instruction for their TRUE state. For example. It is much easier to read a normally closed contact...
Replies
65
Views
21,569
Back
Top Bottom