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

Add FINS/UDP functionality for Omron PLCs? #31

Closed
rickyelopez opened this issue Aug 20, 2019 · 6 comments
Closed

Add FINS/UDP functionality for Omron PLCs? #31

rickyelopez opened this issue Aug 20, 2019 · 6 comments

Comments

@rickyelopez
Copy link

I already have Python code that allows me to communicate with NX series (and probably others) PLCs over Ethernet/IP (but really FINS/UDP if I understand correctly).

With that code, how much work do you think it would be to add that functionality here? I started looking around your Modbus integration, but I'm not sure how much of it would be required for FINS because the protocol seems to be simpler.

I can provide more detail obviously just not sure what you need. If you can give me a direction to start in, I might be able to take a stab at implementing it myself and making a PR.

Thanks!

@clavay
Copy link
Collaborator

clavay commented Aug 28, 2019

Hello,

Could you provide your code with explanation to see how it works ?
After this we can see how to integrate it.
Maybe you can look at the visa code which is simpler.

Did you use this : https://bitbucket.org/vladimirek/omronlib/src/master/plcPyLib/
or this : https://bitbucket.org/jryan/finsgit/src/master/fins/

Cheers,
clavay

@rickyelopez
Copy link
Author

Hello,

The code I am using is a modification of https://bitbucket.org/jryan/finsgit/src/master/fins/ done by Stefano Fraccaro. Unfortunately, the site his code is on has since been taken down, however, I've attached the python file here, along with a test file that I know works for my Omron NX1P2.

I haven't looked at the VISA code, I've been basing my modifications on the Modbus code, however, I'll take a look.

Any suggestions you can provide would be very helpful, thanks!

fins_udp.zip

@clavay
Copy link
Collaborator

clavay commented Sep 6, 2019

Hi,

You can use the scripting plugin to easily execute your script.

If you want to create your own plugin for this protocol, I think you can copy the visa part, defining the model, the admin part and look how device.py use the handlers which are in the devices folder and put your script and functions in one handler for your model.

@trombastic what do you think ?

@rickyelopez
Copy link
Author

Hello,

Thank you, I will look into both avenues and update this issue when I have results.

Thanks!

@clavay
Copy link
Collaborator

clavay commented Oct 16, 2020

Did you try it ?

@rickyelopez
Copy link
Author

@clavay haha the internship for which I was working on this ended over a year ago. I don't think we ended up pursuing this due to unrelated issues, though.

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