Chapter 5. GM PROGRAMMING
5 -4
6) Input/output variables on Programming
AD_CH : VAR : ARRAY [0..7] OF BOOL : = { 1,0,1,0,1,0,0,0,0 }
AD_INI : VAR : FB instance
AD_RD : VAR : FB instance
AVG_EN : VAR : ARRAY [0..7] OF BOOL : = { 0,1,0,1,0,0,0,0 }
AVG_NUM : VAR : ARRAY [0..7] OF USINT : = { 0,0,100,50,0,0,0,0 }
DATA : VAR : ARRAY [0..7] OF INT
DATATYPE : VAR : ARRAY [0..7] OF BOOL : = { 0,0,0,0,0,0,0,0 }
INI_ACT : VAR : ARRAY [0..7] OF BOOL
INI_STAT : VAR : USINT
RD_ACT : VAR : ARRAY [0..7] OF BOOL
RD_STAT : VAR : USINT
READY : VAR : BOOL
START : VAR : BOOL
Variable Name Var_Kind Data Type (AT Address) (Initial Value)