thanks for all you work Ihor, i was trying GOSUB, SUBPROG and ENDSUB, i´m new at these, while comparing simualtion from LDMICRO and PROTEUS i´ve seen that it works as i spected in proteus while not in LDMICRO, i think it is due to what you described in:
http://cq.cx/ladder-forum.pl?a...;parent=6233&tt=1493628250
In ldmicro both leds work (led1 for SUBPROG H1 and led2 for SUBPROG H2) even if i call just "SUBPROG H1".