IFM Electronic efector 190 Data Matrix Notice Pour Utilisateurs page 54

Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

Query of the last reading result
Command master to sensor
Character Character/Meaning
position
1
q
2
tens digit of the sensor address
3
units digit of the sensor address
4
command end
Response sensor to master
Character Character/Meaning
position
1
Q
2
tens digit of the sensor address
3
units digit of the sensor address
4
length information 3
5
length information 2
6
length information 1
7
first byte of the reading result
8
second byte of the reading result
:
:
n
last byte of the reading result
n+1
check digit 3
n+2
check digit 2
n+3
check digit 1
n+4
command end
n+5
command end
Example
master
q37
transmits
sensor
responds
For calculating the check digit all character codes from position 4 to position n are
added. The check digit is the result of the sum modulo 256.
54
rd
position (10
nd
position (10
st
position (10
rd
2
position (10
)
nd
1
position (10
)
st
0
position (10
)
Comment
command character
digits 0-9
digits 0-9
(ASCII code 10
Comment
command character
digits 0-9
digits 0-9
2
)
digits 0-9
1
)
digits 0-9
0
)
digits 0-9
digits 0-9
digits 0-9
digits 0-9
(ASCII code 13
(ASCII code 10
Q37012Hello world!208
)
d
)
d
)
d

Publicité

Table des Matières
loading

Table des Matières