TReX User Manual v15.30 Firmware
PLC Advanced Programming
Complex programming is possible, using serial inputs to control formatted serial output and
reconfiguration of the TReX during program operation. This flexibility allows integration with
third party devices or to extend the TReX feature set.
In the following example, the TReX is being used to accept a serial command, and format
outgoing serial messages for connection to an AT command set serial modem. The basic
operational intent is to notify the user should the modem become disconnected and follow a
simple sequence, reformatting a message that can then be accepted by the modem for
transmission.
Note: This example is supplied purely as an indication of a valid useful application, and
although it has been tested there is no claim that it is complete, or fit for any general use.
The PLC program uses:
•
WT protocol to parse key information used in message and to initiate transmission.
•
Serial inputs, to match content received from an AT command set modem.
•
Macros (defined in MACRO.TXT) to manage outgoing serial content, and to provide
user feedback.
•
Timers to control state transitions and notify on error conditions.
PLC Program:
© WTE Limited, 2022 – Christchurch New Zealand
Page 191 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...