TIA Setup
The setup of Siemens PLC is done with the help of TIA Portal application
TIA Portal is a Siemens software for programming PLCs.
Creating a new project
To create a new project inside TIA Portal V16, click on Create new Project
from the start menu and provide name, path in which the project will be saved, and
an optional comment.
Following this, guided project creation steps will show up on the screen.
Adding a PLC to a project
To add a PLC to the current project, first find the model of the PLC. Click on Configure networks
under Devices & networks
from the menu.
- Once done, follow the steps below to add it (images added for reference):
Click on
Configure networks
Go to
Online
->Accessible devices...
. A pop-up window will open.Select
PN/IE
inside Type of the PG/PC interface:. Check for the PG/PC interface and set it to LAN connection from drop down list. For example, Intel(R) PRO/1000Click on
Start search
to find connected devices to computer’s LAN. Once scan is complete, you will see a device in the list with properties like Address, MAC Address etc. Read the IP Address on your PLC and find it in the list. It should be like192.168.##.##
.To confirm it’s your device, click on the device and press Flash LED. You will then see the Power LED on PLC starts to blink. This confirms that you have selected your own PLC. Next click on
Show
.
The pop-up window closes and on the left side, a tree list (project tree) structure expands. Here you will find the PLC you selected.
Expand the tree of the PLC and double click on
Online & diagnostics
. A new window opens with details about the PLC.Check for the Firmware version and note it down.
Click on
Portal view
and return to theAdd new device
panel.Click on
Add new device
Select the correct PLC from the list and use the correct firmware version.
Once done, click
Add
and the selected PLC will be added to your project.
Adding a signal board to PLC
A new window will open with image of the selected PLC. Go to
Device view
if not already there.Click on the center of the PLC to add signal board.
From the catalogue on the right side, select the correct signal board and drag it on the top of the center of the PLC. You will mostly find the right board in
Signal boards
->DI/DQ
.Now your PLC is ready to be programmed.
If the version is not visible, use the following configuration provided with the PLC.
Once everything is set, the PLC should look like this.
Changing IP address for Project
- To change the IP-Address of the project, follow the steps below:
Right click on the PLC from the left side project tree.
Click on
Properties
. A pop-up window will open.In that window, find
PROFINET interface
->Ethernet addressess
->IP protocol
Here, enter the
IP address:
provided with the PLC. ClickOK
once done.
Uploading code to PLC
- Initially you will have to add the plc on your network, to your code. To do that and to upload the code for the 1st time, follow the steps below (images added for reference):
To upload code to PLC, select the PLC from the left project tree structure.
Select
Online
->Download to device
option from the menu. A pop-up window will open.Check for the PG/PC interface and set it to LAN connection from drop down list. For example, Intel(R) 82578DM
Click on
Start search
to find connected devices to computer’s LAN.Once scan is complete, you will see a device in the list with properties like device name, IP Address etc. To confirm it’s your device, click on the device and press Flash LED. You will then see the Power LED on PLC starts to blink. This confirms that you have selected your own PLC.
Click on
Load
button. This will compile your code and show the possible errors and warnings. Once the code is checked, this will upload the code to the PLC. After that, click onFinish
to close the pop-up window.
Note
Keep the PLC connected with LAN cable.
When uploading any hardware changes, keep the PLC in
STOP
mode and in offline mode. i.e.,Online
->Stop CPU
&Online
->Go offline
When uploading only software changes, you can keep PLC in Online mode.
Note
When uploading to a Virtual PLC, switch to Siemens PLCSIM Virtual Ethernet Adapter
in #Step 3. Rest of the steps remain same.
After uploading for the 1st time, you can now upload only software changes until you don’t have any new hardware configuration or hardware property changes.
To do so, right click on the main code block and click on Download to device
-> Software (only changes)
If you have hardware changes or property changes, right click on PLC name from the left project tree. Click on Download to device
-> Hardware and software (only changes)
. You might have to Go offline and then Online to see the changes.