Skip to content

Using CIPDriver with a PowerFlex drive #195

Answered by rnoguera2
rnoguera2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I got it working, by removing a couple of parameters from the example code:

def read_pf525_parameter():
drive_path = '172.22.186.70'

with CIPDriver(drive_path) as drive:
    param = drive.generic_message(
        service=Services.get_attribute_single,
        class_code=b'\x93',
        instance=41,  # Parameter 41 = Accel Time
        attribute=b'\x09',
        data_type=INT,
        connected=False,
        #unconnected_send=True,
        #route_path=True,
        name='pf525_param'
    )
    print(param)

read_pf525_parameter()

Replies: 3 comments 3 replies

Comment options

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

Answer selected by rnoguera2
Comment options

You must be logged in to vote
2 replies
@ottowayi
Comment options

@ClearSimpleAndPlain
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants