You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old January 26th, 2006, 09:07 PM   #1
Watt
Member
Thailand

Watt is offline
 
Join Date: Jan 2006
Location: Bangkok
Posts: 23
S5-STL again

Hello anybody.
Im a PLC beginning.I need help form anybody in this board.
I have STL Code but comment it type German.I dont know the STL code
and i can not read comment if possible please help me.What this STL code Mean?

Best Regards
Watt
  Reply With Quote
Old January 26th, 2006, 09:57 PM   #2
Watt
Member
Thailand

Watt is offline
 
Join Date: Jan 2006
Location: Bangkok
Posts: 23
Network 1

:A -DB 50

:

:L -PW 152

:SLW 1

:SRW 4

:T DW 150

:L DW 151

::F

:T DW 46

:

:L -EB 12

:T DW 61

:L KF +5

:<=F

:SPB=M001

:

:L DW 61

:L KF +10

:>=F

:SPB=M001

:

:L DW 61

:B DW 61

:L DW 0

:T DW 5

M001:

:L DW 50

:SLW 4

:T DW 153

:

: L DW 153

: L DW 154

::F

:T DW 155

:

: L DW 155

: L DW 5

:-F

:L DW 140

:+F

:L KF +10

:-F

:T DW 45

:

:L KF+0

:>F

:SPB =M002

:L KF+0

:T DW 45

:

M002 :L DW 45

:L KF +35

:<=F

:SPB =M003

:L KF +35

:T DW 45

:

M003 :

:L DW 160

:L KF +22

:+F

:L DW 162

::F

:T DW 47

:

:L DW 160

:L DW 157

:XF

:T DW 158

:

:L DW 158

:T -PW200

:***

























  Reply With Quote
Old January 27th, 2006, 01:35 AM   #3
jvdcande
Member
Belgium

jvdcande is offline
 
jvdcande's Avatar
 
Join Date: Apr 2002
Location: Menen
Posts: 2,176
Network 1
:A -DB 50 Open what should be DB50
:
:L -PW 152 Load what should be PW 152
:SLW 1 Shift the word left 1 pos (multiply by 2)
:SRW 4 Shift the word right 3 pos (divide by 8)
:T DW 150 Store the result in DW150
:L DW 151 Load DW150
::F Divide
:T DW 46 Store in DW46
:
:L -EB 12 Load what should be IB12
:T DW 61 and copy it to DW51
:L KF +5
:<=F if this is less than or equal to 5
:SPB=M001 jump to M001
:
:L DW 61
:L KF +10
:>=F if DW61 is greater than or equal to 10
:SPB=M001 jump also to M001
: this is only executed if 5 < DW61 < 10
:L DW 61 this instruction is not needed!!
:B DW 61 use DW61 as index
:L DW 0 load DW[DW61]
:T DW 5 store in DW5
M001:
:L DW 50 take DW50
:SLW 4 shift left 4 pos (multiply by 16)
:T DW 153 store in DW153
:
: L DW 153
: L DW 154
::F
:T DW 155 DW155 = DW153 / DW154
:
: L DW 155
: L DW 5
:-F DW155 - DW5
:L DW 140
:+F DW155 - DW5 + DW140
:L KF +10
:-F
:T DW 45 DW45 = DW155 - DW5 + DW140 - 10
:
:L KF+0
:>F if DW45 > 0
:SPB =M002 jump to M002
:L KF+0
:T DW 45 Store 0 in DW45
:
M002 :L DW 45
:L KF +35
:<=F if DW45 >= 35
:SPB =M003 jump to M003
:L KF +35 Store 35 in DW45
:T DW 45
:
M003 : at this point 0 <= DW45 <= 35
:L DW 160
:L KF +22
:+F DW160 +22
:L DW 162
::F
:T DW 47 = (DW160 +22) / DW162
:
:L DW 160
:L DW 157
:XF
:T DW 158 = DW160 * DW157
:
:L DW 158 Store DW158 in what should be PW200
:T -PW200
:***

__________________
Jean Pierre Vandecandelaere
Professional expert industry
VDAB Hoofdbestuur
Gasthuisstraat 31 - 10e verd
B-1000 Brussel
Belgium
  Reply With Quote
Old January 27th, 2006, 01:55 AM   #4
SimonGoldsworthy
Member
United Kingdom

SimonGoldsworthy is offline
 
SimonGoldsworthy's Avatar
 
Join Date: Mar 2005
Location: England
Posts: 1,079
Anyone know of a link to a siemens page that gives the list of operations? I have a little booklet 6ES5997-3UA22 that I use to look up Step 5 instructions.
  Reply With Quote
Old January 27th, 2006, 02:48 AM   #5
PLucas
Member
England

PLucas is offline
 
PLucas's Avatar
 
Join Date: Apr 2002
Location: Gillingham Kent
Posts: 1,743
Simon

I have the booklet for the 115U (6ES5 997-7LA21), which is probably very similar to the one you have.

A search on the Siemens site for part number 6ES5997 turns up a few documents in the manuals section, these are the reference guides for the various S5 CPU's available.

Paul
__________________
There are 10 types of people in this world..
Those who understand binary and those who don't!
  Reply With Quote
Old January 27th, 2006, 03:57 AM   #6
SimonGoldsworthy
Member
United Kingdom

SimonGoldsworthy is offline
 
SimonGoldsworthy's Avatar
 
Join Date: Mar 2005
Location: England
Posts: 1,079
Watt - here is the link to booklet for the list of operations for the 928 CPU.
http://support.automation.siemens.co...3UA22&modelled=
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
S5 STL Help......please Peter_d LIVE PLC Questions And Answers 19 June 28th, 2005 02:09 PM
s5 stl fids LIVE PLC Questions And Answers 3 May 3rd, 2005 08:37 PM
S5 STL instructions!!?? kennyb LIVE PLC Questions And Answers 7 June 12th, 2004 02:07 AM
S5 STL progrmming iainuk100 LIVE PLC Questions And Answers 1 January 21st, 2004 06:36 AM
s5 splitting segmant to be veiwed as ladder from stl craig61 LIVE PLC Questions And Answers 2 October 20th, 2003 02:07 PM


All times are GMT -5. The time now is 12:18 PM.


.