Have you ever wondered what the ladder logic for a dog would look like?Â I imagine itâ€™s something like this:
â€¦ and so on.Â I think thatâ€™s why we consider dogs so loyal.Â Perhaps by loyal, we mean predictable, or understandable.
Ever wonder what the ladder logic for a cat would look like?Â I imagine it thus:
â€¦ or something like that.Â Actually Iâ€™m pretty sure Iâ€™ve met a couple of cats that came equipped with thirteen sequencers and a conditional subroutine jump in there somewhere.Â It certainly makes life interesting.Â Does that little tail wag mean itâ€™s safe to pet, or does it mean your cat is about to mistake your inner thigh for prey?Â Who knows!Â What fun!
I guess my point is, cats can be moody, and believe it or not, so can machines.Â You might call it â€œinternal machine stateâ€, but I call it moodiness.Â Have you ever been trying to troubleshoot a machine and it was stuck thinking there was a part in one of the stations that really wasnâ€™t there?Â Every time it indexes it keeps faulting?Â Thatâ€™s machine moodiness.Â So there you are, flagging every sensor in sight trying to get that part present bit to clear, and no matter how many roses or chocolates you buy for the darned thing, you know youâ€™ll be sleeping in the dog house tonight.
Thankfully, thereâ€™s a cure for machine moodiness:Â Make all internal state visible and editable.Â At the very least, there should be a screen on the HMI that shows the current status of the part present bits at each station.Â If you really want to be fancy, make sure it allows the operator to set and clear those bits manually.Â That includes latches, sealed coils, counters, FIFOs, and even long running timers.
Anyway, if you canâ€™t see it, you canâ€™t troubleshoot it, so adding visibility will save you time in the future.Â Trust me.Â And trust dogs; theyâ€™re quite loyal.