Writing PLC Data to SQL: From the Gateway, Never From the Controller

A four-stage chain from controller through gateway and IDMZ broker to SQL Server, showing the controller setting DataReady, the gateway polling at one second into a SQLite queue, the broker carrying two sessions on TCP 8883, and a batched INSERT of 200 rows in 84 milliseconds, with three numbered break points on the arrows

A ControlLogix has no SQL client in it. What it has is a socket object on the Ethernet module, a WriteSocket service that carries 484 bytes at a time on a standard connection, and a MSG instruction whose default timeout is 30 seconds — which is 2500 scans of a 12 ms program. So a … Read more

A Historian for PLC Data: What to Log, How Often, and What Compression Costs

A six-row table of 1200 tags grouped by class, with the tag count, data type, collector rate, raw events per day and the logging policy each class earns, from 180 analogue process tags through counters and state words to 660 bools and 60 batch-record tags at a fixed one second

1200 tags collected once a second is 160,704,000 values a day, and at the 12 bytes a historian typically spends on a timestamp, a value and a status that is 1.93 GB a day and 704 GB a year. The same 1200 tags, with a deadband at the collector and a compression test at the … Read more

Plant Data on the Business Network: the DMZ, the One-Way Path and What IT Will Ask

Three stacked network zones drawn as bands: the enterprise zone on 10.20.0.0/16, an industrial demilitarised zone holding a broker, a jump host and an NTP server, and the industrial zone on 192.168.10.0 and 192.168.1.0 with two firewalls hatched across the boundaries and a refused direct path crossed out

One firewall rule is usually all a plant data project asks for: TCP 1433 outbound, from a gateway at 192.168.1.40 on the cell network to a SQL Server at 10.20.4.16 on the business network. That rule gets refused, and the refusal is right. What gets approved instead is a broker sitting in a demilitarised zone … Read more

When an Axis Will Not Enable: the Six Gates MSO Has to Pass Before Anything Moves

A ladder rung with Run_Request in series with a normally closed Axis_01.AxisFault and a normally closed MSO_1.EN driving an output, with an Enable_PB contact in a parallel branch around the first contact

When an Axis Will Not Enable: the Six Gates MSO Has to Pass Before Anything Moves The MSO rung goes true on a 2198-D032-ERS3 axis, MSO_1.EN sets, and then nothing happens: no .DN, no .ER, no error code to look up, and the machine sits there. Axis_01.AxisState reads 5. Five is Inhibited, and a start … Read more

An Edge Gateway That Buffers: Six Hours Offline, and Then What

A table of three publishing strategies for the same machines over a six hour outage, showing the number of metric changes, the number of messages, the mean message size, the megabytes buffered and the resulting steady rate, with the no-deadband row highlighted at 31.66 megabytes

An Edge Gateway That Buffers: Six Hours Offline, and Then What Six hours of the carton transfer at its real change rates is 2.12 MB. Four machines on the same gateway is 8.49 MB. The same four machines with every tag published every second and no deadband on anything is 31.66 MB, and that is … Read more

Advertisement