Building an Add-On Instruction: the Parameters, the Local Tags, and the Revision Nobody Manages

The Valve_Ctrl definition: seven parameters with usage, data type, required and visible flags, and the three local tags underneath

The Import Configuration dialog offers three words: Rename, Overwrite, Use Existing. Behind Collision Details, the Property Compare tab says Revision 1.4 against Revision 2.1 and two different Edited Dates. The Project References tab says the existing Valve_Ctrl is used in 38 places. Pick Overwrite and all 38 calls are now calling a different instruction. The … Read more

ALMD and ALMA: Putting the Alarm in the Controller Instead of the HMI

The ALMD and ALMA operands with real values, and the ALARM_DIGITAL and ALARM_ANALOG members that carry the answer

On a ControlLogix 5580, Tank_Level_Alarm.Status.3 is set. Every one of HHInAlarm, HInAlarm, LInAlarm and LLInAlarm reads 0, the transmitter has been sitting at 94.0 against a high-high limit of 90.0 for six minutes, and no alarm exists anywhere on the system. Nothing is faulted and the ALMA instruction is scanning. Status bit 3 is AlarmLimitsInv, … Read more

Periodic, Event or Continuous: Which Task Type a Piece of Logic Actually Belongs In

The three task types side by side with what triggers each, what it costs, and the one sentence that decides it

A 1756-L83E carries a 10 ms periodic task at priority 5 and a continuous task that takes 48 ms end to end. Trend the interval between two consecutive executions of that periodic task and it reads 10.0, 10.0, 10.0, 14.2, 10.0, 10.0, 21.8, 10.0. The period is set to 10. Seven of the eight intervals … Read more

Triggering a Task From the Program: the EVENT Instruction and the Trigger That Gets Dropped

The EVENT instruction with its Task operand, next to the event task properties showing type Event, trigger EVENT Instruction Only, priority 1 and watchdog 500 ms

The Monitor tab on a 1756-L83E’s Shut_Down task reads Task Overlap Count 63. The task has executed 12 times since the last download, and three programs between them asked for it 75 times. Nothing faulted, nothing latched, and the numbers add up exactly: 12 plus 63 is 75. That is the whole of the EVENT … Read more

UID and UIE on a ControlLogix: Protecting a Critical Section From an Interrupt

Timeline showing MainTask at priority 10 writing three setpoints, a 5 ms FastTask at priority 5 reading the array between the second and third write and receiving 120, 340 and 0, against the same sequence protected by UID and UIE where FastTask is held off by 6 milliseconds

UID and UIE on a ControlLogix: Protecting a Critical Section From an Interrupt Three setpoints that belong together — 120, 340 and 75 — reached the downstream controller as 120, 340 and 0, roughly once an hour, on no pattern anyone could find. A 5 ms task at priority 5 was reading the array while … Read more

PLC Tag Naming, and the Data Model Your MES Will Ask For

A table of eight candidate tag names set against what Logix does with each one: accepted, refused, or silently treated as a tag that already exists, with a column giving the reason and a column giving what the system downstream ends up seeing. Three rows are picked out in colour

PLC Tag Naming, and the Data Model Your MES Will Ask For A Logix tag name gets 40 characters, letters, digits and single underscores, has to start with a letter or an underscore, and is not case sensitive. Those are all the rules the controller enforces, which is why a project that decided nothing about … Read more

GSV and SSV on a ControlLogix: Reading the Controller’s Own Data, Including the Clock

Panel of a GSV against the WallClockTime object: class name WallClockTime, instance name left blank, attribute LocalDateTime, destination Clock[0], followed by the seven array elements filled in as year 2026, month 11, day 16, hour 17, minute 3, second 0 and microsecond 418250

GSV and SSV on a ControlLogix: Reading the Controller’s Own Data, Including the Clock About one alarm row in forty carried a timestamp that could not have happened: 17:03:00 with 941 250 microseconds, logged after a row reading 17:03:01 with 12 microseconds. Two programs were each doing their own GSV against the WallClockTime object, in … Read more

AFI, NOP and TND: Changing a Routine Temporarily Without Deleting Anything

Four columns showing AFI at one rung, TND at the rest of a routine, Program DisableFlag at one program and Task InhibitTask at one whole task, each with what it reaches, how it is set, and what still happens when it is active

AFI, NOP and TND: Changing a Routine Temporarily Without Deleting Anything An exhaust fan had been running since 06:14 with the temperature 9 °C below its setpoint, and the rung that should have dropped it looked perfectly healthy in Studio 5000. Four rungs above it sat XIC Commissioning_Mode and a TND. Commissioning_Mode had been set … Read more

MES Handshakes: Work Order Down, Result Up, and the Acknowledgement Nobody Designs

Five stages drawn left to right showing a finished pallet moving from the rung that counts it, through the result area in the controller, the OPC UA server, the MES adapter and into the MES, with four numbered red break points marking where the result or its acknowledgement can be lost

MES Handshakes: Work Order Down, Result Up, and the Acknowledgement Nobody Designs The MES was unreachable from 01:40 to 05:00 and case packer CP-3 ran the whole way through it. Eighteen pallets came off in those 200 minutes, 864 cases, and when the MES came back it had a record of one of them. So, … Read more

JMP, LBL and MCR on a ControlLogix: Skipping Rungs, and Why MCR Is Not a Stop

A routine listing showing rungs 8 to 17: a JMP on rung 8 skipping forward to the LBL on rung 11, an MCR zone opened on rung 12 by Line_Enable and Guard_Closed, an OTE, an OTL and a TON inside it, the unconditional closing MCR on rung 16, and an unaffected OTE on rung 17

JMP, LBL and MCR on a ControlLogix: Skipping Rungs, and Why MCR Is Not a Stop Rung 14 of a filling machine carries OTL Glue_Pot_On and it sits between two MCR instructions. Open the guard, the zone goes false, every OTE inside it clears to 0 — and the glue pot stays hot, because a … Read more

Advertisement