Questions tagged [plc]

PLC (Programmable logic controller) or programmable controller is a digital computer used for automation of electromechanical processes, such as control of machinery on factory assembly lines, amusement rides, or light fixtures.

1091 questions
-2
votes
1 answer

first two numbers after the decimal point

I am a PLC programmer, not a .ASP guy, and don’t know how to write the code for getting the result I need. I have a PLC tag I read for my web display, but I would like to show only the first two numbers after the decimal point. I don’t know if I can…
Vic
  • 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
-3
votes
1 answer

"can only concatenate str (not "bytes") to str" Python to PLC Connection

I was trying to read data from PLC Micro Logics 1400(Allen Bradley) through Python and dump it to MS SQL, then "can only concatenate str (not "bytes") to str" this error occurred while reading data from PLC Micro Logics 1400. I will attach the…
-3
votes
2 answers

How to stop a incrementally moving rectangle at a point not divides Le with the increment?

I have a situation where I have a rectangle that moves in 25 px increments. I need to stop the rectangle when it’s x position is equal to 740. 740 is not dividable by 25 so the x pos will never fall on 740. This increment of 25 is also dynamic and…
-3
votes
4 answers

Does Allen Bradley SLC500 PLC worth to buy in 2017?

I am looking for a plc system for our brewery. I would like buy a second hand PLC with the necessary modules. I have seen the AB SLC500 1747-L542 cpu for a good price (120$) with a lot of modules, but I dont know, if it is new enough for a project.…
-3
votes
1 answer

Read PLC parameters

I need to read all parameters on a data block. I can read Family (like pool, math, control, ...) and mc7 size that show total size of block by moka7 (a java version of snap7), but now, I need to load all parameters inside a data block. On attachment…
Alireza
  • 126
  • 1
  • 14
-3
votes
1 answer

C# Compare INT's in a array to a setpoint and set bits in a array that mirrors the lenght of the first array

int[] arr1 = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; How can I run through this array and check each int in the array against a number(Lets say 5) and if the array int number is less than 5 then set that int to 0 and if the array int number is…
joev
  • 31
  • 2
-4
votes
1 answer

communication between plc and c++

I have a Fatek PLC and I need to use its data in my C++ program which is written in Visual Studio IDE. I want this communication to be double sided, i.e. I want to use C++ program outputs in Fatek PLC and vice versa. How can I make this…
-4
votes
1 answer

Network communication with CP443-1EX11

What is needed to implement a TCP-communication via Fetch/Write to a Siemens S7 PLC with the CP443-1EX11 network processor on the PC side (Windows, C++) using two TCP and two ISO-on-TCP connections?
Trashed
  • 146
  • 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
-7
votes
1 answer

Input mask wildcards in a PLC language, i need to represent 4 characters

How do i use wildcards in my input mask in a PLC language (structured text)? ^^[0-9][0-9][A-Z][2][0] main() { barcodeData = getBarcode(); if (match(barcodeData, "^^[0-1][0-9][2][0][P]*")) {do something } …
teddy
  • 1
  • 2
1 2 3
72
73