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

Everything was working fine, but suddenly CPU went into error mode, and the ERR and TER LEDs lit up. Now I can't download or connect with the PLC...
Replies
0
Views
32
I have created a project in TIA Portal v16 Upd6 with S7-1200 (6ES7214-1AG40-0XB0) and WinCC Unified (PC station). The communication between the...
Replies
4
Views
142
Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
146
I have a German programed ME program. I want to know what tag in the PLC a latched button turns on. However when I open up the tag properties I...
Replies
14
Views
199
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
94
Back
Top Bottom