Skip to content

pycomm3_slc_cli v0.3.0

Choose a tag to compare

@dhunt84971 dhunt84971 released this 10 Nov 12:36

Command Line Application for pycomm3 SLCDriver

This is a standalone command line application that can be directly executed on any Windows 7/10 system. See the ReadMe for instructions.

New in this release

GetFaultCodes

A new command that returns the current (S:6) and last (S:54) major error fault codes from the PLC together with the Rockwell description, fault classification and recommended action for each.

Additional information carried in a fault code is interpreted as part of the description:

  • The slot number in the high byte of the I/O error codes (xx50-xx5E, xx60-xx8F, xx90-xx94), including 1F for "slot could not be determined".
  • The data file number in the high byte of code xx39.
  • Code 0020 only reports that a minor error bit was set at the end of the scan, so the minor error bits in S:5 are read and named.
  • Code 00A1 on an SLC 5/05 puts a board specific code in S:15, which is read and reported.

The command also reports the major error halted bit S:1/13, because the processor never clears S:6 - a non-zero code there does not by itself mean the processor is faulted.

The descriptions come from the Allen-Bradley SLC 500 Instruction Set Reference Manual, publication 1747-RM001G-EN-P (November 2008) - chapter 16 "Troubleshooting Faults" and appendix B "SLC Status File".

Other changes

  • A failed connection now prints a clean message - ERROR - Unable to connect to 192.168.2.199. timed out - instead of a Python traceback, and exits with status 1. Re-issuing IPAddress in the console closes the previous connection first.
  • GetPLCTime now also answers when the output format is set to minimal, printing a zero padded sortable timestamp (2001-07-03 08:31:24).
  • Earlier fixes carried in since v0.2.0: single command execution, optimized bit tag value retrieval, and clearer feedback from ReadOptimizedTagFile for tags that do not exist.

The executable

pycomm3_slc_cli.exe is built with PyInstaller 6.8.0 on Windows 7 SP1 against Python 3.8.10 - the last Python release with official Windows 7 support - so it runs on Windows 7 and newer. It is a 64-bit executable and will not run on 32-bit Windows.