Siemens STL to Allen bradley Structure text conversion

Join Date
Dec 2019
Location
Hansi
Posts
13
Hello Experts,

I hope everyone is safe and healthy!!

Below mentioned Siemens code is in STL i have to write it in Structure text in Allen bradley. my question is what instruction shall i use in AB Structure text in place of

ITB:(integer to BCD)
OD: OR logic operation double word by double word.

i have also attached Siemens Code in STL.

Capture.JPG
 
Siemens called Structured Text "SCL". STL doesn't really map to ST very well. I'd really recommend rethinking the code instead of blindly copying it.

My question is do you REALLY need the BCD?
 
TOD instruction converts 16-bit integer to BCD. Not sure if its available in structured text, you'll have to check.
EDIT: I checked, it's not available as ST Instruction.
 
Last edited:
Thanks for the quick response.
@mk42 yes i need BCD function in ST.

there must be some way to do Integer to BCD conversion in Allen bradley ST.
 

Similar Topics

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
667
I'm having trouble trying to convert this code to ladder, anyone able to help me? A M4.0 A M4.1 A M117.0 AN M17.7 A ( A I38.6 AN I3.7 O ( A M4.5...
Replies
8
Views
1,206
Hello, I am still new to STL. But from what I understand is the JC mnemonic should jump if RLO = 1. If we review both pictures the M0bf RLO = 1...
Replies
5
Views
1,051
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...
Replies
4
Views
1,163
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,212
Back
Top Bottom