Ask Your Question
0

What are flags in the setIO service of the UR messages

asked 2020-02-12 03:26:40 -0500

stefvanlierop gravatar image

updated 2020-02-12 03:45:07 -0500

Hi, this was a general question form me because i have been working with a UR10 and i can set the IO's to a value. I cannot set the mode however (current or voltage controlled). i was just wondering what the flags on a pin do. The ur_msgs/SetIO documentation shows that there is a function that sets these flags. Are flags the parameters that set the output of the analog pins to current or voltage control? I also tried this already with the Universal robot Driver with the function

FUN_SET_FLAG

but when i use this function, i get the message that it is not implemented yet in this driver.

thank you in advance

edit retag flag offensive close merge delete

Comments

I also tried this already with the Universal robot Driver but when i use this function, i get the message that it is not implemented yet in this driver

I'm guessing you are referring to FUN_SET_TOOL_VOLTAGE here. Would be good to mention that.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-12 03:33:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-12 03:31:37 -0500

gvdhoorn gravatar image

updated 2020-02-12 03:31:47 -0500

Are flags the parameters that set the output of the analog pins to current or voltage control?

No.

Flags are (from the The URScript Programming Language, version 3.12):

Flags behave like internal digital outputs. They keep information between program runs.

They are essentially a set of booleans in memory of the controller, not connected to any physical output or input. They can be used to store simple binary information.

Often used as mutexes or in wait conditions (ie: one thread waits on a flag to become True before continuing. Another thread sets the flag to True to signal the other thread it may continue).

edit flag offensive delete link more

Comments

This is just functionality offered by Universal Robots on their controllers btw. Nothing ROS-specific about this.

The SetIO service you mention is just a ROS interface to that functionality.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-12 03:32:29 -0500 )edit

Btw: you can configure the tool voltage and other setting using snippets of URScript (see the scripting manual).

The ur_hardware_interface node in the ur_robot_driver package exposes a urscript topic to which you can send snippets of URScript.

You could use that to configure the settings you are referring to in your question.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-12 05:24:10 -0500 )edit

You're right. I've updated my comment.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-12 05:48:38 -0500 )edit

I do not understand what you mean with scripting manual, is it this page

stefvanlierop gravatar image stefvanlierop  ( 2020-02-12 05:50:00 -0500 )edit

No.

It's the standard URScript manual as provided by Universal Robots on their support website.

This one for the CB series controller (not e-Series), system software version 3.12.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-12 05:56:58 -0500 )edit

With the URScript topic, you mean the script_command Topic of the ur_hardware_interface node

stefvanlierop gravatar image stefvanlierop  ( 2020-02-17 00:59:16 -0500 )edit

Yes, see this (or search for script_command in the ROS_INTERFACE docs).

gvdhoorn gravatar image gvdhoorn  ( 2020-02-17 02:38:30 -0500 )edit

i send this to the topic ur_hardware_interface/script_command : 'sec myProgram(): set_analog_outputdomain(1,1) end' . but it doesnt do anything. when i send 'set_analog_outputdomain(1,1)' it does set the pin domain correctly but then it interrupts the driver ur_cap that is running (as is mentioned in the documentation you send in the previous comment) my polyscope version is 3.7.1. Is this not up to date enough? Should i start another question or update this one?

stefvanlierop gravatar image stefvanlierop  ( 2020-02-17 05:54:17 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-02-12 03:26:40 -0500

Seen: 45 times

Last updated: Feb 12