User manual
Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
10
The examples below show how RTU2 (the LP-2/3) is put to sleep for 580 seconds (almost 10 minutes), 2
seconds after a successful message to master RTU1. RTU2 will wake up after 580 seconds or if digital input
1 or 2 becomes active or if a serial cable is connected or disconnected from ports 1 or 2. If RTU2 is woken
up by digital input 1 or 2 and an exception report occurs, the RTU will go back to sleep 2 seconds later.
Master RTU1 can be configured to poll RTU2 after 600 seconds of quiet time (ie since the last exception
report received). When master RTU1 polls RTU2, RTU2 will have just woken up and after the poll, will go
back to sleep again. This setup ensures the data at master RTU1 is never older than 600 seconds and
ensures that RTU2 spends a lot of time sleeping.
CAUTION: an Edge trigger (or Change block) should not be used to put the LP-2/3 to sleep. Before
scanning the ladder the first time (or after a wakeup or warm start) the LP-2/3 clears its last state internal
registers. An edge trigger will then always be true on the first scan – possibly sending the LP-2/3 into a
continuous wake/sleep cycle.
│ │
├Go to sleep for 580 seconds, 2 secs after a successful message ┤
│ │
│RTU1CommsSuc GoToSleep │
│ #YLSUCC1 #R8.1 │
├──[CHANGE]────────────────────────────────────────────────────────────(S)─────┤
│ │
│GoToSleep Wait2Secs GoToSleep │
│ #R8.1 #T2 #R8.1 │
├─────┤ ├──────[ON_DELAY]────────────────────────────────────────┬─────(R)─────┤
│ 2 Seconds │ │
│ │SlpFor580sec │
│ │ #YPDTIME │
├ ┼ ┼ ┼ ┼ ├───(Copy)────┤
│ │ 580 │
│ │CheckDIs&CTS │
│ │ #YPDSTAT │
├ ┼ ┼ ┼ ┼ └───(Copy)────┤
│ 16#16 │
│ │
│ │
├Exception report if DIs change state ┼ ┼ ┤
│ │
│NewDIState? ExceptionRep │
│ #DI1 #R8.2 │
├──[CHANGE]────────────────────────────────────────────────────────────(S)─────┤
│ │
│ExceptionRep Port3Busy ExRepToRTU1 │
│ #R8.2 #YPST3.2 RTU 1 │
├─────┤ ├─────────────────────────────────────────────────┤/├────┬──(TX_DATA)──┤
│ │ #DI1 │
│ │ExceptionRep │
│ │ #R8.2 │
├ ┼ ┼ ┼ ┼ └─────(R)─────┤
│ │
Figure: Example LP-2/3 Low Power Sleep Mode For Outstation RTU2
│ │
├Poll Outstation RTU2 If Quiet For 600 seconds ┼ ┤
│ │
│DoEvery1Sec R2QuietTime R2QuietTime │
│ #YTICK.SEC #R2 #R2 │
├─────┤ ├──────────[<]────────────────────────────────────────────────(Inc)────┤
│ 65535 │
│RTU2NewData? R2QuietTime │
│ #YLUPDC2 #R2 │
├──[CHANGE]──────────────────────────────────────────────────────────(Copy)────┤
│ 0 │
│R2QuietTime P2 Busy Poll RTU2 │
│ #R2 #YPST2.2 RTU 2 │
├─────[>]─────────────────────────────────────────────────┤/├────┬──(RX_DATA)──┤
│ 600 │ #DI1 │
│ │R2QuietTime │
│ │ #R2 │
├ ┼ ┼ ┼ ┼ └───(Copy)────┤
│ 0 │
│ │
Figure: Example Master RTU1 Ladder Logic