Step 7 SCL - help

Do it in ladder.
Is that because of the way I have presented it? (STL instead of SCL ?)


Also, looking through some of the other blocks this is at the top:
compiled by SCL compiler version: SCLCOMP K05.03.07.00_01.02.00.01 release
Am I correct in assuming that this is because the block was uploaded direct, but as the original source for this block was not on this PC it is just the raw code?
 
Last edited:
...

Is that because of the way I have presented it? (STL instead of SCL ?) LAD will be understood by a wider audience


Also, looking through some of the other blocks this is at the top:

Am I correct in assuming that this is because the block was uploaded direct, but as the original source for this block was not on this PC it is just the raw code? Correct
 
ok team, how can I do a simple comparison to check if a value is between 2x values?
I've managed to hack this together which appears to work but have no idea if it any good or not?
I think ladder is by far much easier in this instance to follow though?




It seems the help is quite good in explaining some things!


If you really need and want learn to code it on STL, then on old step7 5.x.
Code first your comparision with ladder. After that select view -> STL. Step7 converts your LAD or FBD to STL coding.


Ladder on attachment is this on STL





A(
L MW 300
L 100
>=I
)
A(
L MW 300
L 200
<=I
)
JNB _001
L 10
T MW 302
_001: NOP 0







Siemens_compare_LAD.jpg
 

Similar Topics

Hello, what is wrong with the program like below to write 100 to DB81.DW24? %DB81.DW(IDX :=24) := 100; Or how should I write the program...
Replies
16
Views
5,070
I have made a small FB in SCL, in this blok i have to transfer to an array in a certan position, but I can't get it to work. It goes as follows...
Replies
6
Views
6,543
Help!! From reading previous threads, I know that the best way to index an array is using SCL. I have the SCL editor, I'm just not sure where to...
Replies
3
Views
4,249
I am logging real numbers into arrays in SCL. I am using these for buffer bit trends in WinCC Flexible. I need to cut some digits out. Some of the...
Replies
15
Views
13,210
Hi guys, i was trying to make a program in simatic step 7 with which i could with the useing of a switch choose between automatic, manual and step...
Replies
0
Views
4,644
Back
Top Bottom