Help - Search - Members - Calendar
Full Version: Word Triggered Alarm
Forums.MrPLC.com > PLCs and Supporting Devices > Omron > CX-Designer
Chavak
Hi,

How do I set to trigger an alarm in value [of word address] rather than bits, the default selection in CX Designer

Regards
______
PdL
QUOTE(Chavak @ Oct 14 2008, 05:02 PM) [snapback]74630[/snapback]
Hi,

How do I set to trigger an alarm in value [of word address] rather than bits, the default selection in CX Designer

Regards
______


You would have to do this in the PLC, alarms can only have BOOL addresses configured in CXD.
You could compare the word value to a preset value and if it equals trigger the bit that has your alarm defined.

BITS N BYTES
ALARM/EVENTS can only be triggered with a boolean change of state.

However you might find this method useful and easier to manage.
Each alarm in the PLC simply writes the desired alarm to a single word.

Assign a single word in the PLC for your alarms.
Set up a project macro in the HMI "When a value changed" to monitor the alarm this alarm word.
In the alarm event setting use a series of contiguous HMI bits $B**** assigned to each alarm.

The project macro would be similar to this-

'*************ALARM/EVENT MESSAGE HANDLER************************************
'This macro runs whenever value of W100 in PLC changes state
'Boolean Bits $B1000 thru $B1159 generate ALARM/EVENT message in HMI
'PLC writes a numeric value to work word W100.
'HMI decodes numeric word and turns ON bit at desired location.
'For example if PLC writes 12 to W100, HMI will turn on 12th bit $B1011 in HMI
'This will display and record message 12

BITSET ($B1000, 0, 160); 'Clear bits $B1000 thru $B1159
READCMEM ($SW36,[SERIALA:WR00100],1); 'Read alarm message word from PLC WR100 to HMI index register 9 [SW36}.
$SW36 = BCD($SW36); 'Convert Index 9 from Decimal to BCD [Index registers ONLY work in BCD 0-9999]
BITSET ($B1000i9, 1, 1); 'Trigger alarm by turning on single bit at $B1000 with offset Index register 9.


My 2 cents.
Chavak
Hi,

Thankyou for the replies. In current project there is a need to assign alarm number to each alarm. so I thought triggering the alarm using integer values which represent the alarm message would be neat to manage the alarm, even if somebody have to follow up in the future.

Best Regards
___________

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.