Ladder to STL conversion...

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
laddd.JPG


BLD 103 is from the conversion.
= L 4.1, also this, it's first writing to locals ??? why ?

Is it possible to write like this:

CALL FC 41
SETP_Hz :=0.000000e+000
FW_RUN :=L4.0
RV_RUN :=M0.0
RST :=M0.0
MOP_UP :=I1.4
MOP_DOWN :=I1.3
STAT_WORD :=PIW284
ACTUAL_VAL:=PIW286
FLT :=#MemoryByte.FAULT
CTRL_W :=PQW284
SETP_Int :=PQW286

The FW_RUN is still with a local because their is logic written before it has to be connected to FW_RUN
 
As the original code was created in ladder, the ladder editor uses local variables to evaluate the logic of any non-trivial rungs to pass the boolean value to a function/function block. If you are going to call the FC in STL, I would not use the auto created locals but create you own named variables and use these as the parameters instead.
 

Similar Topics

I want to convert program written in stl to ladder.Sometimes it is failing as the programmer do not write nop statement in code.İs there a...
Replies
3
Views
4,733
Hello guys. I need some help trying to rewrite some STL code into Ladder so i can try to understand whats going on. I struggle to watch the RLO...
Replies
13
Views
6,525
Hi everbody I know only ladder programming in S7 200 and S7 300; but during analysis of STL code I face lot of problems. Can anybody help me to...
Replies
6
Views
10,906
Hi, Anyone know why this network is not longer shown in LAD format but only in STL ? O "RB 20878".EinfV O "RB 20878".EinfR...
Replies
11
Views
2,527
Hi people, could any one tell me if i have converted this STL code correctly A M 30.7 O M 31.0 A M 105.7...
Replies
3
Views
1,468
Back
Top Bottom