The TIA-Portal tag describes the SIMATIC STEP 7 Totally Integrated Automation Portal and is the graphical user interface for the broad range of Siemens PLCs. On this platform you can plan, program, validate, diagnose and control your written PLC program. The device database gives access to basic, advanced and distributed controllers of each generation.
Questions tagged [tia-portal]
39 questions
17
votes
2 answers
Connecting an PLC Siemens S7-1500 to an SQL Server Database
The connection guide is here. I track the guide and do a lot of stuff.
The connection between PLC and SQL server is ok, I've login successfully to SQL.
I can insert to tables, update, and execute store procedures.
But when I run a select query I…

Peyman Majidi
- 1,777
- 2
- 18
- 31
3
votes
1 answer
Why do I get a "VBScript runtime error: Overflow" only when writing to a variable?
I need some assistance from any of the VBScript wizards out there.
I'm currently working on Import/Export functions which are capable of moving data between an SD card local to an industrial PLC, and a USB local to an HMI (control panel). This is…

Robot Fox
- 63
- 6
2
votes
1 answer
Question about ip Adresse of mosquitto Broker
I have a problem with the ip address of the mosquitto Broker. Currently I'm trying to get mosquitto Broker running locally. I used Siemens PLCSIM Virtual Ethernet Adapter as connection and set its ip address to 192.168.0.10. The version of mosquitto…

Xiang
- 41
- 1
- 4
2
votes
1 answer
S71200 LSQL-Microsoft, Datatype changed, after copying Function Block - How do I fix this?
I am integrating SQL-Connection to one or our existing Siemens S7-1200 PLCs right now.
After copying a Function Block from a working project, one of the data types has changed and is causing trouble now.
Original:
Copied FB:
Does anybody know, how…

nico25
- 73
- 6
2
votes
2 answers
How to set I/O values in siemens PLC Device?
I am creating a Web API for a local network in the .net framework(C#). In that user can import/export IO Tags from excel or set them as a static string array. I have added (Siemens.Engineering.Hmi.dll) but still, it shows a not found compile-time…

Dot Net
- 31
- 3
2
votes
2 answers
S7-1200, Snap7: Exception: CLI : function refused by CPU (Unknown error)
Running below snap7 client script for python using Siemens S7-1200 PLC shows the below common CLI refusal error. What is here the common problem and how to solve it?
Script:
import snap7
from snap7.util import *
import struct
import…

ZF007
- 3,708
- 8
- 29
- 48
2
votes
1 answer
Siemens S7-1200 PLC LED DI/DO History
Is there a way to review the Digital Input/Digital Output LED light history of a Siemens S7-1200 PLC?
If so, is it through the web portal or through Simatic and can someone point me in the direction of where to find such information?
Thanks - will…

Emko
- 21
- 1
2
votes
1 answer
Siemens S7-1200. TRCV_С. Error code: 893A; Event ID 02:253A
Please, help to solve the problem with communication establishment between PC and 1211C (6ES7-211-1BD30-0XB0 Firmware: V 2.0.2). I feel that I've made a stupid mistake somewhere, but can't figure out where exactly it is.
So, I'm using function…

KrasnokutskiyEA
- 587
- 1
- 6
- 20
1
vote
2 answers
How to create Topology connection using Siemens TIA Openness & Python?
I am trying to automate the hardware configuration in TIA Portal V17 with the help of Python & TIA Openness API. I have created a subnet & connected all the network interfaces to the subnet as shown below:
#creating a list of all found network…

mukara
- 97
- 2
- 14
1
vote
0 answers
TIA Portal Openness - modify project library types
In TIA Portal Openness (API version 16, 17 or 18) - is there a way to edit library types? That is, to modify a library type and release the change as a new version?
Specifically, I wish to modify PLC User Defined Types (UDTs).
using Openness, I have…

Cliff Pennalligen
- 319
- 1
- 9
1
vote
0 answers
Error code 80c6 occurs when tia portal connects to mosquitto broker
I am trying to connect with mosquitto Broker through Tia Portal. But I got error code 16#80C6. I checked the relevant information, and the error message is "The connection partner cannot be reach (network error)". But still, I don't know how to fix…

Xiang
- 41
- 1
- 4
1
vote
1 answer
How to install GSDML file via Siemens TIA openness API into TIA project?
Updating with very useful info using guidance from mrsargent
I am trying to automate following steps in C# (Visual Studio) with following steps:
run and connect to TIA portal
create project
install GSDML device files
add PLC and single device as…

Ulysses
- 5,616
- 7
- 48
- 84
1
vote
1 answer
PLC S7-1500 SQL-Connection - received data shifted by 1 byte --why?
i´ve been successfully using a S7 1500 PLC in combination with an SQL-Server for quiete some time now.
I set everything up like mentioned here: S7SQL-Guide-Stackoverflow
Today i tried to add a second parameter to my SQL-Query. So I made something…

nico25
- 73
- 6
1
vote
2 answers
How to exchange data between kepserverex and React?
I have a connection between kepserverex with tia portal v15 where I have PlC connected, the connection works correctly and I have the service running on my computer on port 102, the variables are registered in the kepserverex to the siemens PLC. I…

Marco Castillo
- 11
- 1
1
vote
0 answers
WINCC and SQL adding new elemnt in table
I've created a project in WINCC where i create table(examples are at bottom) and then put values of temperature transmiter in it, in cycles of one second. My problem is that after some time new data doesn't go on bottom in table, it goes randomly in…

Milos Buric
- 11
- 1