TReX User Manual v15.30 Firmware
Wireless Motion Activated Light
In this example, a motion sensor being used to activate a timed light. The light needs to stay
on while the motion sensor is being triggered, and turn off after 30 seconds inactivity time.
In this configuration:
Q:8
: is being latched on, by a message received from the wireless sensor. The TReX receives a
standard
WT Output Protocol
message from the sensor instructing it to close
Digital Output
8
. By configuring the wireless motion sensor to transmit this message (
[[01]8-]
), the PLC
program can be started without the need for a physical connection.
Q:1
is the output controlling the light.
T:1
is the timer, that is reset each time a message is received from the wireless sensor.
PLC Configuration:
//With every new incoming message, reset the “light on” timer
*PLC_RUNG=01:[Q:8]-------[-]---------[-]---------(RT1)
//Immediately turn on the light
*PLC_RUNG=02: +-(SQ1)
//Clear the output set each time a message is received.
*PLC_RUNG=03: +-(RQ8)
//Keep the timer running as long as the light is turned on.
*PLC_RUNG=04:[Q:1]-------[-]---------[-]---------(T:1)
//As soon as the timer expires through inactivity, turn off the light
*PLC_RUNG=05:[TD1]-------[-]---------[-]---------(RQ1)
*PLC_RUNG=06:
© WTE Limited, 2022 – Christchurch New Zealand
Page 184 of 302
Summary of Contents for TReX-460
Page 87: ...TReX User Manual v15 30 Firmware WTE Limited 2022 Christchurch New Zealand Page 87 of 302...
Page 286: ...TReX User Manual v15 30 Firmware WTE Limited 2022 Christchurch New Zealand Page 286 of 302...
Page 302: ...TReX User Manual v15 30 Firmware WTE Limited 2022 Christchurch New Zealand Page 302 of 302...