8.9 Counter resources
The counter installed in the HIPERFACE DSL
®
motor feedback system is a 32 bit counter
for user purposes that can be incremented as required. The counter can be read, incre‐
mented and reset.
8.9.1 Read counter
This resource indicates the value of a user-defined counter. The counter value is given
as a 32 bit unsigned value.
Direct read access to read counter returns the defining values:
Table 145: Read counter defining values
Defining value Offset Value
RID 120h
Resource name 0 "READCNT"
Data size 1 4
Read access level 2 0
Write access level 3 15
Time overrun 4 70
Data type 5 05h – 32 bit, unsigned
Mandatory no
The counter value is given in the following format:
Table 146: Read counter definition
Byte Value Description
3/2/1/0 0000 0000 to FFFF FFFFh Value of the user-defined counter
For this resource, access to the offset basis is not meaningful as the resource data can
be read using a "long message" transaction.
Table 147: Reading the counter
Transaction Register
PC_BUFFER0
PC_BUFFER1
PC_BUFFER2
PC_BUFFER3
PC_BUFFER4
PC_BUFFER5
PC_BUFFER6
PC_BUFFER7
PC_ADD_H
PC_ADD_L
PC_OFF_H
PC_OFF_L
PC_CTRL
Write 59 20 00 00 01
Wait for FREL = 1
Read Counter (32 bit)
8.9.2 Increment counter
This resource increments the user-defined 32 bit counter. If the incrementation causes
an overrun of the counter, error message 35 appears (see chapter ) and the value of
the counter remains at the maximum value.
Direct read access to increment counter returns the defining values:
Table 148: Increment counter defining values
Defining value Offset Value
RID 121h
Resource name 0 "INCCOUNT"
8 MOTOR FEEDBACK SYSTEM RESOURCES
124
T E C H N I C A L I N F O R M A T I O N | HIPERFACE DSL
®
8017595/ZTW6/2018-01-15 | SICK
Subject to change without notice