Skip to content

Getting PointIO devices? #283

Answered by ottowayi
13igred asked this question in Q&A
Jun 6, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yeah, unfortunately that method isn't very sophisticated and doesn't work for this. I plan on replacing it and adding a bunch more features to the CIPDriver, but until then you can do it but have to do it manually. Here is a small example that works, you can probably modify it to your needs:

from pycomm3 import CIPDriver, ModuleIdentityObject, ClassCode, Services

entrypoint = '10.1.128.45'
pointio_route = '1/1/2/192.168.1.41'

with CIPDriver(entrypoint) as plc:
    
    for slot in range(8):
        resp = plc.generic_message(
            service=Services.get_attributes_all,
            class_code=ClassCode.identity_object,
            instance=1,
            data_type=ModuleIdentityObje…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@13igred
Comment options

Answer selected by 13igred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants