CDRFLEx.set_analog_output
Features
This is a function for outputting a signal at the analog 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 |
fValue | float | - | Analog signal output Ÿ In the case of current mode: 4.0~20.0 [mA] Ÿ In the case of voltage mode: 0~10.0 [V] |
Return
Value | Description |
0 | Error |
1 | Success |
Example
// Sets the analog No. 1 output contact point on the control box to current mode.
drfl.set_mode_analog_output(GPIO_CTRLBOX_ANALOG_INDEX_1, GPIO_ANALOG_TYPE_CURRENT);
// Outputs 5.2mA on the analog No. 1 output contact point on the control box.
drfl.set_analog_output(GPIO_CTRLBOX_ANALOG_INDEX_1, 5.2);