You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old November 24th, 2022, 12:35 PM   #1
ganutenator
Lifetime Supporting Member
United States

ganutenator is offline
 
ganutenator's Avatar
 
Join Date: May 2002
Location: kansas
Posts: 1,430
Funny programming comments

Happy Turkey day.
Post your favorite funny comments.

// Dear programmer:
// When I wrote this code, only god and
// I knew how it worked.
// Now, only god knows.
//
// Therefore, if you are trying to optimize
// this routine and it fails (most surely),
// please increase this counter as a
// warning for the next person:
//
// total_hours_wasted_here = 40
//
  Reply With Quote
Old November 24th, 2022, 12:42 PM   #2
ArcReactorKC
Supporting Member
United States

ArcReactorKC is offline
 
Join Date: Jun 2021
Location: Midwest
Posts: 70
One I found a few years ago in a waste water system

##############################
As far as I can tell I have created magic. I do not know why or how it works
If you touch it you own it
##############################

One I left on a rotary pneumatic press
##############################
This machine fears no God do not trust it to do what you tell it
##############################
  Reply With Quote
Old November 24th, 2022, 12:48 PM   #3
Ken Moore
Lifetime Supporting Member
United States

Ken Moore is offline
 
Ken Moore's Avatar
 
Join Date: May 2004
Location: North, West, South Carolina
Posts: 3,293
In an old Ti-565 SFPGM (aka structed text in the 80's):

*If you can understand this convoluted logic, god bless you.
*If you do not understand it and need to modify it, may the force be with you.
__________________
Certified Siemens Functional Safety Professional,
ID: SFSP17010238
NRA Benefactor
  Reply With Quote
Old November 28th, 2022, 04:24 PM   #4
exabmorgan
Member
United States

exabmorgan is offline
 
Join Date: Feb 2008
Location: USA
Posts: 92
This isn't directly mine , but a coworker recounts a story where a certain action was 'supposed' to take place when some code issued a command in a machine. And it didn't always. So the programmer put a loop around the command and did it again. And again. And again. Until he got the results he wanted.


So when in the office and something similar happens we snark, to each other - #Do Till Crispy.
  Reply With Quote
Old November 28th, 2022, 05:30 PM   #5
ASF
Lifetime Supporting Member
Australia

ASF is offline
 
Join Date: Jun 2012
Location: Australia
Posts: 3,646
Quote:
Originally Posted by exabmorgan View Post
So when in the office and something similar happens we snark, to each other - #Do Till Crispy.
Reminds me of a job where I built a bag filling machine and then later the customer engaged an IT company with zero OT experience to do some interfacing to their IT systems. They asked me how to get the bag weight figure into their C#-based software from an Allen-Bradley PLC. With some help from this forum I pointed them to an API specifically designed to do this, but they decided that was above their level of expertise.

So anyway, the solution they came up with was to use a Windows tablet with a USB-serial adaptor, permanently mount the windows tablet instead of having it mobile like the customer wanted, add an ASCII serial module to the PLC, and send the weight over a serial link. They sent the PLC an ASCII message saying "please report last bag weight" and I had the PLC reply with the weight.

But, as if that were not already enough of a terrible hack, they had no idea how to set their software up to "listen" for an ASCII message. In the end they just asked me to continuously transmit the value for 10 seconds, and most of the time their software would catch one of them at about the 5-6 second mark.

So the rung comment on the rung that repeatedly transmitted this message was:
Quote:
Scream into the void and hope somebody hears
  Reply With Quote
Old November 29th, 2022, 03:43 AM   #6
cardosocea
Member
United Kingdom

cardosocea is offline
 
Join Date: Nov 2016
Location: Fields of corn
Posts: 2,177
Quote:
Originally Posted by ASF View Post
So anyway, the solution they came up with was to use a Windows tablet with a USB-serial adaptor, permanently mount the windows tablet instead of having it mobile like the customer wanted, add an ASCII serial module to the PLC
That is giving me flashbacks of the WITS protocol. LOL
  Reply With Quote
Old November 29th, 2022, 03:51 AM   #7
parky
Member
United Kingdom

parky is offline
 
parky's Avatar
 
Join Date: Oct 2004
Location: Midlands
Posts: 4,513
I was callecto complete a project where the programmer had upped sticks & left, one comment on the first rung was to whom has to sort out this bag of $H% out the Engineering manager is a complete A$E so good luck you unfortunate XXXXXX.
Afer a week at that site I understood the guys sentiments.
  Reply With Quote
Old November 29th, 2022, 06:18 PM   #8
glennz
Member
United States

glennz is offline
 
Join Date: Jul 2015
Location: MKE
Posts: 23
This as a faux screen saver on SCADA application. Modify text to suit your industry and desired level of terror.

https://steamcommunity.com/sharedfil...se&id=39216944
  Reply With Quote
Old November 30th, 2022, 03:37 AM   #9
parky
Member
United Kingdom

parky is offline
 
parky's Avatar
 
Join Date: Oct 2004
Location: Midlands
Posts: 4,513
I did a project in the 80's, this was an upgrade of a pilot plant for soup manufactuer, this was done on-site, being in a production area we had a tent over the control panel, ripped out the old Klockner system, rewired the new controls in the existing panel. My collegue & I worked on it for about 4 weeks, commissioned it fine, however, my collegue had put a pop up CHAD character from the vessel with a caption "What no soup" when the lid opened, the production manager was not too pleased, however, the operators loved it, he gave way to them. this was only a pilot plant and expected to only be in service for a year or two, in 2000, I was given the task of upgrading the PLC & graphics, removed the Chad, but they insisted I put it back in.
  Reply With Quote
Old November 30th, 2022, 03:39 AM   #10
parky
Member
United Kingdom

parky is offline
 
parky's Avatar
 
Join Date: Oct 2004
Location: Midlands
Posts: 4,513
Just incase some may not know what a chad is
Attached Images
File Type: png Chad.png (4.4 KB, 103 views)
  Reply With Quote
Old November 30th, 2022, 04:19 AM   #11
Ronnie Sullivan
Member
United Kingdom

Ronnie Sullivan is offline
 
Join Date: May 2010
Location: London
Posts: 659
I was asked to put some extra buttons on an HMI.
I followed the trail to the last screen until there was some space to put them.
The company electrician was with me so he'd know where these new buttons would be.

I touched the screen area where they would be going and unbeknown to me at that time, there was a secret hidden button.
It jumped to a new screen where there were 3 photographs of the foreman.

In one he was asleep on a camp bed in his office. The next he was drinking beer with lots of empty bottles lying around and the last he was putting stolen items into his car.
The photos were timed and dated (all Saturday afternoon) and a description of the events.

He was a nasty piece of work (even to me) and was hated by all.

The programmer had retired and left the condemning pictures as a parting gift.
__________________
I promise to get it right 3rd time every time.
  Reply With Quote
Old November 30th, 2022, 07:04 AM   #12
I_Automation
Member
United States

I_Automation is offline
 
I_Automation's Avatar
 
Join Date: Jun 2020
Location: Detroit, Michigan USA
Posts: 1,179
I did a new control for a hot platen press for a buddy more of a favor than a paying customer.


It had a status display of what step, or "Done", the cycle was on. I added a counter to count how many cycles was started and every 13 cycles replaced "Closing" with "OMG! WTF Did You Do?"


It took him 2 years to notice it, and it would have popped up 2 or 3 times a week.
__________________
ivanovaautomation.com


Some Jobs Are Best Started With A Sawzall And A Dumpster On Castors
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Funny comments Ronnie Sullivan LIVE PLC Questions And Answers 0 April 18th, 2018 09:05 AM
SLC 500 Program moving comments after an upload Baker in Virginia LIVE PLC Questions And Answers 2 November 2nd, 2016 08:19 PM
RSLogix5000 V21+ Add Comments Online Without having to download JaxGTO LIVE PLC Questions And Answers 1 August 10th, 2016 10:16 PM
siemens S7 symbol table and comments panthripu LIVE PLC Questions And Answers 2 December 10th, 2012 06:55 AM
GX Developer Detach Comments from Program DamianInRochester LIVE PLC Questions And Answers 1 July 26th, 2012 11:24 PM


All times are GMT -4. The time now is 01:41 AM.


.