Siemens S5 code

Plc_User

Member
Join Date
Dec 2005
Location
Belgium
Posts
317
In an upload of an S5 cpu I have following code:
L MW240
L KC SG
!=F
= M250.0

What does the second line (L KC SG)mean?

Thanks
 
In the German version of the software KC stands for 'konstant character'.

This also should explain why 'SG' is used.

KC: constant counter should implicate a number between 0 and 999 if my memory is still OK.
 
SG could be a name for a value in your program, or maybe this is the code inside a block and SG is an input to that block.

I would say this is a compare function, when MW240 is not equal to SG, M250.0 is true.
 
In an upload of an S5 cpu I have following code:
L MW240
L KC SG
!=F
= M250.0

What does the second line (L KC SG)mean?

Thanks

display the value of FW240 in ASCII, and see if 'SG' is displayed.

Been a long time since I used S5, so I can't remember the sequence to list flag words.
 

Similar Topics

Siemens S7/TIA v18: "Remote" updates/bug fixes to PLC code & HMI screens..... Hi, The PLC application I'm working on will soon be delivered to...
Replies
5
Views
577
I thought I was nearly finished on this TIA Portal/s7-1212C project (famous last words)... Up until now, I'd developed the PLC/HMI such that the...
Replies
10
Views
1,515
New to S7. Are the "Network 1/2/3/..." simply individual "rungs" of the ladder or is there more to it than that? Thanks
Replies
2
Views
546
I'm pretty well a 100% GE/Emerson Rx3i programmer, and zero practical experience with Siemens programming. However I have just been given a PDF...
Replies
2
Views
1,588
Hi all, i have a old Siemens S5 project that we want to open up to look at the code, have never used S5 before so what are the steps to open and...
Replies
42
Views
13,430
Back
Top Bottom