Hi,
I've posted quite a few questions in the last 2 weeks or so trying to understand Step 7 .I have a PLC programming background for AB,GE,OMRON,MITSUBISHI.Now in all PLC programming languages there is a bit called "First Scan".By the looks of it Siemens is different again and the HELP is not helpful again.I think if the guys from Siemens could make that help system just a bit more user friendly they would take a good chunk of the market share for themselves as as far as I saw the software is quite powerful but for a newbie like me is very hard as you have to know certain things.It is impossible to find out from the help.Anyway my problem is this:
In have program which works perfectly machine comissioned no problems.However when I turn power off from the machine(and PLC) by the looks of it certain bits from addresses like M0.1,M0.0,MO02 etc stay on when the power is restored.They remember their last state and when the PLC is powered back again I can have strange and unexpected movement if the power was lost when the machine was in a particular state with those control bit on true state.So I will need to reset all those bits on the first scan.When I tried to do this I had the unpleasant surprize to find out that there is no first scan bit but there are a series of OB's you can use but that is unclear as well for me.I did read the help on this and they managed to confuse me totally with all those hot warm cold restarts.I don't even know what they exactly mean.What is happening when you lose power for ex. and then the power comes back?? What kind of restart that will be? Hot? Cold? warm? or it depends where the keyswitch is on that moment??/?
Also let's say if the PLC is in RUN mode when power is lost when is back can I use the OB101 RESTART Block??? If yes do I have to call it from my OB1? Or is executed automatically once for 1 scan ?So I can set a bit M1.1 FOR EX in that OB101 and reset it at the end of OB1?? Do I get it right? Could you help me please.Many thanx
I've posted quite a few questions in the last 2 weeks or so trying to understand Step 7 .I have a PLC programming background for AB,GE,OMRON,MITSUBISHI.Now in all PLC programming languages there is a bit called "First Scan".By the looks of it Siemens is different again and the HELP is not helpful again.I think if the guys from Siemens could make that help system just a bit more user friendly they would take a good chunk of the market share for themselves as as far as I saw the software is quite powerful but for a newbie like me is very hard as you have to know certain things.It is impossible to find out from the help.Anyway my problem is this:
In have program which works perfectly machine comissioned no problems.However when I turn power off from the machine(and PLC) by the looks of it certain bits from addresses like M0.1,M0.0,MO02 etc stay on when the power is restored.They remember their last state and when the PLC is powered back again I can have strange and unexpected movement if the power was lost when the machine was in a particular state with those control bit on true state.So I will need to reset all those bits on the first scan.When I tried to do this I had the unpleasant surprize to find out that there is no first scan bit but there are a series of OB's you can use but that is unclear as well for me.I did read the help on this and they managed to confuse me totally with all those hot warm cold restarts.I don't even know what they exactly mean.What is happening when you lose power for ex. and then the power comes back?? What kind of restart that will be? Hot? Cold? warm? or it depends where the keyswitch is on that moment??/?
Also let's say if the PLC is in RUN mode when power is lost when is back can I use the OB101 RESTART Block??? If yes do I have to call it from my OB1? Or is executed automatically once for 1 scan ?So I can set a bit M1.1 FOR EX in that OB101 and reset it at the end of OB1?? Do I get it right? Could you help me please.Many thanx