EasyManua.ls Logo

Eaton easyControl EC4-200 - EASY221-CO, EASY204-DP, EASY222-DN Modules

Eaton easyControl EC4-200
113 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Interactive display
10/10 MN05003003Z-EN
84
PROGRAM Visualization (***************)
VAR
xIsDisplayEnabled :BOOL;
fbDisplayPage1 :Disp_DisplayPage;
byError :BYTE;
siValue :SINT;
END_VAR
------------------------------------------------------------
(* Initialisation in the first cycle after program start *)
IF g_xFirstCycleAfterStartProgram = TRUE THEN
Disp_RegisterVariable('S1', ADR(g_sDisp_String1), DISP_TYP_STRING);
Disp_RegisterVariable('S2', ADR(g_sDisp_String2), DISP_TYP_STRING);
Disp_RegisterVariable('S3', ADR(g_sDisp_String3), DISP_TYP_STRING);
Disp_RegisterVariable('S4', ADR(g_sDisp_String4), DISP_TYP_STRING);
Disp_RegisterVariable('V1', ADR(PLC_PRG.byValue), DISP_TYP_BYTE);
Disp_RegisterVariable('V2', ADR(PLC_PRG.wValue), DISP_TYP_WORD);
Disp_RegisterVariable('V3',ADR(PLC_PRG.dwValue),
DISP_TYP_DWORD);
Disp_RegisterVariable('V4', ADR(PLC_PRG.usiValue), DISP_TYP_USINT);
fbDisplayPage1.aElementDescription[1].sName := 'S1';
fbDisplayPage1.aElementDescription[1].byLine := 1;
fbDisplayPage1.aElementDescription[1].byColumn := 1;
fbDisplayPage1.aElementDescription[2].sName := 'S2';
fbDisplayPage1.aElementDescription[2].byLine := 2;
fbDisplayPage1.aElementDescription[2].byColumn := 1;
fbDisplayPage1.aElementDescription[3].sName := 'S3';
fbDisplayPage1.aElementDescription[3].byLine := 3;
fbDisplayPage1.aElementDescription[3].byColumn := 1;
fbDisplayPage1.aElementDescription[4].sName := 'S4';
fbDisplayPage1.aElementDescription[4].byLine := 4;
fbDisplayPage1.aElementDescription[4].byColumn := 1;
fbDisplayPage1.aElementDescription[5].sName := 'V1';
fbDisplayPage1.aElementDescription[5].byLine := 1;
fbDisplayPage1.aElementDescription[5].byColumn := 13;
fbDisplayPage1.aElementDescription[5].byDigits := 4;
fbDisplayPage1.aElementDescription[5].byPrecision := 1;
fbDisplayPage1.aElementDescription[5].xInputEnable := FALSE;
fbDisplayPage1.aElementDescription[5].diMinInputValue := 1;
fbDisplayPage1.aElementDescription[5].diMaxInputValue := 100;
fbDisplayPage1.aElementDescription[6].sName := 'V2';
fbDisplayPage1.aElementDescription[6].byLine := 2;
fbDisplayPage1.aElementDescription[6].byColumn := 12;
fbDisplayPage1.aElementDescription[6].byDigits := 5;
fbDisplayPage1.aElementDescription[6].byPrecision := 0;
fbDisplayPage1.aElementDescription[6].xInputEnable := TRUE;
fbDisplayPage1.aElementDescription[6].diMinInputValue := 0;
fbDisplayPage1.aElementDescription[6].diMaxInputValue := 33333;
fbDisplayPage1.aElementDescription[7].sName := 'V3';

Table of Contents

Related product manuals