IFM Electronic efector 190 Data Matrix Notice Pour Utilisateurs page 55

Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

Query of the current sensor state
Command master to sensor
Character Character/Meaning
position
1
s
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
S
2
tens digit of the sensor address
3
units digit of the sensor address
4
first character of the status byte
5
second character of the status byte
6
check digit 3
7
check digit 2
8
check digit 1
9
command end
10
command end
Example
master
s04
transmits
sensor
responds
The two digits of the status information have to be interpreted as one byte. The indi-
vidual bits of this status byte have the following meaning:
bit 0 set:
A reading result is available. This bit will be deleted after query of a
reading result.
bit 1 set:
The last reading was successful.
bit 4 set:
A trigger was activated without the last reading result being queried.
This bit will be deleted after query of a reading result.
To calculate the check digit the character codes of positions 4 and 5 are added. The
check digit is the result of the sum modulo 256.
rd
2
position (10
)
nd
1
position (10
)
st
0
position (10
)
Comment
command character
digits 0-9
digits 0-9
(ASCII code 10d)
Comment
command echo
digits 0-9
digits 0-9
digits 0-9
digits 0-9
digits 0-9
digits 0-9
digits 0-9
(ASCII code 13
)
d
(ASCII code 10
)
d
S0400096
55

Publicité

Table des Matières
loading

Table des Matières