Is this short STL code correct ?

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
ON "Alarm WZI Actief"
O "Reset Vanaf de WZI"
FN M 21.1
R C 10


If "Alarm WZI Actief" becomes low or "Reset Vanaf de WZI" becomes high, then reset Counter C10 to zero.

?
 
I would do this

AN "Alarm WZI Actief"
O "Reset Vanaf de WZI"
FN M 21.1
R C 10

Otherwise if "Alarm WZI Actief" was on and "Reset Vanaf de WZI" was off, you may still reset, as the RLO could be anything at the start, if it is '1', then the ON "Alarm WZI Actief" will allow the RLO to remain on and you would reset at the incorrect time.
 
This is the complete code

AN "Alarm WZI Actief"
AN "Alarm WZI -- Bel"
FP M 21.0
CU C 10

L C 10
L 2
>=I
= "Meer dan 1 WZI Alarm"

AN "Alarm WZI Actief"
O "Reset Vanaf de WZI"
FN M 21.1
R C 10

If I had used ON instead of AN, Reset would've been done when "Meer dan 1 WZI Alarm" came 1. Because the RLO is 1 from there. Therefore it's better to use AN.

I understand,

Thanks man
 

Similar Topics

Hi group! Repeatedly found answers to some questions in the PLC's programming world, now I decided to ask the question directly) Now I am...
Replies
22
Views
4,217
Hi All, I'm looking for some insight into what the SHORT instruction does. The help file wasn't very useful, as I found the explanation to be...
Replies
4
Views
1,492
Congratulations are in order to those who are and still shorting TSLA. Oh man, I wish I had that courage of yours to go out and challenge...
Replies
106
Views
23,382
Hi, I use Allen Bradleys 194e serie as load switch for my cabinets. The technical data confuses me, it says: On the general data it says...
Replies
6
Views
2,009
Good Morning , I just recently did a project with several PowerFlex 525 drives. I just recently started getting a F 73 Fault ( EN Net Loss...
Replies
24
Views
24,392
Back
Top Bottom