set_tool_digital_outputs(bit_list)
Features
This function sends the signal of the robot tool from the digital contact point. The digital signals of the contact points defined in bit_list are output at one.
Parameters
Parameter Name | Data Type | Default Value | Description |
---|---|---|---|
bit_list | list (int) | - | List of multiple output contacts
|
Return
Value | Description |
---|---|
0 | Success |
Negative value | Error |
Exception
Exception | Description |
---|---|
DR_Error (DR_ERROR_TYPE) | Parameter data type error occurred |
DR_Error (DR_ERROR_VALUE) | Parameter value is invalid |
DR_Error (DR_ERROR_RUNTIME) | C extension module error occurred |
DR_Error (DR_ERROR_STOP) | Program terminated forcefully |
Example
set_tool_digital_outputs(bit_list=[1,2,3,4,5,6]) # Sets the contacts 1-6 ON
set_tool_digital_outputs([-1,-2,-3,-4,-5,-6]) # Sets the contacts 1-6 OFF
set_digital_outputs([1,-2,3]) # Contact no. 1 ON, no. 2 OFF, and no. 3 ON