For STL professionals?

Grzesiuk

Member
Join Date
Dec 2018
Location
Ukraine
Posts
24
Hi specialists,

So here I bring some interesting interview exercises that has to be done in STL (IL). I've been working with S7-300 but to be honest, I would have some problems to do that in STL. Any of you ready to take a challenge? Making these in Java (in my place) wasn't so difficult, but I would be grateful for any solutions in STL, just for curiosity.

[FONT=&quot]Exercise 1[/FONT]
[FONT=&quot]Perform adding two numbers of type STRING and get result as STRING type[/FONT]


[FONT=&quot]Exercise 2[/FONT]
[FONT=&quot]Split a 3-digit number into 3 single numbers that will be placed in 3 consecutive bytes. Then perform reverse action and build a 3 digit number from three consecutive bytes.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]Exercise 3[/FONT]
[FONT=&quot]Execute „circling 1” in one Word, but the place where you shift a bit is specified by POINTER[/FONT][FONT=&quot][/FONT]
 
Homework ?

Hints:

1. You can call other blocks in STL. Even blocks from the standard library.

2. BCD is your friend.

3. If you shift or rotate the bits in a word, then all bits are shifted/rotated not just one bit. So this one is unanswerable.
 

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
127
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
203
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
314
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
364
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
658
Back
Top Bottom