ZD340_07d_e.doc / Apr-17
Page 44 / 50
8.2. Automatic and Cyclic Data Transmission
Set any cycle time unequal to zero to parameter F09.085.
Set the serial access code of the register you would like to transmit to parameter F09.086. In
theory you could transmit any of the internal registers by serial link, however only the following
registers make really sense:
F09.086 = 6 : Actual count value of counter 1 (encoder 1)
F09.086 = 7 : Actual count value of counter 2 (encoder 2)
F09.086 = 8 : Actual analogue output voltage (models ZA)
F09.086 = 9 : Latest minimum value from the minimum record register
F09.086 = 10 : Latest maximum value from the maximum record register
F09.086 = 14 : Actual display value as shown on the LED display
Dependent on the setting of parameter F09.084 the unit transmits one of the following data
strings, under cycle control of the timer:
(xxxx = counter data*, LF = Line Feed <hex. 0A>, CR = Carriage Return <hex 0D>)
*) Leading zeros will not be transmitted
(Unit No.)
F09.084 = 0 :
1
1
+/-
X
X
X
X
X
X
LF CR
F09.084 = 1 :
+/-
X
X
X
X
X
X
LF CR
8.3. Communication Protocol
When communicating with the unit via protocol, you have full read/write access to all internal
parameters, states and actual counter values. The protocol uses the DRIVECOM standard
according to DIN ISO 1745. A list with the most frequently used serial access codes can be
found in the subsequent section.
To request data from the counter, the following request string must be sent:
EOT
AD1 AD2 C1 C2 ENQ
EOT = Control character (Hex 04)
AD1 = Unit address, High Byte
AD2 = Unit address, Low Byte
C1 = Register code to read, High Byte
C2 = Register code to read, Low Byte
ENQ = Control character (Hex 05)
The example shows how to request for transmission of the actual count of counter 1
(register code :6), from a unit with unit address 11:
ASCII-Code:
EOT
1
1
:
6
ENQ
Hexadecimal:
04
31
31
3A
36
05
Binary:
0000 0100 0011 0001 0011 0001 0011 1010 0011 0110 0000 0101