Breadcrumbs

CDRFLEx.get_analog_input

Features

This is a function for checking 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

Return

Value

Description

Analog signal input

In the case of current mode: 4.0~20.0 [mA]

In the case of voltage mode: 0~10.0 [V]

Example

C++
// Sets the analog No. 1 input contact point on the control box to current mode. 
drfl.set_mode_analog_output(GPIO_CTRLBOX_ANALOG_INDEX_1, GPIO_ANALOG_TYPE_CURRENT);

// Checks the current value on the analog No. 1 input contact point on the control box.
float fCurrent = drfl.get_analog_input(GPIO_CTRLBOX_ANALOG_INDEX_1);