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)

177 questions
-1
votes
1 answer

s7.NET error tryind to read or write a var in vb.net

When i try to read some value appear de error on image... I already tried diferent ways and the result it´s all time the same(comment lines). How i can read a value in vb.net and s7.1200? thanks error vb.net Option Strict Off Option Explicit…
Colatra93
  • 1
  • 3
-1
votes
1 answer

I am reading floating point values from a PLC's 32 bit memory area as (they would be) Integer values. How can I convert this Integer to Single in C#?

I am reading values from a S7-300 PLC with my c# code. When the values are in INT format there is no problem. But there are some 32 bit memory areas (Double Words) that are encoded in IEEE 754 Floating-Point standart. (First bit is sign bit, the…
Mdarende
  • 469
  • 3
  • 13
-1
votes
1 answer

How do i write a way to "backspace" a line in a text document

Im creating scripts in WinCC unified where javascript is used, i have some code which finds specific 3 lines in a text file and deletes the values there, it works but i wish to also basicaly delete the whole line, as if you were to press backspace…
Pavel
  • 1
  • 1
-1
votes
1 answer

C# - Call C DLL function synchronous

I'm trying to call a dll function in C# with a paramter that is mentioned in the documentation as "...If pfn = NULL is passed, the call is synchronous. ". I'm actually passing NULL (IntPtr.Zero) to it, so the method should be called synchronous. Now…
-1
votes
4 answers

How connect an OPC UA server to a PLC?

I have a PLC Siemens s7-1500 that did not include the license for the OPC-UA server, in consequence I'm trying to look for alternatives because I need to link this PLC information to an OPC-UA server than will be then consulted by another OPC-UA…
alejovelez41
  • 3
  • 1
  • 3
-1
votes
2 answers

how S7-1500 OPC UA server communicates with custom client

I'm little bit confused regarding how S7-1500 embeded OPC UA server communication works in case of a custom client installed on PC since all examples I've seen so far include a Simatic PC Station as OPC server!!! On PLC side, I have S7-1511-1PN with…
Manser Dimor
  • 21
  • 2
  • 8
-2
votes
1 answer

Pass value two textbox's from one variable value

I have an encoder connected from Siemens PLC with data block "DB1.DBD56". My problem is, the two textbox has the same result or value. Scenario: Read Before 1seconds and Read After 1seconds I want the result like this: [For…
GMK
  • 1
  • 2
-2
votes
1 answer

What is the reference to use "using Siemens.Simatic.Simulation.Runtime;" ? C#

I actually need to create an instance on Siemens PLCSim Advanced (a virtual network simulator) and I need to use : using Siemens.Simatic.Simulation.Runtime; void button1.click() { IInstance myInstance =…
-2
votes
1 answer

How to simulate a movement in my HMI (TP700 Comfort)

Hello I'm new here so sorry about that. I have a project where I have to write a program for a car wash with Siemens TIA V16. I want to visually simulate this program with my HMI (TP700 Comfort). Whats the best way to convert my vars so that i can…
Huskey
  • 1
  • 1
-3
votes
1 answer

C# and Siemens PLC communication

Does anyone know a C# read data command will take place in which step of PLC cycle? The PLC process steps are: The operating system starts the scan cycle monitoring time. The CPU writes the values from the process-image output table in the output…
Sara J
  • 3
  • 3
-6
votes
4 answers

Siemens PLC programming best practices

My question is pretty simple. Is there any useful place for learning to work with Siemens PLCs?
Ferid Š. Sejdović
  • 998
  • 4
  • 18
  • 48
1 2 3
11
12