Hello Ihor ;-)
I earlier asked you about generating generic ANSI-C source...
http://cq.cx/ladder-forum.pl?a...;parent=6643&tt=1508472418
Meanwhile a friend showd me, that this ist done, if you chose "(no microcontroller)" in the settings and then execute "Compile ANSIC"... You then get a C-source only containing the functions PlcCycle(), setupPlc(), mainPlc(), and main() and no functions like UART_Init(), UART_Transmit() etc.
It would be easier, if the main() could be swiched off by surrounding with eg #ifndef main_EXTERNAL ... #endif, but i think the main() function could be cut-out easily by a tool like AWK... Or one could compile the generated C-source to al library and link it with an other main() function.
So Thanks for this ;-) Perhaps you implement the #ifndef main_EXTERNAL ... #endif anyway? ;)
In the thread
http://cq.cx/ladder-forum.pl?a...;parent=6612&tt=1507826287
and in the manual.txt you told, that the size of variables since v4.3.0 could be choosed as 1..4 bytes...
I nowhere found (in the manual.txt / forum / wiki), how to chose the size...
Meanwhile, i found it out by random: One just has to double-click the variable in the variables-window below the ladder-editor to change the size! :-)
Perhaps add this information to the manual.txt and the wiki ;-)
Regards and once again many thanks! ;-)