Flashing Digit Display that Loops

Ktn

Member
Join Date
Sep 2008
Location
Cape Town
Posts
9
Hi all

Please advise if anyone can assist with ff: I am trying to get digits to flash and then loop so that if alarm 1 & 2 is on, the display panel alternates between 1 & 2. However, I can only get 1 or 2 to display and they do flash but do not go into a loop so that they alternate. I am using siemens s7 ladder.

Thanks
Ktn
 
How many alarms are there to process ? Are they contiguous from a start point in a DB ? Can you post what you have so far (save the ladder as source code in absolute format and then post the resultant text from the AWL file)
 
Thanks for reply - see code below. This code flashes the digits and only sometimes toggles between alarms but very erratic.


FUNCTION FC 3 : VOID
TITLE =Splice Reelstand Alarms
VERSION : 0.1

BEGIN
NETWORK
TITLE =Splice Reelstand Display Alarm

A I 126.0;
= L 0.0;
A L 0.0;
A( ;
L MW 198;
L 1;
==I ;
) ;
= L 0.1;
A L 0.1;
JNB _001;
L 1;
T MW 56;
_001: NOP 0;
A L 0.1;
A M 100.3;
FP M 236.0;
= L 0.2;
A L 0.2;
JNB _002;
L 11;
T MW 56;
_002: NOP 0;
A L 0.2;
JNB _003;
L MW 198;
L 1;
+I ;
T MW 198;
_003: NOP 0;
A L 0.0;
A M 100.3;
FN M 236.1;
JNB _004;
L MW 198;
L 1;
+I ;
T MW 198;
_004: NOP 0;
NETWORK
TITLE =

AN I 126.0;
A( ;
L MW 198;
L 1;
==I ;
) ;
JNB _005;
L MW 198;
L 2;
+I ;
T MW 198;
_005: NOP 0;
NETWORK
TITLE =Splice Reelstand Display Alarm

A I 126.1;
= L 0.0;
A L 0.0;
A( ;
L MW 198;
L 3;
==I ;
) ;
= L 0.1;
A L 0.1;
JNB _006;
L 2;
T MW 56;
_006: NOP 0;
A L 0.1;
A M 100.5;
FP M 236.2;
= L 0.2;
A L 0.2;
JNB _007;
L 11;
T MW 56;
_007: NOP 0;
A L 0.2;
JNB _008;
L MW 198;
L 1;
+I ;
T MW 198;
_008: NOP 0;
A L 0.0;
A M 100.5;
FN M 236.3;
JNB _009;
L MW 198;
L 1;
+I ;
T MW 198;
_009: NOP 0;
NETWORK
TITLE =

AN I 126.1;
A( ;
L MW 198;
L 1;
==I ;
) ;
JNB _00a;
L MW 198;
L 4;
+I ;
T MW 198;
_00a: NOP 0;
NETWORK
TITLE =Splice Reelstand Display Alarm

A I 126.2;
= L 0.0;
A L 0.0;
A( ;
L MW 198;
L 5;
==I ;
) ;
= L 0.1;
A L 0.1;
JNB _00b;
L 3;
T MW 56;
_00b: NOP 0;
A L 0.1;
A M 100.5;
FP M 236.4;
= L 0.2;
A L 0.2;
JNB _00c;
L 11;
T MW 56;
_00c: NOP 0;
A L 0.2;
JNB _00d;
L MW 198;
L 1;
+I ;
T MW 198;
_00d: NOP 0;
A L 0.0;
A M 100.5;
FN M 236.5;
JNB _00e;
L MW 198;
L 1;
+I ;
T MW 198;
_00e: NOP 0;
NETWORK
TITLE =

AN I 126.2;
A( ;
L MW 198;
L 1;
==I ;
) ;
JNB _00f;
L MW 198;
L 6;
+I ;
T MW 198;
_00f: NOP 0;
NETWORK
TITLE =Splice Reelstand Display Alarm

A I 126.3;
= L 0.0;
A L 0.0;
A( ;
L MW 198;
L 7;
==I ;
) ;
= L 0.1;
A L 0.1;
JNB _010;
L 4;
T MW 56;
_010: NOP 0;
A L 0.1;
A M 100.5;
FP M 236.6;
= L 0.2;
A L 0.2;
JNB _011;
L 11;
T MW 56;
_011: NOP 0;
A L 0.2;
JNB _012;
L MW 198;
L 1;
+I ;
T MW 198;
_012: NOP 0;
A L 0.0;
A M 100.5;
FN M 236.7;
JNB _013;
L MW 198;
L 1;
+I ;
T MW 198;
_013: NOP 0;
NETWORK
TITLE =

AN I 126.3;
A( ;
L MW 198;
L 1;
==I ;
) ;
JNB _014;
L MW 198;
L 8;
+I ;
T MW 198;
_014: NOP 0;
NETWORK
TITLE =Horn for any Alarms

O I 126.0;
O I 126.1;
O I 126.2;
O I 126.3;
= Q 3.7;
NETWORK
TITLE =

A( ;
ON I 126.0;
ON I 126.1;
ON I 126.2;
ON I 126.3;
) ;
AN Q 3.7;
JNB _015;
L 11;
T MW 56;
_015: NOP 0;
NETWORK
TITLE =Reset Counter

A( ;
O( ;
L MW 198;
L 7;
>I ;
) ;
O( ;
L MW 198;
L 1;
<I ;
) ;
) ;
JNB _016;
L 1;
T MW 198;
_016: NOP 0;
END_FUNCTION
 
Assumptions:

MW56 is the current fault number displayed: 1,2,3,4 but if it's 11 then the display will be blank.

Questions:

Why are you using M100.3 for Alarm I126.0 but M100.5 for alarms I126.1 I126.2 and I126.3

You have not posted the code controlling M100.3 and M100.5, are they flashing bits ?


(Edit: replaced MW58 with MW56 !)
 
Last edited:
Assumptions are abolutely correct. The M100.5 & M100.3 are flashing bits. All of the inputs will be using M100.5, I was just experimenting with different response times. Thanks for the code, I will try it out and let you know. I appreciate your help.

Regards
 
Thanks LD. The code works beautifully. Now all I need to do is rectify the other block containing 48 alarms with the principle that you provided, cos I used a similar procedure to what I sent to you, which also made this block work erratically.
 

Similar Topics

I have a 1769-L24ER-BB1B and I am trying to flash it to 34xx, its flashing red and faulted, when I try to flash it I get a popup stating it needs...
Replies
14
Views
247
Hi Guys, I have a 1769-L24-QBFCB1 that has the OK light flashing on the embedded counter module. The manual states it is a resettable fault, but...
Replies
0
Views
98
Hello all. I have a remote that uses a 1734-AENTR series C. We had to change it to a new one and, after adjusting the IP and number of slots...
Replies
16
Views
522
Hello all! I have a 5069 -L310ers2 plc that has A1 and A2 Ethernet port. I connected to A1 port while flashing the plc and it was successful. The...
Replies
8
Views
248
Hi All, I am new here , I am trying to flash AB plc 5380 safety guard logix Freeware 32.012 which is our program and old plc, but It does accept...
Replies
11
Views
405
Back
Top Bottom