| Products > Programming |
| TIOBE Index of programming languages |
| << < (26/26) |
| Siwastaja:
--- Quote from: Picuino on Yesterday at 02:51:59 pm ---I didn't choose Python because... --- End quote --- Wait a minute, you chose Python? What does this even mean? Chose for what, to do what? |
| Picuino:
At that time I had to validate a program written with visual blocks to control hundreds of emergency stop buttons. Being visual programming, the program was done manually and validated manually, so it could have failures due to human error. The fact is that the Siemens visual programming tool used a Pascal-like language (SCL) as an intermediate language to compile later to a PLC. It occurred to me that the SCL code generated automatically by the tool could be used to validate that all signals ended up generating a safety stop. This involved interpreting the code written in high-level SCL language to apply several validation tests to rule out errors that might have been missed in the visual and field tests. I wrote the code validation program in Python with a tendency to be very sensitive to any errors and report them. The result was a long list of errors that we had to subsequently validate manually. Most were due to non-standard cases, but they worked fine. We also found a couple of signal connection errors that had been overlooked, which thanks to the Python validation program we were able to correct. So the first application I used Python for was SCL code validation for a safety PLC. SCL: https://en.wikipedia.org/wiki/Structured_Control_Language PLC: https://en.wikipedia.org/wiki/Programmable_logic_controller |
| Picuino:
At first I tried to make the tool with AWK, which I already knew, but AWK was not powerful enough. Then I considered switching to Perl, but after struggling several days with this language, a colleague recommended me to talk to the team in charge of summarizing and presenting the daily commissioning data, which was using Python. After talking to them they convinced me and I ended up choosing Python to develop the validation program. Attached is the popularity index of that time. https://web.archive.org/web/20040605110328/http://www.tiobe.com/ |
| Navigation |
| Message Index |
| Previous page |