filtering a bit away in S7 STL

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
I have alarms from Input I8.0 until I9.6

I9.7 is something else

I wrote this as code, M20.0 is a horn.

Code:
	  L	 IW	 8
	  CAW   
	  SLW   1
	  L	 0
	  <>I   
	  =	 M	 20.0


...
 
Boolean logic would be my choice,

Code:
O I 8.0
O I 8.1
O I 8.2
..
..
O I 19.6
= M 20.0

If there is a momentary input the horn will not sound but (I'm presuming here) you will get a HMI alarm message ?
 
Here's a cloudy implementation. :)
Code:
	  L	 DW#16#81000040
	  LAR1  
	  L	 W [AR1,P#0.0]
	  LAR1  P##wTemp
	  T	 W [AR1,P#0.0]
	  SET   
	  R	  [AR1,P#1.7]
	  L	 W [AR1,P#0.0]
	  L	 0
	  <>I   
	  L	 DW#16#830000A0
	  LAR1  
	  =	  [AR1,P#0.0]
 
jacekd said:
It should be 2#11111111 01111111 to mask I9.7 out.

BTW, "bit 8 byte 2" is a little bit confusing as common understanding is that bits in a byte are 0-7.

Oops ... yes the idea was to : Byte 1 , Byte 0 and 00000001 bit 0 is 1

That my daily mistake quota used up.Well some people do read the stuff
 

Similar Topics

Hi All, I'm currently designing a faceplate for an analog input object, and I'm trying to create an alarm tab with an Alarm and Event Summary...
Replies
1
Views
442
Hello, I am looking to use the same header on every page (global object) that has an alarm summary button on it that will go to a display with an...
Replies
4
Views
1,808
Hi, I have just started with WinCC unified (v17) and there are alot of things I used on Comfort but now are not available. Currently I am finding...
Replies
3
Views
2,813
i have FactoryTalkView Studio ME ver 12; i have a project with more than 40 displays. 1) How to print the entire project into a pdf. 2) I need to...
Replies
3
Views
770
I've become interested in code for digital filtering. I have read this excellent (and old) thread ...
Replies
3
Views
10,487
Back
Top Bottom