Quick Start
•
17
The First Program
WAGO-I/O-SYSTEM 750
ETHERNET StarterKit 2
Left clicking on the arrow next to “AT“ will open a text box in which you can
enter a variable name (Fig. 15).
Fig. 15: WAGO-I/O-PRO, Declaration of variables with I/O configuration dialog
Now enter the following variable names:
Input_Bit1 (for the %IX0.0 address)
Input_Bit2 (for the %IX0.1 address)
Output_Bit1 (for the %QX0.0 address)
Output_Bit2 (for the %QX0.1 address)
Then, open the “PLC_PRG“ program from the “POUs“ register and complete
a simple assignment within the statement part of the program:
Output_Bit1 := Input_Bit1;
Output_Bit2 := Input_Bit2;
Fig. 16: WAGO-I/O-PRO CAA, Declaration and statement part of the PLC-PRG program
This way, both the first two inputs and first two outputs are assigned to each
other (Fig. 16).
The program can now be loaded if the test program has been successfully
compiled.
Compilation is initiated via
Æ
Project
Æ
Rebuild all.