Novatek-electro RS-485 Operating Manual page 37

Interface controller
Table of Contents

Advertisement

0 VAREQVAL V0 1
#condition is met, if the previous condition is not fulfilled and vice versa
1 NOT C0
!STRS
#SMS text
0 OM-310 (3) – avaria
!PHONES
#below the phone to receive SMS can be specified
0 01234567
!ACTS
#send SMS
0 SENDSMS H0 S0
!REACTS
#if the condition С0 is met (if 240.0 = 1), then send one SMS
* C0 ACT A0
#END - comment at the file end or blank line for correct reading
3.2. Example 2
In this example, the program controls the hysteresis value on the second channel of the TR-101 device, depending on
the temperature on the sensor of the first channel. In the text 16 – MODBUS ID of the device is TR-101; 4 - address of
the channel temperature register 1; 47 is the address of register for the hysteresis of the second channel.
The program uses registers in the field of current user settings 5500-5749. Registers 5500 and 5501 are
reserved for the values respectively of the lower and upper temperature limits and the registers 5502 and 5503 are
for the hysteresis value to be set in TR-101 if achieving the temperature respectively the lower or upper limits.
These registers are read-only. To change them, you should be in configuration mode (see it. 5.3.4), then write the
desired values to addresses of the respective editable settings. These addresses are obtained by subtracting 250
from the address current value. Thus, temperature limits are recoded into the registers 5250 and 5251, and the
hysteresis – 5252 and 5253. Then, in order for the changes to take effect, you need to give the commands "Save"
and "Apply" (for example by writing 4 to the register 120).
!META
* PROTOCOLVERSION 8
#program will run every 20 seconds
* UPDATE 20
* PARAMACTUAL 0
* PARAMLOADRATIO 50
!DEVICES
* * WRHANY 120 120
#ТР-101 has MODBUS ID as 16 and can read no less than 100 registers per a query,
#but to record by one register per one query
* 16 WRHSINGLE 100
!PARAMS
#INT16 – registers with sign, as the temperature can be less than 0
0 * INT16 H 5500
1 * INT16 H 5501
2 16 INT16 H 4
#UINT16 – as the hysteresis is no less than 0
3 * UINT16 H 5502
4 * UINT16 H 5503
5 16 UINT16 H 47
!VARS
#lower and upper temperature limits, as well as its current value
0 PARAMVAL P0
1 PARAMVAL P1
2 PARAMVAL P2
#hysteresis for temperatures is lower (or above) than the appropriate limits
NOVATEK-ELECTRO
37
-
-
EM-481

Advertisement

Table of Contents
loading

This manual is also suitable for:

Em-481

Table of Contents