...he has nothing to debug on the procedural part...
But he has to understand the procedural part, which means reading the instruction help file and interpreting it. I've answered many calls where all they had to do was read an alarm message...
...he has nothing to debug on the procedural part...
Tell me that's a joke .....
Good day everyone, I just got into rs logix5000 programming. Can anyone help me explain how a sequence timer work? In my sample logic.
that seems like a very short sighted approach. Maybe the difference between oem for small machines and large scale si systems. As a si i make my code as easy to follow and troubleshoot while getting the job done. I don't want 2am phone calls because a sensor has failed and it takes an engineering degree to read the code to figure out what's going on. I don't subscribe to the thought that i can make the code as convoluted as i want as long as the machine does what it's asked today. Because tomorrow will come where something external fails or an added functionality is needed. I guess as an oem that's your bread and butter. You want the customer to call you and spend more $ for a minor change. I dont...once i walk away from a system i want very little to do with minor add on in the future.
As a side note i have made a fair amount in the past 20 years rewriting oem code for manufacturing for just that purpose....to conform to better standards and to make it easier for their techs to troubleshoot. Most oem code is great...as i'm sure yours is...but some of it looks like a thousand monkeys at a typewriter
and lastly, don't discount the power of frank (pretty condescending to call him fat) complaining to management about your code. Again i've gotten work from those complaints and have been contracted back to the oem to write future code for their plants.
But above all else, please don't be clever in your programming. Just because you figured out a really cool way of using BSL combined with MVM to update the inputs, doesn't mean that is how it should be done
A computer language is not just a way of getting a computer to perform operation... it is a novel formal medium for expressing idea about metholdology. thus, program must be written for people to read, and only incidentally for machine to execute
+++++++++++++++++++1000000000
Also, this one is controversial and I only came to this conclusion lately.
- Commenting is overrated. If your code is hard to understand, no amount of commenting will save it.
The singling out of SQO as being "hard to understand" doesn't make any sense to me. FAL and FSC in numerical or incremental mode is a much harder concept.
I feel a bit ganged up on....
Let me throw this into the mix...
If Bubba/Frank can't accept that an in-built instruction such as the SQO actually works, and has done since its inception in the late 60's/early 70's then we should also discount many other instructions, such as FAL, FSC, DDT, FBC, even PID, the list goes on and on.
The logic that any of those instructions performs could be brute-force hard-coded, using many rungs of code, but mostly they aren't, they are just used as the need arises.
The singling out of SQO as being "hard to understand" doesn't make any sense to me. FAL and FSC in numerical or incremental mode is a much harder concept.
At the very least the "Help" for complex (sic) file-based instructions is always to hand, as opposed to whatever rung documentation the programmer provided if coded verbosely.
If Bubba/Frank can't appreciate that if anything goes wrong with an application using SQO, then it is not the fault of the instruction itself, but the data it is working with.
I still say that if you had any substantial sequence (e.g. greater than 20 steps), Bubba/Frank would rather see an "engine" such as SQO or an AOI driving it, rather than working his way through 20-plus rungs of code, especially when he doesn't know if the problem is caused by a coding, or data error. Using SQO simplifies his debugging, IMHO.
I feel a bit ganged up on....
I feel a bit ganged up on....