135
13.3. Syntax for reading and writing data in SMS mode
Basic syntax:
Reading
#[representation][internal resource]/[% space address]
Writing
#[representation][internal resource]/[% space address]=value
The value may be variable or constant. It is for example possible to send an SMS resulting
in assigning the state of I1 to Q1 (#Q1=I1 or #Q1=#I1). Using second form replaces #I1
with the current value f.e. #Q1=1. In first version the proper execution will be confirmed
with identical syntax.
Value representation (the way of displaying or interpreting of the value)
D or none decimally
H hexadecimally (for registers always in four digits f.e. 002F)
B binary (for registers always in 16 digits f.e. 0000000000010111)
Internal resource
Ix state of input Ix, x in range 1...8
Qx state of output Qx, x in range 1...8
Anx analogue input, x in range 1...2
% space address - access to internal variables
I
-
bits in binary inputs space
Q -
bits in binary outputs space
AI -
Input Registers (16 bit)
R -
Internal Registers (16 bit)
M -
Internal flags (Not deleted and zeroed during module reset)
S -
Internal flags (deleted and zeroed during module reset)
Examples of syntax that may along with simple text be a part of the SMS.
#I3
state of terminal I3
#DQ5
state of terminal Q5
#AN1
value of analogue input AN1 decimally
#BAN2
value of analogue input AN2 binary
#%R15
value of Register 15 decimally
#H%AI4
value of Input Register 4
#%M123
value of M123 flag
#H%R80#H%R8
1
value of 32 bit Register DREG1 (memory map) 16 bit
#Q1=1
activation of output Q1
#%R70=255
setting Register R70 to value of 255
#H%R70=FF
setting Register R70 to value 255
#%R1000=2
faulty resource address, replay „Err”
#%R70=100000 faulty value, reply #%R70=Err
Содержание MT-101
Страница 1: ......
Страница 129: ...126 11 7 Drawings and dimensions ...