S5 S flags?

geniusintraining

Lifetime Supporting Member + Moderator
Join Date
Jun 2005
Location
SC
Posts
8,274
I did not want to hijack Paul's thread... I have several S5135's some 928's and some 943's CPU's, but the programmer did not use any S flag's, are they any different than the F flag's.

Simon referred to them and said that they would work in a 928, so just for kicks I put one in a 943 and it appears to be working

Would the difference be just be for description purposes?

Thanks,
 
SimonGoldsworthy said:
I think you can only refer to them in FB's so they are not quite interchangeable with F flags.

Not so sure that is true Simon,

As I mentioned in the other thread that Mark linked to, we do use S flags and I am pretty sure that they are referenced and set within PB's and they behave in the same way as F flags.

We mainly use them to 'interact' between the DB that holds the information from WinCC and the main program, by that I mean the WinCC writes to a DB, the DB bits control the S flags, then the S flags are used within the program as per normal,

Paul
 
The CPU 928B has 8192 S Flags in total.
S 0.0 to S 1023.7

Different CPU's have a different number of S Flags; the CPU 948R range is S 0.0 to S 4095.7.

The S flag can be accesed the same as the F Flag range but cannot be used as actual operands with function bock calls or for IPC flags etc.

Hope this helps
 
The early S5's, 150u's and 115u's only had F flags, not sure if early 135u's were any different.

When 155u's came out they had bigger memory (150u's were restricted to 48K :unsure: ), so Siemens created another flag memory area which expanded the flags available, the S flags. They couldn't expand the the original flag area beyond the 256 bytes, can't remember why.

Long time, at least 10 years since I played with S5 but I'm sure S flags could be used anywhere, maybe wrong there though.
 
We have a program running in a 948 referencing S flags and SY flags. Does anyone know what the SY flags are? Same as S flags?


Thanks
 
The big difference is that S flag's are not remanent like the F flags. S Flags loose their value after a CPU stop or power-down, while F Flags don't (at least not all, depending on CPU type and settings). 'S' comes from the German word 'Schmier' which can be used like 'clipboard'. It's temporary, but not comparable with the L-area from S7.
 
Fyi

FYI...A 'S' flag in a 115u 943 (FB)...Will crash the CPU...Trust me Opps, now when is that undo button???
 
:nodi: probably, unless its changed in the 10 years since I last programmed a 115u, there are no 'S' flags in 115u's.

The programming package will let you do though as its a standard packege for all S5's, it relies on you knowing what the CPU can and cant do.:eek: o_O
 

Similar Topics

New to these forums, I tried searching for this but couldn't find it. I'm finding this situation frequently in this program I'm converting. As...
Replies
16
Views
1,461
Hello. I am working on LogixPro Door Simulator Exercise 4, where you have to program the door to stop going up if the close button is pressed...
Replies
23
Views
3,624
Hello all, recently i have been using some practical lab examples to brush up on my programming abilities. What i have noticed is that although my...
Replies
3
Views
1,401
Hi All. Yes, I know I'm just adding to the vast bulk of pid questions but searching through them was becoming a pain. Quote from the help file...
Replies
1
Views
2,644
Hi All, Have just registered so this is my first post. I have a question relating to the best or easiest method of handling error messages arising...
Replies
1
Views
2,432
Back
Top Bottom