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

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

Reading a Logix Tag into Node-RED on a Raspberry Pi Without Writing Code

plc programming logix tag node red raspberry pi no code 1 plc

A Node-RED Logix tag read takes one install script, one palette install and two dialogs on a Raspberry Pi 4: Zone7_Speed from a 5069-L306ER appears in the debug sidebar as 30.0, and none of it involves typing a line of code. The node that does it is node-red-contrib-cip-ethernet-ip 1.1.3, installed from the palette manager, configured … Read more

Polling an S7-1200 from a Raspberry Pi with snap7: DB Numbers, Optimized Access and the PUT/GET Checkbox

plc programming s7 1200 raspberry pi snap7 put get 1 plc

A snap7 S7-1200 read – plc.db_read(12, 0, 12) against a CPU 1214C – returns twelve bytes on the bench and an exception on the machine, and the difference is two checkboxes in TIA Portal, neither of them on the Pi. python-snap7 3.1.2 talks the S7 protocol to TCP port 102 in pure Python, so there … Read more

Running an S7-1200 Program in PLCSIM With No Hardware: The Simulated Interface and What Behaves Differently

plc programming s7 1200 plcsim no hardware what behaves differently 1 plc

A project built for a CPU 1214C DC/DC/DC, no CPU in the building until Thursday, and an S7-1200 PLCSIM instance one toolbar button away. Press it, pick PLCSIM in the PG/PC interface dropdown instead of the wired NIC, and the download that would have gone to 192.168.0.1 over the bench cable goes to a powered-up … Read more

Advertisement