Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI test app for pycomm and python 2 #71

Open
GitHubDragonFly opened this issue Apr 18, 2021 · 1 comment
Open

GUI test app for pycomm and python 2 #71

GitHubDragonFly opened this issue Apr 18, 2021 · 1 comment

Comments

@GitHubDragonFly
Copy link

GitHubDragonFly commented Apr 18, 2021

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

@akashkumarmandal
Copy link

Did you tried to write the data in SLCDriver using pycomm3 library. If yes..kindly share the SLC write code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants