7 read secondary diagnostics, Host command set reference – Siemens SIMATIC TIWAY 1 User Manual

Page 100

Advertising
background image

HOST COMMAND SET REFERENCE

UNILINK HOST ADAPTER

5–15

USER MANUAL

5.3.7

Read Secondary Diagnostics — 07

The READ SECONDARY DIAGNOSTICS command returns statistics for the
specified secondary device. Only counts related to the issuing HIU are
returned. With the exception of the number of I–Frames transmitted to and
from the secondary, these counters do not represent an exact count of events
and are intended only to show trends that may indicate problems. The counters
will not be updated for offline secondaries or after reaching their maximum
value of FFFF. The host computer must explicitly reset the counters by issuing
this command with the reset counter code.

Command: 07 aa (rr)

Response: 07 aa (bbbb cccc dddd eeee ffff gggg hhhh iiii)

Usage: PERFORMANCE

Modes: MHIU/EHA, HIU/EHA, MHIU, HIU

Parameters:

aa

The secondary address. If the special address FF is used and the
reset code parameter is set to 01, the statistics counters for all
secondaries will be reset. The special address cannot be used to
return the statistics counters for all secondaries simultaneously.

rr

The reset statistics counters code. This optional parameter was
added to the original TIWAY I Host Adapter command to allow
the counters to be reset.

00 = Return the statistics counters for the specified secondary,
but do not reset the counters.

01 = Reset the statistics counters for the specified secondary and
do not return any counts. Only the address field is returned with
the command code when this option is selected.

bbbb

The number of polls successfully transmitted to the secondary.

cccc

The number of TIWAY I HDLC I–Frames successfully
transmitted to the secondary.

dddd

The number of network errors including CRC errors, timeouts,
aborts, and the loss of RS–232–C/RS–423–A control signals.

eeee

The number of TIWAY I HDLC I–Frames received.

ffff

This value will always be zero.

gggg

The number of TIWAY I HDLC errors, including command
rejects (FRMR), invalid HDLC responses, and sequence errors.
This number may reflect errors logged because a BROADCAST
NETWORK DATA TRANSFER command was issued in a
network that contains Intelligent Tank Transmitters (ITTs) as
secondary devices. These errors are logged because the ITT
returned a REJ even though the information was received.

Advertising