User manual

Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
110
Example - Exception Reporting Digitals
An exception report can be generated when a single digital bit changes state or when any of the 16 channels
in a hardware or local register change state.
The example below shows how to exception report a PC-1 mains power fail. The 30 second on-delay is used
to prevent false exception reports caused by the discharge LED flickering ON and OFF (which can happen
when the battery is fully charged or is not connected). After 30 seconds of continuous battery discharge, the
mains power to the PC-1 is said to be OFF.
Monitor PC-1 Power Status. Excep. Report To RTU1 on change
PC-1BatDisch BatDis>30s? Mains Fail
#DI13.12 #T3 #R100.3
├─────┤ ├──────[ON_DELAY]──────────────────────────────────────────────( )─────┤
30 Seconds
Mains Fail Update RTU1
#R100.3 #R100.2
├──[CHANGE]───────────────────────────────────────────────────────────(S)─────┤
Figure: Exception Reporting A Single DI Channel.
The example below shows how to monitor all 16 channels from a register or from a DI module and to
exception report when any channel changes state.
Monitor DI-1 Module 15 Chs 1-15. Excep. Report To RTU1 on change
NewDIState? Update RTU1
#DI15 #R100.2
├──[CHANGE]───────────────────────────────────────────────────────────(S)─────┤
Figure: Exception Reporting 16 DI Channels
The example below shows how to monitor specific channels from a register or from a DI module. Parameter
2 in the AND block is a constant that has all the channels set to 1 that need to be monitored. Eg. to monitor
channels 5-16, the hexadecimal constant 16#FFF0 (65520) is used (for a description of hexadecimal
numbers and masking please see the appendix - Hexadecimal Numbers).
Monitor DI-5 Chs 5-15. Exception Report To RTU1 on change
DoEvery1Sec MaskDI5chs
#YTICK.SEC #R3
├─────┤ ├────────────────────────────────────────────────────────────( AND )───┤
#DI15
NewDIChs5-12 Update RTU1
#R3 #R100.2
├──[CHANGE]───────────────────────────────────────────────────────────(S)─────┤
Figure: Exception Reporting Specific DI Channels.