I'm a bit confused about STL Load / Transfer Siemens S7...?

uptown47

Lifetime Supporting Member
Join Date
Feb 2008
Location
Over there, next to those boxes
Posts
1,146
Hi all,

I was under the impression that Load and Transfer operate independantly of the RLO ?

If this is the case the following code shouldn't work, but it does...

Code:
A I 0.0
L 20
T MW50
BEC

This code only loads 20 into MW50 if I0.0 is on. However, if the Load was operating independantly of the RLO it would load 20 into MW50 all the time ?

If L and T do look at the RLO before executing, why does the LADder MOVE command of the same code above need to convert to...

Code:
A I0.0
JNB _001
L 20
T MW50
_001: NOP 0

Can anyone explain this to me as I'm getting confused about this.

Many thanks

;-)
 
MW50 must be being loaded with something else after the BEC

The full code is actually:
Code:
A I0.0
L 20
BEC
 
(there's a few networks similar to this loading in different values that represent different fault messages. The next block that is called then has this code).
 
T MW 50

I just truncated it together just to try and make my question clearer.

So, is the L.oad instruction influenced by the RLO ?

Many thanks for all your help LD

Cheers

;-)
 
LOAD/TRANSFER are not influenced by the RLO.

The BEC means that when I20.0 is true the block ends and no transfer to MW50 takes place (assuming this is the only place that MW50 is referenced).
 
I think this is what you really intended:
Code:
      A   I0.0
      JNB _001
      L   20
      T   MW50
      JU  _002
_001: L   0
      T   MW50
_002: NOP 0

In LAD you would have to check for I0.0 twice, with an NO and an NC.
 
Jesper,

Thank you for your clarification.

On a related note. Is this different in S5? i.e. Are Load and Transfer affected by the RLO in S5 ?

The reason I ask is that I'm just looking at an S5 project that has the following code:
Code:
A Q 17.5
L DW 1
T FW 24
 
AN Q 17.5
L DW 3
T FW 24

If S5 operates the same as S7 and my understanding is correct, then regardless of the condition of Q17.5 the two Load/Transfers will be executed.

Is this correct or does S5 operate differently to S7?

(I know this is 2 questions in one thread but it is so closely related I didn't want to start a new thread for it).

Many thanks

John ;-)
 
If S5 operates the same as S7 and my understanding is correct, then regardless of the condition of Q17.5 the two Load/Transfers will be executed.

Yes they will. In both S5 and S7.

Kalle
 
If S5 operates the same as S7 and my understanding is correct, then regardless of the condition of Q17.5 the two Load/Transfers will be executed.

Yes they will. In both S5 and S7.

Kalle

Kalle

Thanks for your answer. So is the quoted code just bad programming then? I can't understand why someone would write that code when the Q17.5 bit is meaningless ??

???
 
Kalle

Thanks for your answer. So is the quoted code just bad programming then? I can't understand why someone would write that code when the Q17.5 bit is meaningless ??

???


Not if he intended to load 20 into MW50 before ending the block.

If it meant to be conditional then obviously it wouldn't work.
 
Peter,
Thanks for that.

That's what I meant.. the Q17.5 bit is meaningless... I think the programmer has intended to make it conditional but has made a mistake. At least I know now how it is behaving.

Thanks again to everyone for all their help

;-)
 

Similar Topics

Hi guys, this should be extremely easy for someone to answer but I am practicing writing my first Rslogix 5000 program. I am very familiar with...
Replies
2
Views
1,697
See the screenshot of EIP tag list. We are trying to read in a digital input that is hard-wired. It is shown here as I31.1. I believe we cannot...
Replies
7
Views
284
A couple days ago I accidentally toggled an alwasyoff bit. The issue is it was set up as a single OTU on a rung, nothing else, and used as XICs...
Replies
3
Views
228
Hi I have an old panel builder 32 that I’m replacing for a factory talk me hmi . In the plc for the old panel builder there is a coms bit for the...
Replies
0
Views
75
Hello, Haven't been on in a while. I need to generate a bit level pdf of the I/O for RSLogix 500. I can generate a report but it just shows the...
Replies
1
Views
162
Back
Top Bottom