BSL and BSR: A Shift Register That Tracks Product, One Bit Per Position

BSL and BSR operand blocks with Array ZoneMap element 0, Control ZoneShift, Source Bit PhotoEye, Length 240, and the CONTROL bits EN, DN, UL and ER shown with their states

Type 8 into the Length of a BSL whose array is DINT[8] and you have built a shift register eight positions long, not eight elements long, and the other 248 bits of that array will sit there untouched for the life of the machine. 1756-RM018A prints the reason in one line under Operands: Length is … Read more

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

Advertisement