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

ValueError: An input parameter is already in use. #18

Open
Seynen opened this issue May 28, 2024 · 4 comments
Open

ValueError: An input parameter is already in use. #18

Seynen opened this issue May 28, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@Seynen
Copy link

Seynen commented May 28, 2024

Hello,
I try to run the example_control_loop.py, but it always says the variables are in use. (IN_USE).
Have not been able to run it ever. Are there some undocumented requirements?

The record.py example works ! But that does not use any input_variables (input to the UR) so that not failing on 'in use'.

I run it on Windows, with the URSIM UR5 in a Virtual Box.
Clean install, reboot virtual machine, does not seem to help.

netstat shows this: so there are connections to port 30004 but that's directly after restarting so that's normal, i guess.
image

error:
image

Any help would be greatly appreciated.
Best Regards,

@michal-milkowski
Copy link
Member

Clearly Ethernet/IP is enabled - it reserves all int/double GP registers 0-23.
Control loop example needs to be updated to use registers 24 and above instead of 0.
This needs to be done both on the urp program side, and python side.

@michal-milkowski michal-milkowski added the enhancement New feature or request label May 29, 2024
@michal-milkowski michal-milkowski self-assigned this May 29, 2024
@Seynen
Copy link
Author

Seynen commented May 29, 2024

Hi Michal,
thanks for the quick response.

I disabled all MODBUS/Profinet/EtherNetIP and now the lower 0-24 variables are indeed available.

However I now constantly get the C207A0 Protective Stop, (infamous?) Fieldbus input disconnected.
It says to disable fieldbus (which it is) or check the RTDE watchdog.

Where do I find and configure this watchdog?
My software has an open connection to the 30004 socket.
The "REAL-TIME DATA EXCHANGE (RTDE) GUIDE" does not mention a watchdog.

Can you point me in the right direction?

Best Regards,
image

@michal-milkowski
Copy link
Member

Python script needs to be started before program on the robot starts.
Alternatively watchdog can be disabled on line 3, however in this case setpoint is set to 0 that will likely collide with base if input int registers 0 is set.

@Seynen
Copy link
Author

Seynen commented May 29, 2024

Thanks for the help, i get it now,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants