EasyManua.ls Logo

Profichip VPC3+S - Write_Read_Data; Data_Exchange (Default_Sap)

Default Icon
132 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 PROFIBUS DP Extensions
52
Revision 1.04
VPC3+S User Manual
Copyright © profichip GmbH, 2012
Address
Bit Position
Designation
7
6
5
4
3
2
1
0
0DH
0
0
0
0
0
0
New_Diag_
Buffer_Cmd
0
0
No_Buffer
0
1
Diag_Buf1
1
0
Diag_Buf2
Figure 6-10: Coding of New_Diag_Cmd
Byte
Bit Position
Designation
7
6
5
4
3
2
1
0
0
Ext_Diag_
Overflow
Stat_Diag
Ext_Diag
1
2
3
4
5
6
:
n
user input
Ext_Diag_Data
(n = max. 243)
Figure 6-11: Format of the Diagnosis-Buffer
The Ext_Diag_Data must be entered into the buffers after the VPC3+S
internal diagnosis data. Three different formats are possible here: device-
related, ID-related and port-related. If PROFIBUS DP extensions shall be
used, the device-related diagnosis is substituted by alarm and status
messages. In addition to the Ext_Diag_Data, the buffer length also includes
the VPC3+S diagnosis bytes (R_Len_Diag_Buf 1, R_Len_Diag_Buf 2).
6.2.5 Write_Read_Data / Data_Exchange (Default_SAP)
Writing Outputs
The VPC3+S writes the received output data in the 'D' buffer. After an error-
free receipt, the VPC3+S shifts the newly filled buffer from ‘D’ to ‘N'. In
addition, the DX_Out interrupt is generated. The user now fetches the
current output data from ‘N’. The buffer changes from ‘N’ to ‘U’ with the
Next_Dout_Buffer_Cmd, so that the current data can be transmitted to the
application by a RD_Output request from a DP-Master.

Table of Contents

Other manuals for Profichip VPC3+S