FC_DisplayModeSet - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.32.6.0

Versions:

Current version

Task

Rearrange the display mode.

Description

This function lets you switch the display mode. There are two modes:

  • System mode (ET_DisplayModeSelect.SystemMode = 0)

  • IEC-Mode (ET_DisplayModeSelect.IecMode = 1)

When switching over to the other mode, the text is displayed which was already previously written in this mode. In system mode, this is normally the standard display with firmware version, IP address, and HW version. In IEC mode this is an empty display by the first call up, otherwise the string that was shown on the display before the last change-over in the system mode.

Interface

Input

Data type

Description

i_diMode

DINT

0: SystemMode

1: IecMode

Return Value

Data type

Description

DINT

0: OK

-1: Function for controller is not available

-2: Internal error detected

-11: Display mode change-over is blocked

Examples

 PROGRAM SR_Main
VAR
   diResult : DINT := 0;
   sResult : STRING(80) := '';
END_VAR
diResult := FC_DisplayModeSet(ET_DisplayModeSelect.IecMode);
IF diResult < 0 THEN
   sResult := 'Error: FC_DisplayModeSet';
END_IF