PROFIBUS Interface

PROFIBUS communication takes place via the D-sub port X101.

PROFIBUS Interface 1:

No ADS via PROFIBUS

The CX8031 does not support the ADS via PROFIBUS. The program download and debugging can take place exclusively via the Ethernet interface.

PROFIBUS address

The PROFIBUS address can be assigned using the DIP switch or permanently assigned in the System Manager. If the address is permanently defined, the address switch is ignored (see DIP switch).

GSD file

The GSD file is located in the TwinCAT folder \TwinCAT\IO\PROFIBUS. File name C8310CD7.gsd, the matching image is CX8031.dib. Insert these two files, image and GSD file, into your master configuration software.

PROFIBUS DpState

PROFIBUS Interface 2:

You can display the status of the PROFIBUS communication via the DpState and ascertain whether the slave is exchanging data (DpState=0) or whether there is an error or a problem.

0 = No error
1 = Station deactivated
2 = Station not exists
3 = Master lock
4 = Invalid slave response
5 = Parameter fault
6 = Not supported
7 = Config fault
8 = Station not ready
9 = Static diagnosis
10 = Diagnosis overflow
11 = Physical fault
12 = Data-Exchange left
13 = Severe bus fault
14 = Telegram fault
15 = Station has no ressources
16 = Service not activated
17 = Unexpected telegram
18 = Station ready
31 = only for EtherCAT gateways: WC-State of cyclic EtherCAT frame is 1
128 = slave, waiting for data transfer (or DP-Master in CLEAR-Mode)
129 = slave, waiting for configuration
130 = slave, waiting for parameter
131 = slave, waiting for baudrate
 

PROFIBUS ExtDiagFlag

Has no meaning in the case of the slave.