ProSoft Technology PS69-DPM User Manual

Page 63

Advertising
background image

PS69-DPM ♦ CompactLogix or MicroLogix Platform

Contents

PROFIBUS DPV1 Master

User Manual

ProSoft Technology, Inc.

Page 63 of 130

October 1, 2014

Global State Field

The 64 byte Global State Field is available to the user program via the input area of the
master module. This field contains status information of the PROFIBUS-DP system. It
always begins at byte offset 8 of the input area. The input area mapping of the Global State
Field is shown in the following table.

Byte Offset

Structure member

Data Type

Signification

Explanation

8

Global_bits

BOOL

GLOBAL-BITS

Global error bits, for a detailed
description of each bit and its

meaning see table below

9

DPM_State

SINT

PROFIBUS-DP
Master State

Main state of the PROFIBUS-DP
Master system
00hex: OFFLINE
40hex: STOP
80hex: CLEAR
C0hex: OPERATE

10

Err_rem_adr

SINT

Error Source

0 ... 125 Error detected with a

Slave device
255 Error with Master.

11

Err_event

SINT

Error Event

Error number, use the Err_rem_adr
value to determine if the error
occurred with a connected slave or
the Master itself. See error

numbers in table below.

12 to 13

Bus_err_cnt

INT

Bus Error Counter

Number of major bus errors.

14 to 15

Time_out_cnt

INT

Time Out Counter

Number of bus time outs.

16 to 23

Reserved[8]

SINT(8)

Reserved

Reserved 8 Bytes

24 to 39

Sl_cfg[128]

BOOL(128)

Slave Configuration

Bit Array

If the Sl_cfg bit of the
corresponding slave is logical "1"
the slave is configured in the
master, and serviced in its states.
"0" the slave is not configured in

the master

40 to 55

Sl_state[128]

BOOL(128)

Slave State Bit
Array

If the Sl_state bit of the
corresponding slave station is
logical "1" the slave and the master
are exchanging their I/O data. "0"
the slave and the master are not
exchanging their I/O data. The
values in variable Sl_state are only
valid, if the master runs the main
state OPERATE

56 to 71

Sl_diag[128]

BOOL(128)

Slave Diagnostic Bit
Array

If the Sl_diag bit of the
corresponding slave station is
logical "1" latest received slave
diagnostic data are available in the
internal diagnostic buffer. This data
can be read by the user with a
message. "0" since the last
diagnostic buffer read access of
the HOST, no values were change

in this buffer

Advertising