An attempt at translating C-like code to Ladder
[Polish] [456 pages] https://pneumatykanet.pl/wp-content/uploads/2016/11/TWIDO-instrukcja-programowania.pdf
[Polish] [189 pages] http://www.trinics.pl/schneider_electric/telemecanique/Schneider_Telemecanique_Twido_instr_uzytkowania.pdf