By programming inside user sub-sequencer I have put PLC to stop.
How is made:
- I am having PB 1 from where I am calling FB 1 which is like switch to PB 161, 162, 163...
- From PB161, 162, 163... I am calling FB 70 - main sequencer
- FB 70 having parameter SBNR which means which SB to call - it is like this - from PB 161 call of FB 70 with parameter SBNR: 161 - is call of SB161
- inside of SB 161 in one of the step I have wrote:
C DB 204
L KF +0
T DW 38
...
then in the next step I have wrote:
C DB 204
L KF +1000
T DW 38
When started this SB PLC gone to the stop. I suppose, I don´t know something what I can not do inside of sub-sequencer.
Please, should someone help me to understand what is going on? Thank you.
How is made:
- I am having PB 1 from where I am calling FB 1 which is like switch to PB 161, 162, 163...
- From PB161, 162, 163... I am calling FB 70 - main sequencer
- FB 70 having parameter SBNR which means which SB to call - it is like this - from PB 161 call of FB 70 with parameter SBNR: 161 - is call of SB161
- inside of SB 161 in one of the step I have wrote:
C DB 204
L KF +0
T DW 38
...
then in the next step I have wrote:
C DB 204
L KF +1000
T DW 38
When started this SB PLC gone to the stop. I suppose, I don´t know something what I can not do inside of sub-sequencer.
Please, should someone help me to understand what is going on? Thank you.