Skip to content

Releases

pycomm3_slc_cli v0.3.1

Choose a tag to compare

@dhunt84971 dhunt84971 released this 13 Nov 14:37

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

User manual

A full user manual is now included in the docs folder, in both Word and PDF form. It covers installation, the safety warnings that come with writing to a live controller, SLC data file addressing, the three output formats and every command, with screenshots captured from a real session against an SLC 500.

Version

A new command that prints the version number of the application, so the build actually installed on a machine can be confirmed without opening it. It needs no connection to a controller.

pycomm3_slc_cli Version
0.3.1

Fixes

  • Write now writes to every data file, not just bit addresses. The value arrived from the command line as text and pycomm3 rejected it (Failed to create a writeable value), so numeric writes failed outright. The value is now converted according to the data file type: bit addresses take 1/0 (and on/off, true/false, set/clear), floating point files take a fractional value, and every other file takes an integer. A value that does not suit the address is reported rather than silently rounded.
  • IPAddress with no address given now prints ERROR - IPAddress requires an IP address. instead of raising an unhandled IndexError and ending the console session.
  • Read now answers when the output format is set to minimal, printing tag=value - the same form the tag file commands produce. It previously printed nothing at all.
  • The Help text lists Minimal among the output formats.

Known limitations

ReadOptimizedTagFile can raise on two cases, both in the same helper: a block holding a single floating point address, and an address inside a block that the controller rejects. Section 9 of the user manual describes both and how to avoid them.

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.

MD5 751e8bf62493412fec37565efa49b370

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.

pycomm3_slc_cli v0.2.0

Choose a tag to compare

@dhunt84971 dhunt84971 released this 25 Jul 16:07
4879356

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 additional instructions.

This initial version only implements a handful of commands specifically for the SLC5/05 PLC. Additional functionality will be added in future versions. For now, the commands provided by the pycomm3_slc_cli v0.2.0 wrapper can be executed by users lacking the RSLogix 500 software for the purpose of setting or getting the time on the PLC controller or for reading or writing single tag values.

pycomm3_slc_cli v0.1.0

Choose a tag to compare

@dhunt84971 dhunt84971 released this 14 Nov 20:37

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 additional instructions.

This initial version only implements a handful of commands specifically for the SLC5/05 PLC. Additional functionality will be added in future versions. For now, the commands provided by the pycomm3_slc_cli v0.1.0 wrapper can be executed by users lacking the RSLogix 500 software for the purpose of setting or getting the time on the PLC controller or for reading or writing single tag values.