Matchu04
Lifetime Supporting Member
Afternoon Guys / girls
Im not sure if this is seiemens specific but today I was going through some code in S7 trying to determine how a beer flow was measured on this machine and I stumbled across a instruction that I dont understand what its doing. I cant post the code as I forgot to get a screen shot but I can explain.
The instruction in question was;
L STW
I understand that its loading the status word into the ACCUM but then its shifting 4 places, which normally is to convert to a pointer, but am I missing something here?? I was under the inpression the status word was a status not an adress.. Could someone clarify this for me.
Regards
Matt
Im not sure if this is seiemens specific but today I was going through some code in S7 trying to determine how a beer flow was measured on this machine and I stumbled across a instruction that I dont understand what its doing. I cant post the code as I forgot to get a screen shot but I can explain.
The instruction in question was;
L STW
I understand that its loading the status word into the ACCUM but then its shifting 4 places, which normally is to convert to a pointer, but am I missing something here?? I was under the inpression the status word was a status not an adress.. Could someone clarify this for me.
Regards
Matt