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

Can not update output data o->t #9

Open
Zouzou1988 opened this issue Jul 27, 2023 · 0 comments
Open

Can not update output data o->t #9

Zouzou1988 opened this issue Jul 27, 2023 · 0 comments

Comments

@Zouzou1988
Copy link

Hello,
Thanks for your great library.
i'm working on project of motor controlling.
I can read data from controller but not update output byte[1].
here's a part of code :

          # Switch the motor ON

if (motor_off 1 and home_off: #conditions to switch on the step motor
eeipclient.o_t_iodata[1]= 2 # action to switch the motor ON and it's done
#time.sleep(4)
else: eeipclient.o_t_iodata[1]= 2

          # Homing

if motor_on and home_off:
eeipclient.o_t_iodata[1]= eeipclient.o_t_iodata[1] +16 #Action of motor homing
print(eeipclient.o_t_iodata[1]) # this data display 18 but the motor is not doing homing
else: eeipclient.o_t_iodata[1]= 2

I tried to add time sleep but it doesn't work.

Any suggestions to resolve this issue please.

Thank you in advance!
Alexis

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

1 participant