Features
This is a function for setting the channel mode for the analog output contact point mounted on the control box in the robot controller.
Parameter
|
Parameter Name |
Data Type |
Default Value |
Description |
|
eGpioIdex |
enum.GPIO_CTRLBOX_ANALOG_INDEX_ |
- |
Refer to the Definition of Constant and Enumeration Type |
|
mod |
enum.GPIO_ANALOG_TYPE |
GPIO_ANALOG_TYPE_CURRENT |
Refer to the Definition of Constant and Enumeration Type |
Return
|
Value |
Description |
|
0 |
Error |
|
1 |
Success |
Example
C++
// Sets the analog No. 1 output contact point on the control box to current mode.
drfl.set_mode_analog_output(pCtrl, GPIO_CTRLBOX_ANALOG_INDEX_1, GPIO_ANALOG_TYPE_CURRENT);
// Sets the analog No. 2 output contact point on the control box to voltage mode.
drfl.set_mode_analog_output(pCtrl, GPIO_CTRLBOX_ANALOG_INDEX_2, GPIO_ANALOG_TYPE_VOLTAGE);