TReX User Manual v15.30 Firmware
PLC_ALARM
Configures individual system clock alarms that are available to the PLC program.
*
PLC_ALARM
=T:A,BB:CC,a,bb:cc
<CR>
Where:
•
T
is the alarm number being configured (1-16 valid).
•
A
is the day of the week the alarm is turned ON (1-7, else 0 for EVERY day).
•
BB
is the hour. (-1 if not used, indicating EVERY hour, else 0-23)
•
CC
is the minute.
•
a
is the day of the week the alarm is turned OFF (1-7, else 0 for EVERY day)
•
b
is the off hour. (-1 if not used, indicating EVERY hour, else 0-59)
•
c
is the off minute.
Note:
For days of the week Monday is 1 and Sunday is 7.
Typical Usage:
*PLC_ALARM=1:2,22:58,3,22:58 (turn on alarm 1 TUE 22:58, turn off WED 22:58)
PLC_MATCH
Configures serial input match strings, and allows a PLC program work bit to be set when each
input serial string is matched.
*
PLC_MATCH
=M:W,SSSSSSSSSS
<CR>
Where:
•
M
is the match string (1-4 valid)
•
W
is the work bit to set on a match (1-64)
•
SSS
... is the serial to be matched (up to 20 characters)
Examples:
To match on the serial input “AT23” then set work bit 4 (B:4) on a match:
*PLC_MATCH=1:4,AT23<CR>
To match on the serial inputs “AT\r” then set work bit 4 (B:4) on a match, and also set work
bit 5 (B:5) on match of “B\r\n”:
*PLC_MATCH=1:4,AT$0D<CR>
*PLC_MATCH=2:5,AT$0D$0A<CR>
© WTE Limited, 2022 – Christchurch New Zealand
Page 137 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...