Skip to content

GUI test app for pycomm and python 2 #71

@GitHubDragonFly

Description

@GitHubDragonFly

This is only intended for those who might still be using this pycomm library with python 2.

It would be suggested that if you can then switch to using pycomm3 library: https://github.com/ottowayi/pycomm3
This library requires python 3 version 3.6.1 as the minimum.

The attached Tkinter app is actually modified version of the app found in the "examples" folder of pycomm3 project.

It will allow you to list tags and poll tag(s) for values.
There is a driver selector to switch between LogixDriver and SLCDriver.
Reading strings and BOOL arrays is not supported by this app (entering a BOOL array tag should fetch you its DINT values).
Only arrays seem to allow specifying the number of elements to read by adding '{x}' at the end of the tag.
Read all the comments inside the file itself.

To start this app, open command prompt and navigate to the folder where the attached pycomm_gui.py file will be and then use either of these commands (example for Windows):

  • python pycomm_gui.py
  • python -m pycomm_gui
  • C:\Python27\python.exe -m pycomm_gui

If you have your cpu in a slot other than 0 then find and edit cip_base.py file and change the value of 'cpu slot'.
Example folder location of this file in Windows: C:\Users\User\AppData\Roaming\Python\Python27\site-packages\pycomm\cip\

pycomm_gui.zip

Here is the picture of this app. If you look at the list of tags you will notice an array that has '[x]' which only describes this tag as 1-dimensional array while 2 and 3 dimensional arrays will have '[x, y]' and '[x, y, z]' at the end.

Pycomm GUI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions