userxyz Member U Join Date May 2002 Location any Posts 2,768 Aug 15, 2007 #1 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 ...
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 ...
gregoryg Member G Join Date Aug 2006 Location Gliwice Posts 160 Aug 15, 2007 #2 Maybe.. L IW8 AW W#16#FF7F L 0 <>I = M20.0
L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,694 Aug 15, 2007 #3 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 ?
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 ?
jacekd Member J Join Date Jan 2004 Location Radom/Poland Posts 262 Aug 16, 2007 #4 gregoryg said: Maybe.. L IW8 AW W#16#FF7F L 0 <>I = M20.0 Click to expand... Or even more confusing L IW8 AW W#16#FF7F A <>0 = M20.0
gregoryg said: Maybe.. L IW8 AW W#16#FF7F L 0 <>I = M20.0 Click to expand... Or even more confusing L IW8 AW W#16#FF7F A <>0 = M20.0
aikona Member Join Date Oct 2003 Location B2220 plaas dorpie Posts 182 Aug 16, 2007 #5 Another way L IW8 L 2#11111110 11111111 Bit 8 byte 2 is ignored AW T #temp // not required L #temp // not required L 0 <>I = M 20.0
Another way L IW8 L 2#11111110 11111111 Bit 8 byte 2 is ignored AW T #temp // not required L #temp // not required L 0 <>I = M 20.0
L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,694 Aug 16, 2007 #6 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]
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 Member J Join Date Jan 2004 Location Radom/Poland Posts 262 Aug 16, 2007 #7 aikona said: L 2#11111110 11111111 Click to expand... 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.
aikona said: L 2#11111110 11111111 Click to expand... 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.
aikona Member Join Date Oct 2003 Location B2220 plaas dorpie Posts 182 Aug 16, 2007 #8 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. Click to expand... 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
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. Click to expand... 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