Chk_Cfg (Sap 62) - Profichip VPC3+S User Manual

Hide thumbs Also See for VPC3+S:
Table of Contents

Advertisement

Address
Figure 6-7: Coding of User_Prm_(Not)_Okay_Cmd
If another Set_Prm telegram is supposed to be received in the meantime,
the signal Prm_Conflict is returned for the positive or negative
acknowledgement of the first Set_Prm telegram. Then the user must repeat
the validation because the VPC3+S has made a new Parameter-Buffer
available.
6.2.3

Chk_Cfg (SAP 62)

The user checks the correctness of the configuration data. After receiving
an error-free Chk_Cfg telegram, the VPC3+S exchanges the Aux-Buffer 1/2
(all data bytes are entered here) for the Config-Buffer, stores the input data
length in R_Len_Cfg_Data and generates the New_Cfg_Data interrupt.
Then the user has to check the User_Config_Data and either respond with
User_Cfg_Data_Okay_Cmd or with User_Cfg_Data_Not_Okay_Cmd. The
pure data is entered in the buffer in the format of the standard.
The
User_Cfg_Data_Not_Okay_Cmd response) clears the New_Cfg_Data
interrupt. The user cannot acknowledge the New_Cfg_Data in the IAR
register.
If an incorrect configuration is reported, several diagnosis bits are changed
and the VPC3+S branches to state WAIT-PRM.
For a correct configuration, the transition to DATA-EXCH takes place
immediately, if trigger counters for the parameter telegrams and
configuration telegrams are at 0. When entering into DATA-EXCH, the
VPC3+S also generates the Go/Leave_DATA-EXCH Interrupt.
If the received configuration data from the Config-Buffer is supposed to
result in a change to the Read_Config-Buffer (contains the data for the
Get_Cfg telegram), the user have to make the new Read_Config data
available in the Read_Config-Buffer before the User_Cfg_Data_Okay_Cmd
acknowledgement, that is the user has to copy the new configuration data
into the Read_Config-Buffer.
During acknowledgement, the user receives information about whether
there is a conflict or not. If another Chk_Cfg telegram was supposed to be
VPC3+S User Manual
Copyright © profichip GmbH, 2012
7
6
5
0FH
0
0
0
user
response
Revision 1.04
PROFIBUS DP Extensions 6
Bit Position
4
3
2
1
0
0
0
0
0
1
(User_Cfg_Data_Okay_Cmd
Designation
0
User_Prm_
Data_Not_Okay
0
User_Prm_Finished
1
Prm_Conflict
1
Not_Allowed
or
the
49

Advertisement

Table of Contents
loading

Related Products for Profichip VPC3+S

Table of Contents