Issue in STL (Siemens S7 300)

FernandoJose

Member
Join Date
Feb 2017
Location
Brazil
Posts
5
I'm not used to program in STL and I have some issues in set (S) and reset (R) instructions in the following commands:

====================
Network 48
A(
O "DB_010TT1".SOLVE.ALLOW_TABLE_1_TO_LOAD
O "DB_010TT1".SOLVE.ALLOW_TABLE_2_TO_LOAD
)
A(
L "DB_010R01".AUX.CODE_PRG_ARM2
L 0
<>I
)
S "DB_010R01".SOLVE.AUX_START_PROG_ARM2
A "DB_010R01".INPUT.ARM_2.PROGRAM_ACTIVE
AN "DB_010R01".SOLVE.NO_PRG_RUN_ARM_2
R "DB_010R01".SOLVE.AUX_START_PROG_ARM2
NOP 0
====================

As a begginer in STL, I did not understand if the RLO bit is set in each line and applied to the next line.

My issues in this program are:

1.If the first two AND instructions are true, "DB_010R01" is set to 1?
2.If one of the first two AND instructions are false, "DB_010R01" is set to 0?
3.If "DB_010R01" is 0, the following AND and AND(negated) are executed?
4.Afther the AND and AND(negated) execution, "DB_010R01" can be reseted to 0 according to the logic result?
 
If the first two ANDs are true, "DB_010R01".SOLVE.AUX_START_PROG_ARM2 is set to one. Note the string in quotes is the DB symbolic name, while the actual bit is .SOLVE.AUX_START_PROG_ARM2.

The AND and AND NOT after the SET instruction are evaluated separately from the SET, regardless of the state of "DB_010R01".SOLVE.AUX_START_PROG_ARM2
Now I need to double-check the Hans Berger book to explain why...
 
Did you try to switch your view to LAD ? the NOP 0 gets me thinking this was not human-made STL.

nehpets: your second rung show an OR, I think it should be an AND
 
wimpiesplc,

You are right, I stand corrected the two instructions in the second rung should be in series not parallel.

Regards
Steve
 

Similar Topics

Hi everyone, I have an issue with installation of Studio 5000 33.00.02 DVD Media disc 2 with View Designer on Windows 11. After installation...
Replies
0
Views
31
Hi Folks, I am in the process of retrofitting MRJ2 (Mitsubishi) series with MRJ4 servo drives for two axes. I did use the conversion kit...
Replies
3
Views
62
Hi everyone, new to forum. Since very long time i having issue with 1734-AENT module, after some period of time its keep stuck in error (simmilar...
Replies
2
Views
122
Hey everyone, looking for advice in this particular scenario. Currently we have a controlnet bus that has (6) CN2DN devices and (2) powerflex...
Replies
5
Views
191
I am working on a project using a NB screen and NX1P2 PLC. I am having a really hard time getting a real number to properly translate through to...
Replies
3
Views
104
Back
Top Bottom