Declaration of Variables
Original instructions
At a Glance
All of the variables used in the different sections of the program must be declared.
Undeclared variables cannot be used in the program.
NOTE: For more information, refer to chapter Data Editor.
Variables Used for the Application
The following table shows the details of the variables used in the application.
Variable
Type
Definition
EDT variables
Open
BOOL
Open command for the inlet gate
Close
BOOL
Close command for the inlet gate
Stop
BOOL
Stop command for the inlet gate
Motor_Forward
BOOL
Open the inlet gate (Motor+)
Motor_Backward
BOOL
Close the inlet gate (Motor-)
Brake
BOOL
Blocks the inlet gate
Open_Limit
UDINT
Open limit
Close_Limit
UDINT
Close limit
IODDT variable
Gate_Position
T_SSI_BMX
IODDT of type T_SSI_BMX for the %CH0.1.0 address
The following screen shows the application variables and their address created using the data editor:
NOTE: Click on in front of the derived variable Gate_Position to expand the I/O objects list.