Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

I have Problems with inputs and outputs

#1
Hello,

I have a UR3e robot. When I try to activate an output and get the value of an input, there are no warning messages. But when I use the fonction "len", It shows the value 0.

Also when I use the fonction "int" it doesn't work.
The type of data is "str"


Thank you for your reading,

先生。Relmy


Attached Files Thumbnail(s)

#2
(03-23-2023,于PM)先生。Relmy Wrote: Hello,

I have a UR3e robot. When I try to activate an output and get the value of an input, there are no warning messages. But when I use the fonction "len", It shows the value 0.

Also when I use the fonction "int" it doesn't work.
The type of data is "str"


Thank you for your reading,

先生。Relmy

Hi, the RoboDK must be connected to the robot. See in the API description:
Quote:Get a Digital Input (DI). This function is only useful when connected to a real robot using the robot driver. It returns a string related to the state of the Digital Input (1=True, 0=False).This function returns an empty string if the script is not executed on the robot.
Seehere.
#3
Hi,
You can connect RoboDK with URSIM, that you can test the IO.

Please find more from this link:

//www.sinclairbody.com/doc/en/Robots-Univers...tml#UR-Sim




Users browsing this thread:
1 Guest(s)