DoF - a Robotiq Community
Warning sign
The Dof Community was shut down in June 2023. This is a read-only archive.
If you have questions about Robotiq products please reach our support team.
agiakos

Loïc said:
First, in the MODBUS configuration, you want to read the register 128 so it's a robot's input. It needs to be a "Register Input" and not a "Register Output".

Then, you should put the line "var_1:=read_port_register(128)" in a thread to make it works (don't forget to put a "wait 0.01s").
With your actual code, you only read once the register concerned, when the blue cursor pass on it so if it's not at the value 500 at this time, you'll wait forever. Putting it in a thread, you'll read it "continuously".

I don't know if then it will works but you can start changing this.
Hey @Loïc you mean that I need to put the line "var_1:=read_port_register(128)" inside the moveL and after that line the wait command?

Loïc

You're welcome