FC_DisplayButtonsGet - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.32.6.0

Versions:

Current version

Task

Detect which buttons (on the display) of the controller (PacDrive LMC Pro/Pro2, PacDrive LMC Eco) are activated.

Description

The function returns the status of the display buttons. The status can be retrieved from the least significant bits of iq_byButtonsActive. If a bit is set, the button is being activated.

  • Bit#0: Button "up" (left button)

  • Bit#1: Button "Down" (right-hand button)

  • Bit#2: Button "Enter" (button in the middle)

"ButtonsActive" outputs the information on the buttons that are activated.

Interface

Input/Output

Data type

Description

iq_byButtonsActive

BYTE

Information on which buttons are activated.

Return Value

Data type

Description

DINT

0: OK

-1: Function for controller is not available

-2: Internal error detected