Interrogation of binary information
(with telegram SD3 and function code 05H)
Is used to send a query to the recorder. The values transmitted
with function code 05 are not converted acc. to the numerical
format for analog values, since the information involved here is
exclusively binary information. The recorder uses one byte in the
answer message for each parameter address queried. Bits not
in use are set to 0 by the recorder.
The computer’s query to the recorder is:
SD3/DA/SA/FC/aa/cc/xx/xx/xx/xx/xx/xx/FCS/ED
|<--
L
-->|
The following applies:
SD3
= A2H
Start byte
DA
Destination address (bus subscriber address)
SA
Source address
FC
= 05H
Function code
aa
Start address = Parameter address from section
„Parameter addresses“
cc
Number of data bytes
xx...
...xx
6 arbitrary bytes
FCS
Test byte (Frame Check Sequence)
Sum of the hex value of the L frame without transfor-
mation for FFH
ED
= 16H
End byte (End Delimiter), code: 16H
L
Number of bytes in FCS
The recorder’s answer is:
SD2 LE LEr SD2 DA SA 05H Byte 1 Byte 2 ... Byte n FCS ED
Parameter addresses for function code 05H
Parameter
address
Contents
00H
01H
02H
03H
04H
05H
06H
07H
08H
Threshold status, channel 1 to 4
Threshold status, channel 5 and 6
Status DI
Status DO
Equipment self-test status, bits 0...7
Equipment self-test status, bits 8...15
Equipment self-test status, bits
16...23
Equipment self-test status, bits
24...31
Parameterisation status
(01 = recorder is in parameterisation
mode, it is not possible to modify the
parameterisation via the interface)
The threshold status of channels 1 to 4 is stored in one byte:
Bit
7
Threshold 1 channel 1
6
Threshold 2 channel 1
5
Threshold 1 channel 2
4
Threshold 2 channel 2
3
Threshold 1 channel 3
2
Threshold 2 channel 3
1
Threshold 1 channel 4
0
Threshold 2 channel 4
The threshold status of channels 5 and 6 is stored in an additio-
nal byte:
Bit
..
3
Threshold 1 channel 5
2
Threshold 2 channel 5
1
Threshold 1 channel 6
0
Threshold 2 channel 6
The status of the binary inputs is stored in the lower 6 bits of a
byte:
Bit
..
5
DI 1 active
4
DI 2 active
3
DI 3 active
2
DI 4 active
1
DI 5 active
0
DI 6 active
The status of the binary outputs is stored in the lower 6 bits of a
byte:
Bit
..
5
DO 1 active
4
DO 2 active
3
DO 3 active
2
DO 4 active
1
DO 5 active
0
DO 6 active
30
Connection of the recorder to WIZCON