Siemens s5 stl help

Themechtec

Member
Join Date
Oct 2016
Location
Cincinnati, Oh
Posts
6
Hello,
I am working on a project to upgrade some old S5-100U processors. The programs are all uploaded and I don't have descriptors...ugh. Be that as it may, I'm hoping someone can help me translate the following code to a ladder format:
:L DW10
:L KF0
:!=F
:= F67.1
Thanks,
 
It is a compare so somewhere there will be a call to a Datablock.
So
L DW 10 /// Load the VALUE from DW 10 (16 bit)
L KF 0 // Load 0 (Integer)
=F // compare integer for equal to
= F 67.1 // if DW10 is 0 then it turns on F 67.1

so it is an integer compare for equal.
Note: if there are more than one datablock then everytime a DW (dataword) is used then the last call to DBxx determines which datablock is active.

So C DB 1 Call Datablock 1
L DW 2 Load the dataword in DB1
C DB 3 Call Datablock 3
L DW 4 load the dataword in DB3
 
No idea, it must be just the way Siemens determine a compare instruction type i.e.
!=F is equal
< F is Less thn
>F Greater than
!=G is floating point

so
F is fixed point or integer
G is Floating point
KH is Hex
KM is a bit pattern
All above are 16 bit
!=D is fixed point 32 bit (double word).

Here is the manual for the 135/155 processor, although most of the instructions work for all their S5 range obviously the smaller 115/95u etc. may have a smaller list of instructions

https://cache.industry.siemens.com/dl/files/150/1086150/att_1992/v1/948then.pdf
 

Similar Topics

I really struggle with STL in Siemens Step 7 Classic. I'll learn chunks, but then I don't use it enough to retain and build on the knowledge. When...
Replies
17
Views
3,226
I need some assistance to any Siemens Gurus' who can help me convert the following from STL to Lad. I have tried all the old tricks I can...
Replies
4
Views
4,311
Hello all. I am a newbie when it comes to Siemens and I have looked in the STL programming help but there are some things that isn't explained...
Replies
11
Views
3,036
Hi All, I am a ladder programmer but I have to reverse engineer some STL code. I can't figure out this part. Can anyone help me translate this...
Replies
5
Views
1,670
Hi, I have been given the task of implementing some limited changes to an existing Siemens S7-300 application. The program was created around...
Replies
16
Views
19,234
Back
Top Bottom