Command Line Application for pylogix
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 CompactLogix PLC. Additional functionality will be added in future versions. The commands provided by the pylogix_cli wrapper can be executed by users lacking the RSLogix 5000 or Studio 5000 software who aren't interested in installing python or a whole development environment.
This version adds the following custom functions:
- GetFaultInfo
Currently Implemented Functions
Help - Displays this list of commands.
IPAddress <ip address> - Sets the IP address for the target PLC.
Quit - Leave console application.
GetPLCTime - Returns the PLC time.
SetPLCTime - Sets the PLC time to the current time.
GetModuleProperties <slot> - Gets the properties of the module in the specified slot.
GetDeviceProperties - Gets the properties of the connected device.
* GetFaultCodes - Gets the Type and Code of the current controller fault.
* GetFaultInfo - Provides the slot number for a module IO fault or the location of the logic fault.
Read <tag> - Returns the specified tag's value from the target PLC.
Write <tag> <value> - Sets the specified tag's value in the target PLC.
Version - Returns the version of pylogix_cli and pylogix.
GetTagList - Returns the list of tags in the target PLC.
Output (Raw | Readable) - Sets the output format. Raw is the default.
* - Is not a standard pylogix command.
(Note case sensitive.)
Changes in this Release
- This version adds the GetFaultInfo function.