They can be programmed with Structured Text and you can start already now with the Siemens S7-1200 Starter Kit, which is also a great kit to get you introduced to the Siemens PLC environment.ĭon’t forget to check out my reviews of the best PLC programming courses. Probably the most common PLC (in Europe at least) is the Siemens S7 PLC’s. The fact that this is a standardized programming language also gives us the option to program different PLC brands with Structured Text. You can even have function blocks containing functions written in Structured Text.
#Siemens step 7 counter example code
You can, for example, scale a PLC analog input or output with just one line of code or set an alarm for your SCADA system solution.Īnother advantage is that you can combine different programming languages. By using a text-based PLC programming language, your program will take up much smaller space, and the flow/logic will be easier to read and understand. But in my opinion, that is only true for smaller PLC programs. The programming language is text-based, compared to the graphics-based ladder diagram or Function Block Diagram.Īt first, it may seem better to use a graphical programming language for PLC programming. Structured Text is PLC programming language defined by PLCOpen in IEC 61131-3.
So, what might seem easy to learn (especially for technicians and electricians) is not always the best thing to program in. It can be almost impossible to find head and tail in a larger PLC program written in ladder logic. That’s why some consider Structured Text to be a better PLC programming language – and you can learn all about it in this tutorial. The truth is, that even though ladder logic is an easy programming language for beginners, it can be very hard to read and understand. 0.Do you also struggle reading your own and other huge ladder diagrams?
The Communication with PLC Logo! is by ETHERNET (TCP/IP) you should change your Sub-network number in your computer, remember Logo! comes with 192.168. NO, However both use same block, the diferences are the connections in the block and the form to use those Up starts to count +1, and Down Count in -1, to see it GO STEP 2įirst you need your Counter Block C00x the Output will activate when the Counter reach the Defined Value then you must take a Open/Closed Contact in the Side and add the Name of Counter (C00x), REMEMBER the form use a Up Counters VS Down Counter is Very diferent STEP 2
#Siemens step 7 counter example software