Skip to main content
Skip table of contents

get_function_input(index)

Features

This function reads a state of the function button from the process button device.

Parameters

Parameter NameData TypeDefault ValueDescription

index

int

-

It is the index of the function button mounted on the process button to be read. It is available 1 to 4.

Return

ValueDescription

1

ON

0

OFF

Negative value

Failed

Exception

ExceptionDescription

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

PY
in1 = get_function_input(1)           # Reads the no. 1 function button input
in8 = get_function input(4)           # Reads the no. 4 function button input
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.