Repository navigation
pycomm3_slc_cli v0.3.0
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), including1Ffor "slot could not be determined". - The data file number in the high byte of code
xx39. - Code
0020only reports that a minor error bit was set at the end of the scan, so the minor error bits inS:5are read and named. - Code
00A1on an SLC 5/05 puts a board specific code inS: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-issuingIPAddressin the console closes the previous connection first. GetPLCTimenow also answers when the output format is set tominimal, 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
ReadOptimizedTagFilefor 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.