정의
set_tool_digital_output_type(port, output_type=None)
Features
Set of activated tool digital output's type in the Teach Pendant.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
port |
integer |
- |
The port number of Tool Digital Output
|
|
output_type |
integer |
None |
The type of Tool Digital Output
|
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
Python
set_tool_digital_output_type (port=1, output_type=DR_OUTPUT_TYPE_PNP)
set_tool_digital_output_type (port=2, output_type=DR_OUTPUT_TYPE_NPN)
Keyword
set_ / set_tool / set_tool_ / set_tool_digital / digital_output / digital_output_type