Does anyone has experience with Mitsubishi STL programming? I have a problem which I exemplify with the following example:
0 |-|m8002|-------------------[SET S0]-|
3 |-STL S0|----|^X0|--------[SET S20]-|
7 |-STL S20|---|^X1|-------[SET S21]-|
12 |-STL S21|---|^X1|-------[SET S22]-|
27 |-STL S22|-T-|^X2|-------------(S0]-|
32 | |--------------------[RET]-|
33 |---------------------------------[END]-|
where |^X0| is a LDP (LoaDPulse) instruction.
Turning the RUN/STOP switch to RUN, pressing button X0, program goes to state S20. Pressing X1 once, program goes directly to state S22. Pressing X2, program returns to state S0.
Pressing X1, program goes to S20, pressing X1 once, program goes to S21, pressing X1 again, program goes to S22, and so on.
In other words, in the first pass through the LD diagram, the first rising pulse of X1 activates both LDP succesive instructions (lines 7 and 12) - program goes directly to line 27, while on second and following passes, LDP succesive instructions are activated separately. The same goes if not only two, but many lines similar to line 7 and 12 are added.
Does anybody knows how to eliminate this different operation of the same diagram?
C.G.Haba
0 |-|m8002|-------------------[SET S0]-|
3 |-STL S0|----|^X0|--------[SET S20]-|
7 |-STL S20|---|^X1|-------[SET S21]-|
12 |-STL S21|---|^X1|-------[SET S22]-|
27 |-STL S22|-T-|^X2|-------------(S0]-|
32 | |--------------------[RET]-|
33 |---------------------------------[END]-|
where |^X0| is a LDP (LoaDPulse) instruction.
Turning the RUN/STOP switch to RUN, pressing button X0, program goes to state S20. Pressing X1 once, program goes directly to state S22. Pressing X2, program returns to state S0.
Pressing X1, program goes to S20, pressing X1 once, program goes to S21, pressing X1 again, program goes to S22, and so on.
In other words, in the first pass through the LD diagram, the first rising pulse of X1 activates both LDP succesive instructions (lines 7 and 12) - program goes directly to line 27, while on second and following passes, LDP succesive instructions are activated separately. The same goes if not only two, but many lines similar to line 7 and 12 are added.
Does anybody knows how to eliminate this different operation of the same diagram?
C.G.Haba