Error handling and diagnosis, Diagnostics profibus state, Read the fieldbus state via ads – BECKHOFF BC3150 User Manual
Page 94
Safety Instructions
92
Fieldbus Components
7. Error handling and diagnosis
Diagnostics
PROFIBUS state
In many cases it is important to know whether the communication with the higher-level master is still OK. To this end,
link the DpState variable with your PLC program.
Fig. PROFIBUS diagnostics byte in the System Manager
Error number
Description
Remedy
0
No error
-
129
Waiting for configuration data
Start PROFIBUS
130
Waiting for parameter data
Start PROFIBUS
131
No master available
Check PROFIBUS cables and connectors
Example
If the PROFIBUS is interrupted, e.g. because the cable was pulled or the PLC was switched off, the BX3100/BC3150
reports this as 130 in the DP state. This means the BX3100/BC3150 is waiting for parameter data from the master.
Slave boot sequence after a timeout or starting of the master:
parameter data - configuration data - data exchange
Read the fieldbus state via ADS
In the default configuration and TwinCAT configuration you can read the field bus state about ADSREAD.
Parameter ADSREAD function block
description
NetID
local - empty string
Port
1
IndexGroup
16#0006
IndexOffset
BX3100: 16#000C_A0F4
BC3150: 16#000C_A080
LEN
1