Download MT-101-user-manual

Transcript
#%R70=100000
faulty value, reply #%R70=Err
#S%R64
text coded in ASCII beginning in internal register which address is
64 decimally and ending in first following register with NULL sign
(0x0000).
An example of SMS composed by the user may look as follows:
„State on input Pomp 1 - #I3”
„Coolant temperature - #AN1”
or take other form, consisting of fixed and variable content dependent on variable registers
values.
Notice:
 Valid syntax will be replaced in received SMS with current value of particular variable or
else unchanged text will be returned.
 One SMS may read several variables.
 If length of received SMS (text + length of variables replacing mnemonics) exceeds 160
characters, (along with time stamp and optional status) the SMS will be truncated so that
it ends with time stamp and optional status.
 Syntax is not case sensitive.
 Addresses in commands should be in decimal notation.
 32 bit Registers occupy two cells in 16 bit register space. Access to 32 bit registers goes
through 16 bit Registers.
 Commands modifying internal resources values are executable only for received SMS.
 Upon reception of SMS starting with $ sign activates "silent mode" and no confirmation is
sent to originator.
 Confirmation SMS starts with '>' sign.
13.4. Unlocking writing to internal registers
Procedure when data writing protection is set to Yes :
When data overwriting protection option is set, the module does not process frames trying
to change internal resources. Unblocking requires sending data along with password. If
received frame contents a valid password, the module allows remote modification of
internal resources for 5 minutes or until it receives a frame with empty or invalid password.
Command format:
module's ID
(1 byte)
ID
command code
(3 bytes)
0x71, 0x06 0x00
Password
(n bytes)
Password text
Password end
(1 byte)
0x00
Modbus CRC
(2 bytes)
CRC_L, CRC_H
Example:
Module settings
ID=5
Password="ABCDE"
HEX:
0x05, 0x71, 0x06, 0x00, 'A', 'B', 'C', 'D', 'E', 0x00, 0x98, 0x70
Decimally: 5, 113, 6, 0, 'A', 'B', 'C', 'D', 'E', 0, 152, 112
140