Siemens PLC Control
Simatic S7-1500
Agenda
● Hardware Description
● TIA Portal Usage
● Tasks Executed
○ S7-1500 - Dell Edge Gateway - NETPIE
○ S7-1500 - KEPServer
Overview
Communication Configure
Programming
Deploy
● Siemens TIA Portal
● Ladder Program
● Ethernet Cable
● Download to device
S7-1500
● Consist of CPU 1512C-1PN
● Has Profinet Interface with two ports (P1 R and P2 R)
● Integrated with Web Server and OPC Server
● Consist of two modes
○ RUN mode
○ STOP Mode
● Memory card slot to insert Simatic Memory card for storing user programs
Analog and Digital Boards
● Analog I/O board (X10)
○ 5 Analog Inputs
○ 2 Analog Outputs
○ Voltage and Current output selectable
● Digital I/O board (X11 and X12)
○ 32 Digital Inputs
○ 32 Digital Outputs
○ Output Voltage 24V DC
Memory Address
Address Space of Analog I/O Board Address Space of Digital I/O Board
TIA Portal
1. Portals for different tasks
2. Actions for selected portal
3. Selected panel for selected
action
4. Switch to project view
5. Display of project that is
Currently opened
TIA Portal
1. Menu Bar
2. Tool Bar
3. Project Tree
4. Work Area
5. Task Cards
6. Details View
7. Inspector Window
8. Switch to Portal View
Create Program
● Organization Blocks Main[0B1] are automatically created
once you open a project in TIA Portal.
● Once the S7-1500 has initialised, the OS will first execute
program in Organization Block.
Organization Block
1. Tool Bar
2. Block Interface
3. Favourites Pane
4. Instruction Window
5. Instruction Pane
6. Extended Instructions
7. Instructions Task Card
8. Testing Task Card
LAD Instructions
● Normally Open Contact: Current flows through the circuit when the input
tag signal state in “1”, otherwise no current flows through the circuit for “0”.
● Negated Coil: It inverts the signal state.
● Output Coil: It is used to set the bit of a specified tag.
● Box: Boxes are elements of LAB with complex functions.
PLC Tags
● The PLC tags are used to supply the instructions with values and the instructions
are executed depending on these values.
● A PLC tag is made up of the following components
○ NAME: For representing a TAG of a PLC.
○ DATA TYPE: Defines the value representation and the permitted value range.
○ ADDRESS: Defines the memory area from which the tag reads or writes a value.
Communication Configure
Deploy onto Device
Tasks Executed (A)
● OPC UA communication between S7-1500 and Dell Edge Gateway
○ Data upload to NETPIE
● S7-1500 comes with OPC UA Server pre-built, which is to be enabled using TIA
Portal and Dell Edge Gateway is used as OPC Client that requests data from
OPC Server.
● In this work, OPC Client reads the Analog Voltage of S7 using OPC
Communication.
Tasks Executed (A) Cont’d
Activate OPC UA Server on S7-1500
Tasks Executed (A) Cont’d
● DataLogCreate Instruction
Is used to create a file.
● DataLogWrite is used to write
The data into newly created
File.
● Drag and Drop above two
Instructions in Network area.
Tasks Executed (A) Cont’d
● REQ – Request is like condition to execute the
function block. It is of BOOLEAN Type.
● RECORDS – It is the maximum number of records
in the data file. By default it is 1.
● NAME – Representation.
● ID – Unique value.
● HEADER – It is the name of column in your data file.
● DATA – Type of data that you want to
create/store.
● DONE, BUSY, ERROR, STATUS –
These are used for troubleshooting
Tasks Executed (A) Cont’d
Tasks Executed (A) Cont’d
● MIN – Represents minimum value.
● Value – Pin number to be read. Here we
are reading voltage of Analog Input 0.
● MAX – Represents maximum value that
pin can have.
● OUT – Represents the memory location
for storing the value.
Tasks Executed (A) Cont’d
● EN – Moves the value for every
1second.
● IN – Here we have assigned output
of NORM_X.
● OUT1 – Stores the value in the
Log file at current voltage address
that we have created earlier..
Tasks Executed (A) Cont’d
Dell Edge Gateway as OPC Client
Tasks Executed (A) Cont’d
Integrated Web Server
Tasks Executed (A) Cont’d
Tasks Executed (B)
● Data exchange between S7-1500 and KEPServer (OPC)
○ The Analog and Digital pins voltage status/value will be transferred to the Kepserver.
Tasks Executed (B) Cont’d
Configure parameters on KEPServer
● Channel: It is a representation of communication medium. For example, for serial driver it would be
serial port and for Ethernet driver it would be TCP/IP socket created to send TCP/IP messages to a
remote device.
● Device: Represents the hardware that you are talking on the channel.
● Tag: Represents the type of data that you want to read from the device.
Tasks Executed (B) Cont’d
Channel
Device
Creating Tag
Summary
● The use of Industrial PLC Simatic 1500 and the use of Siemens TIA Portal was
described.
● Practical example of integrating Simatic with other industrial PLC’s was
presented.
● Data communication between Simatic and KepServer was presented.
Thank You
- Karthik Muthineni
CoResearcher
Center for Cyber Physical Systems
National Electronics and Computer Technology Center
Thailand

