Questions tagged [siemens]

Tag for questions about Siemens informatics products such as the programmable logic controller (PLC)

Siemens develops electronic embedded systems, devices and informatics products such as the programmable logic controller (PLC)

102 questions
13
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,200
  • 1
  • 11
  • 25
9
votes
7 answers

How can I communicate between a Siemens S7-1200 and python?

I am running a process on a S7-1200 plc and I need it to send a start signal to my python script, after the script is done running it needs to send something back to the plc to initiate the next phase. Oh, and it has to be done in ladder. Is there a…
Megimoo
  • 277
  • 1
  • 2
  • 14
8
votes
1 answer

Access Siemens S7-1200 through C# Application

I'm trying to access the Siemens S7-1200 database to set and read tags through a C# executable that I will run on Windows. The intention is to have a desktop app that can establish a connection with a PLC over Wi-Fi / Ethernet. The app will then…
itstudes
  • 219
  • 2
  • 11
6
votes
1 answer

Reading a JSON structure from a web server page on a Siemens S7 1500 PLC

I've been working with HTML and javascript to create graphical web pages to display data from my Siemens S7 1500 PLC. I've been using a $.getJSON command to successfully read values from the PLC when the web page that requests the information is…
Ryan Y
  • 81
  • 1
  • 5
4
votes
1 answer

OPC dll - How to retrieve tags value in bulk

I'm using OPCSiemensDAAutomation dll with C# .NET to retrieve tag's value from OPC Server. I managed to retrieve the values using QueryAvailableProperties() and GetItemProperties(), but the objective is to retrieve 500k tags value per request. I…
4
votes
1 answer

Read/Write S7-1200 bit memory via C#

I am trying to set value on a boolean memory in the S7-1200 CPU, I have used the SNAP7 library but I couldn't get success with it : Result result = new Result(); byte[] Buffer = new byte[26]; Client.DBRead(1, 0, 2, Buffer); result.bArret =…
Erwin Draconis
  • 696
  • 8
  • 19
3
votes
2 answers

libnodave error while reading from Siemens s7-1200 (0x8104)

While checking s7nodave's EPICS device support for S7-1200 I've encountered a problem that refers to libnodave. When I'm try to read any memory address in PLC, IOC console reports an error: epics> 2014/05/19 14:20:41.964 Siemens-PLC error while…
user3653898
  • 31
  • 1
  • 3
2
votes
0 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
  • 21
  • 3
2
votes
1 answer

issue Reading DT (date and time) from opc ua siemens server C#

I'm trying to read the date and time (#DT) from Opc ua Server (Siemens) using opc ua DLLs of unifiedautomation. But i get wrong value: siemens S7 1500 opc ua client DT#2008-10-25-08:12:34.567 --> 17.09.1142…
asdin
  • 31
  • 2
2
votes
2 answers

Converting real data type from Siemens PLC (S7-1200) to be displayed in Visual C# Windows Form

I am trying to read a real value from a Siemens PLC (S7-1200) and display it in Windows Form. I am using the S7.NET library to communicate with the PLC and a TIA Portal V15 to program/Monitor the PLC. I am able to read the particular data block…
Jai Jai
  • 21
  • 4
2
votes
1 answer

Siemens S7-1200: Cannot download datalog

I have problem downloading my datalog. Already make a coding using python to automatically download the datalog everyday. And the coding works on three sites. But, on the fourth site, using the same code, I got an ERROR 404 not found. But, the files…
Mohd Izzar
  • 41
  • 5
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,318
  • 8
  • 26
  • 39
2
votes
2 answers

Reading from S7-1200 PLC with s7.net plus library

I'm trying to read values from S7-1200 PLC using s7.net plus library. When I try to read data from datablocks it returns "WrongVarFormat" message. My code is: using (var plc = new Plc(CpuType.S71200, "192.168.1.17", 0, 0)) { //IP is…
Dnate
  • 21
  • 1
  • 5
2
votes
4 answers

python snap7 windows - can't find snap7 library

i try to install snap7 (to read from a S7-1200) with it's python-snap7 0.4 wrapper but i get always a traceback with the following simple code. from time import sleep import snap7 from snap7.util import * import struct plc =…
Lavalu
  • 83
  • 1
  • 1
  • 8
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
1
2 3 4 5 6 7