mosama Member Join Date May 2009 Location Egypt Posts 182 Nov 12, 2011 #1 Dear all, Is there a bit that indicates warm restart of S7300 CPU ?? If I should make a program in OB100 that gives me this bit, what could be this small program ?? Thank you
Dear all, Is there a bit that indicates warm restart of S7300 CPU ?? If I should make a program in OB100 that gives me this bit, what could be this small program ?? Thank you
KalleOlsen Member K Join Date Oct 2008 Location Norway (moustache area) Posts 1,782 Nov 12, 2011 #2 Are you thinking of something like this? In OB100: SET S MyOB100RestartFlag ... and end of OB1: SET R MyOB100RestartFlag Kalle
Are you thinking of something like this? In OB100: SET S MyOB100RestartFlag ... and end of OB1: SET R MyOB100RestartFlag Kalle
mosama Member OP Join Date May 2009 Location Egypt Posts 182 Nov 12, 2011 #3 Great, thank you. I think you mean RESET at the end of OB1.
TurpoUrpo Lifetime Supporting Member T Join Date May 2008 Location Switzerland Posts 1,571 Nov 12, 2011 #4 No he did not. Code: SET //sets RLO to true R MyRestartBit //resets MyRestartBit if RLO is true. Last edited: Nov 12, 2011
mosama Member OP Join Date May 2009 Location Egypt Posts 182 Nov 12, 2011 #5 Why do I need to SET RLO to true ??
TurpoUrpo Lifetime Supporting Member T Join Date May 2008 Location Switzerland Posts 1,571 Nov 12, 2011 #6 TurpoUrpo said: No he did not. Code: SET //sets RLO to true [B]R MyRestartBit //resets MyRestartBit if RLO is true.[/B] Click to expand...
TurpoUrpo said: No he did not. Code: SET //sets RLO to true [B]R MyRestartBit //resets MyRestartBit if RLO is true.[/B] Click to expand...
mosama Member OP Join Date May 2009 Location Egypt Posts 182 Nov 12, 2011 #7 Thank you. But why I can't use reset without setting RLO ??
L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,698 Nov 12, 2011 #8 Read the help on the Reset instruction.
KalleOlsen Member K Join Date Oct 2008 Location Norway (moustache area) Posts 1,782 Nov 12, 2011 #9 S and R are conditional instructions, RLO dependant. Perhaps you confuse it with Step5 and the SU / RU instructions? It would perhaps be clearer if written as this OB100: SET = MyBit OB1: CLR = MyBit Kalle
S and R are conditional instructions, RLO dependant. Perhaps you confuse it with Step5 and the SU / RU instructions? It would perhaps be clearer if written as this OB100: SET = MyBit OB1: CLR = MyBit Kalle