Siemens PLC Control

  • 1.
  • 2.
    Agenda ● Hardware Description ●TIA Portal Usage ● Tasks Executed ○ S7-1500 - Dell Edge Gateway - NETPIE ○ S7-1500 - KEPServer
  • 3.
    Overview Communication Configure Programming Deploy ● SiemensTIA Portal ● Ladder Program ● Ethernet Cable ● Download to device
  • 4.
    S7-1500 ● Consist ofCPU 1512C-1PN ● Has Profinet Interface with two ports (P1 R and P2 R) ● Integrated with Web Server and OPC Server ● Consist of two modes ○ RUN mode ○ STOP Mode ● Memory card slot to insert Simatic Memory card for storing user programs
  • 5.
    Analog and DigitalBoards ● Analog I/O board (X10) ○ 5 Analog Inputs ○ 2 Analog Outputs ○ Voltage and Current output selectable ● Digital I/O board (X11 and X12) ○ 32 Digital Inputs ○ 32 Digital Outputs ○ Output Voltage 24V DC
  • 6.
    Memory Address Address Spaceof Analog I/O Board Address Space of Digital I/O Board
  • 7.
    TIA Portal 1. Portalsfor different tasks 2. Actions for selected portal 3. Selected panel for selected action 4. Switch to project view 5. Display of project that is Currently opened
  • 8.
    TIA Portal 1. MenuBar 2. Tool Bar 3. Project Tree 4. Work Area 5. Task Cards 6. Details View 7. Inspector Window 8. Switch to Portal View
  • 9.
    Create Program ● OrganizationBlocks Main[0B1] are automatically created once you open a project in TIA Portal. ● Once the S7-1500 has initialised, the OS will first execute program in Organization Block.
  • 10.
    Organization Block 1. ToolBar 2. Block Interface 3. Favourites Pane 4. Instruction Window 5. Instruction Pane 6. Extended Instructions 7. Instructions Task Card 8. Testing Task Card
  • 11.
    LAD Instructions ● NormallyOpen Contact: Current flows through the circuit when the input tag signal state in “1”, otherwise no current flows through the circuit for “0”. ● Negated Coil: It inverts the signal state. ● Output Coil: It is used to set the bit of a specified tag. ● Box: Boxes are elements of LAB with complex functions.
  • 12.
    PLC Tags ● ThePLC tags are used to supply the instructions with values and the instructions are executed depending on these values. ● A PLC tag is made up of the following components ○ NAME: For representing a TAG of a PLC. ○ DATA TYPE: Defines the value representation and the permitted value range. ○ ADDRESS: Defines the memory area from which the tag reads or writes a value.
  • 13.
  • 14.
  • 15.
    Tasks Executed (A) ●OPC UA communication between S7-1500 and Dell Edge Gateway ○ Data upload to NETPIE ● S7-1500 comes with OPC UA Server pre-built, which is to be enabled using TIA Portal and Dell Edge Gateway is used as OPC Client that requests data from OPC Server. ● In this work, OPC Client reads the Analog Voltage of S7 using OPC Communication.
  • 16.
    Tasks Executed (A)Cont’d Activate OPC UA Server on S7-1500
  • 17.
    Tasks Executed (A)Cont’d ● DataLogCreate Instruction Is used to create a file. ● DataLogWrite is used to write The data into newly created File. ● Drag and Drop above two Instructions in Network area.
  • 18.
    Tasks Executed (A)Cont’d ● REQ – Request is like condition to execute the function block. It is of BOOLEAN Type. ● RECORDS – It is the maximum number of records in the data file. By default it is 1. ● NAME – Representation. ● ID – Unique value. ● HEADER – It is the name of column in your data file. ● DATA – Type of data that you want to create/store. ● DONE, BUSY, ERROR, STATUS – These are used for troubleshooting
  • 19.
  • 20.
    Tasks Executed (A)Cont’d ● MIN – Represents minimum value. ● Value – Pin number to be read. Here we are reading voltage of Analog Input 0. ● MAX – Represents maximum value that pin can have. ● OUT – Represents the memory location for storing the value.
  • 21.
    Tasks Executed (A)Cont’d ● EN – Moves the value for every 1second. ● IN – Here we have assigned output of NORM_X. ● OUT1 – Stores the value in the Log file at current voltage address that we have created earlier..
  • 22.
    Tasks Executed (A)Cont’d Dell Edge Gateway as OPC Client
  • 23.
    Tasks Executed (A)Cont’d Integrated Web Server
  • 24.
  • 25.
    Tasks Executed (B) ●Data exchange between S7-1500 and KEPServer (OPC) ○ The Analog and Digital pins voltage status/value will be transferred to the Kepserver.
  • 26.
    Tasks Executed (B)Cont’d Configure parameters on KEPServer ● Channel: It is a representation of communication medium. For example, for serial driver it would be serial port and for Ethernet driver it would be TCP/IP socket created to send TCP/IP messages to a remote device. ● Device: Represents the hardware that you are talking on the channel. ● Tag: Represents the type of data that you want to read from the device.
  • 27.
    Tasks Executed (B)Cont’d Channel Device Creating Tag
  • 28.
    Summary ● The useof Industrial PLC Simatic 1500 and the use of Siemens TIA Portal was described. ● Practical example of integrating Simatic with other industrial PLC’s was presented. ● Data communication between Simatic and KepServer was presented.
  • 29.
    Thank You - KarthikMuthineni CoResearcher Center for Cyber Physical Systems National Electronics and Computer Technology Center Thailand