S7-300 alarm buffer

exmore84

Member
Join Date
Feb 2011
Location
Diest
Posts
13
Dear members

I need in step 7 a alarm buffer. I made a little progam (See below) but it doesn't work. So if i get a alarm in DB110.DBW84 and M100.0 is set the alarm is transfering to DB1.DBW0.
When there is a new alarm and M100.0 is set to one, the data in DB1.DBW0 is transfered to DB1.DBW2 and the new alarm is Transferred to DB1.DBW0. I test the program in S7Sim but it doesn't work. Do someone know the problem?

A M100.0
OPN DB 1
L DBW 6
T DBW 8
L DBW 4
T DBW 6
L DBW 2
T DBW 4
L DBW 0
T DBD 2
L DB110.DBW84 <== This is a db with my alarms.
T DBW 0
 
If I understand you correctly, you want this only to happen only every time M100.0 shifts from 0 to 1.


A M100.0
FP M100.1 // Shift only on positive edge
JCN L001
OPN DB 1
L DBW 6
T DBW 8
L DBW 4
T DBW 6
L DBW 2
T DBW 4
L DBW 0
T DBD 2
L DB110.DBW84 <== This is a db with my alarms.
T DBW 0
L001: NOP 0

Kalle
 
Loads and transfers are executed without regard to RLO. You need to use conditional jump to avoid execution of loads and transfers.

Edit: Kalle beat me to it.
 
Yes yes it's working. But i've changed the opn DB1. If i use this OPN instruction it doesn't work. Is this maybe because the S7sim?

A M100.0
FP M100.1 // Shift only on positive edge

JCN L001
L DB1.DBW 6
T DB1.DBW 8
L DB1.DBW 4
T DB1.DBW 6
L DB1.DBW 2
T DB1.DBW 4
L DB1.DBW 0
T DB1.DBD 2
L DB110.DBW84 <== This is a db with my alarms.
T DB1.DBW 0
L001: NOP 0

Thanks by the way. It's a problem lesser in my project. Now i've still got one problem :( in winCC
 
Here is the modification required to "make it work"

Code:
[FONT=Arial]A M100.0[/FONT]
[FONT=Arial][COLOR=red]FP M100.1 // Shift only on positive edge[/COLOR][/FONT]
[FONT=Arial][COLOR=red]JCN L001[/COLOR][/FONT]
[FONT=Arial]OPN DB 1[/FONT]
[FONT=Arial]L DBW 6[/FONT]
[FONT=Arial]T DBW 8[/FONT]
[FONT=Arial]L DBW 4[/FONT]
[FONT=Arial]T DBW 6[/FONT]
[FONT=Arial]L DBW 2[/FONT]
[FONT=Arial]T DBW 4[/FONT]
[FONT=Arial]L DBW 0[/FONT]
[FONT=Arial]T DBD 2[/FONT]
[FONT=Arial]L DB110.DBW84 <== This is a db with my alarms.[/FONT]
[I][B][FONT=Arial]T DB1.DBW 0[/FONT][/B][/I]
[FONT=Arial][COLOR=red]L001: NOP 0

[/COLOR][/FONT]L DB110.DBW84 actually executes as

OPN DB110
L DBW84
 

Similar Topics

The matter is im facing a BB alarm while i try to communicate yaskawa A1000 & S7-300 by profibus PPO type 5 method. I have changed my first...
Replies
3
Views
3,094
Hi Everyone, I want to know how we show the profibus slave alarm in wincc flexible 2008.when any one profibus slave do not communicate or give...
Replies
3
Views
3,658
Hello everyone and thanks for checking my post. I’m a beginner in PLC programming (still in school) and I’m tasked with doing a monitoring of a...
Replies
4
Views
2,280
Hi All I'm using an S7-315F 2PN/DP with a siemens HMI (currently on a PC -WinCC flex) to control a small plant. If a plant process variable...
Replies
3
Views
4,558
Good day all. Yesterday I had to upload my PanelBuilder 32 program from one PV and download it to another. They are cat#2711-M3A19L1. The PLC is a...
Replies
24
Views
7,982
Back
Top Bottom