Page 250 - Electronic Mechanic - TP - Volume - 2
P. 250
ELECTRONICS MECHANIC - CITS
In the navigation area of the “Properties” tab, select the “Ethernet addresses” instruction. Define the IP address
“192.168.0.110” for the Ethernet port in the “IP address” input field.
Click the “Add new subnet” button. In the “Devices & Networks” work area, you will find the subnet PN/IE_1
connected to your S7-1200 PLC.
Software configuration
To see value changes, you will now create a small program in which two hardware inputs and a hardware output
of your PLC are connected to a software flip-flop.
Add a global data block
In the “Project tree”, click the expand button of your PLC folder (for example, PLC_1 [CPU 12…]). Open the
“Program blocks” sub-folder by clicking its expand button, and double-click the “Add new block” instruction.
In the “Add new block” dialog box, select the “Data block (DB)” button, enter the name “Data_block_1” in the
“Name” input field, and uncheck the “Symbolic access only” check box. Click the “OK” button. The “Data_block_1”
work area opens.
233
CITS : E & H - Electronics Mechanic - Exercise 183