How can I find a program example .it will be supply that a FB have got three inputs.One of them MW2 (Data block name) the other mw4 ( data block length) and last input is enable.
dw0ointer of m0.0
dw2:time1
dw4ointer of m0.1
dw6:time2
dw8ointer of m0.2
dw10:time3
dw12ointer of m0.3
..etc
dw40ointer of m1.2
Let say mw2=10,mw4=40 ,when program is run by enable input ,plc must ( including pointer of m1.2 )firstly m1.2 set in dw40 after one cycle (including pointer of m1.1) m1.1 set in dw36.program is finished at DW0.that is m0.0 is set.thanks..
dw0ointer of m0.0
dw2:time1
dw4ointer of m0.1
dw6:time2
dw8ointer of m0.2
dw10:time3
dw12ointer of m0.3
..etc
dw40ointer of m1.2
Let say mw2=10,mw4=40 ,when program is run by enable input ,plc must ( including pointer of m1.2 )firstly m1.2 set in dw40 after one cycle (including pointer of m1.1) m1.1 set in dw36.program is finished at DW0.that is m0.0 is set.thanks..