Reading a CompactLogix Tag from a Raspberry Pi with pycomm3

Raspberry Pi, switch and CompactLogix 5380 on one subnet, with the IP plan, the EtherNet/IP port and the direction of the request marked

Four lines of Python on a Raspberry Pi 4 read a CompactLogix tag – a REAL out of a 5069-L306ER – and nothing at either end is licensed. pycomm3 1.2.16 speaks EtherNet/IP to TCP port 44818 itself, which takes the OPC server, the Windows box it used to live on and the licence out of … Read more

A MSG Instruction That Actually Works: Path, Type and the Error Codes

16#0204 appears twice in the same Rockwell reference manual with two different meanings, and which of the MSG instruction error codes tables you are reading decides where you spend the next hour. In the extended error codes for error 0001 it is Unconnected message timeout. In the module fault codes it is Connection Request Error: … Read more

Commanding a PowerFlex 525 from a ControlLogix: The Command Word, the Reference and the Status Bits

Bit 0 of the PowerFlex 525 logic command word is Normal Stop, and it has to be sitting at 0 before bit 1 will ever start the drive. That footnote under the table in Appendix D of 520COM-UM001 is behind most of the drives that show a green connection in the I/O tree and still … Read more

Common PLC Programming Mistakes: Six That Cost Hours

Common Mistakes to Avoid in PLC Programming

A TON with a .PRE of 5000 that sits in a subroutine only called in Auto, with its rung left true, is already done on the first scan back after twenty minutes in Manual. Publication 1756-RM018A-EN-P prints the arithmetic that explains it, ACC = ACC + (current_time – last_time_scanned), so the timer bills the whole … Read more

Advertisement