"TB" in S5 STL?

Johnny T

Member
Join Date
Jul 2003
Location
Fife, Scotland
Posts
642
Hi and Happy New Year to you all,

I'm converting some software from S5 to S7 and have come across the following code:

C DB120
TB D 3.0
JC =M002
... etc

I don't know what the equivalent of TB is in S7.. I don't even know what the command TB is doing? Has anyone any ideas of what the equivalent S7 code would be to this?

Many thanks for any light you can shed on this.

Cheers

JT ;-)
 
Why is D3.0 == DBX7.0 ?

I assume you mean that D3.0 is referring to word 6 in S7?

If so would it not be D3.0 == D6.0 ?

Thanks for your patience ;-)
 
For reference, the conversions from Step 5 to Step 7 are as follows:

DL n == DBB 2n
DR n == DBB 2n+1
DW n == DBW 2n
DD n == DBD 2n
d n.0..7 == DBX 2n+1.0..7
d n.8..15 == DBX 2n.0..7
 
Last edited:
Ahhh... I see...


So.. for it to be DBX 6.0 it would be D 3.8 ...

That's cleared a lot of things up.

You're help is very much appreciated.

Cheers

;-)
 

Similar Topics

i am new to simatic manager and i am trying to figure what this part do in the code : A I 5.6 = DB50.DBX 4.6...
Replies
3
Views
130
Hello everyone, can anyone help me with covert the STL code to ladder. Iam using plc s71200. A %DB1.DBX33.7 // angel of vaccum...
Replies
2
Views
208
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
316
First off thank you in advance. Second I am very new to STL. I am trying to build a counter that has one count up and 23 count down options. Am...
Replies
6
Views
370
Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
671
Back
Top Bottom