1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

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

C++
// 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);