Найти в Дзене
Геннадий Антонов

Tesys T - how to convert string logic to graphical format FBD.

Hello, everyone.
Tesys T devices it has a string logic like that. Thous who worked with that, perhups, remeber that software with working with that logic SoMove, can not convert this string logic to FBD.
There is possible to write logic by FBD, however during the uploading this to device, anywhere it will be convert to string format.
During the downloading from device, you also unloading logic in string format, and to convert that in graphical format there is no way.
In a nutshell, someday, I assign a task for myself, to create such convertor from string logic to graphical look - FBD.
In the long run, visual logic considerably better perceiving. Especially when in string logic there is no any comments.
And with upload to device all comments choked out.
No sooner said than done.
Firstly I tried to make it on Python.
In that time it was made just several elements, software generated picture in rastr format JPG. After that I have shown this my collegues. And collegues hit upon ide

Hello, everyone.
Tesys T devices it has a string logic like that.

Tesys T device
Tesys T device
String logic Tesys T without comments
String logic Tesys T without comments
String logic Tesys T with comments
String logic Tesys T with comments

Thous who worked with that, perhups, remeber that software with working with that logic SoMove, can not convert this string logic to FBD.
There is possible to write logic by FBD, however during the uploading this to device, anywhere it will be convert to string format.
During the downloading from device, you also unloading logic in string format, and to convert that in graphical format there is no way.

In a nutshell, someday, I assign a task for myself, to create such convertor from string logic to graphical look - FBD.
In the long run, visual logic considerably better perceiving. Especially when in string logic there is no any comments.
And with upload to device all comments choked out.

No sooner said than done.
Firstly I tried to make it on Python.
In that time it was made just several elements, software generated picture in rastr format JPG.

First version on Python with bitmap JPG
First version on Python with bitmap JPG

After that I have shown this my collegues. And collegues hit upon idea, that it could be better to edit this logic in FBD.
Afterwould, I had a break, there were more important things to think about.
And now, after long time, I decide begin it again.

I decided fully to write this software by C++.
software should be generate vector format file SVG.
This format seems like simple text.

SVG - vector image format, easy editing, like simple text
SVG - vector image format, easy editing, like simple text

That format support most editors vector images.
It could easy open SVG file by usual brauwser.
In the long run, when it was done, I decided to add support standard registers and bits.
So that in the graphical logic, if it used standard registers and bits, software could be to draw text near - desryption about.

Screenshot of part graphical FBD logic, generated by software from string logic
Screenshot of part graphical FBD logic, generated by software from string logic

Description of standard registers and bits, if it were used in logic
Description of standard registers and bits, if it were used in logic

For example I have put two files - logic in text - string format .C and generated by software file .SVG - conversion from string logic to graphical.
Here you could to download this two files.

Tesys_Logic_string_to_FBD_SVG

In order to view and edit SVG file, you can to use any vector editor, for example - Corel Draw. Even any brouser support to view SVG format. Without installation, you can to use open source site
https://editor.method.ac/
Where it could be edit or move drawing with FBD. As well you can export there to bitmap format PNG.

As a bonus I would be suggest for my readers free conversion their logics for Tesys T.
I will wait in comments feedback from your side.
Send me your requests with queries to convert string logic Tesys T to graphical FBD.