Python api robot rsl_BinIn


Why is it wrong?

Hello,
Thanks for bringing this to our attention. There seems to be a bug in vcHelpers.Robot2 script caused by two typos.
This is one of the scripts that come with the installation, so a fixed version will come in a new release somewhen in the future. We can however fix this for your installation:
For a quick fix, find the script from VC:s installation folder: {drive}:\Program Files{software}{version}\Python 2\Commands\vcHelpers\Robot2.py
Find lines 1107 and 1108. They say “statement.Input = arg1” and “statement.Value = arg2”.
The fixed syntax is "statement.InputPort = arg1" and “statement.InputValue = arg2”.
Save the file and restart VC, and the script starts working properly.

image

1 Like

thanks your help, I find it。

I tried again on version 4.10.2, and this bug still exists.

Hello,
The fix will be there in VC release 5.0.0 where this and many other scripts have been converted to Python 3. VC 4.10.2 still has the old Python 2 version of the script, which was untouched. When I wrote my reply, I did not realize yet that there was going to be VC 4.10.2 before 5.0… Apologies for the mistake.
In future, please contact support regarding clear bugs, so there is no risk that the forum thread would be accidentally overlooked.

ok,Thank you for your help