Set_Param (Sap61) - Siemens SPC3 Hardware Description

Profibus controller
Table of Contents

Advertisement

PROFIBUS Interface Center

6.2.2 Set_Param (SAP61)

6.2.2.1 Parameter Data Structure
SPC3 evaluates the first seven data bytes (without user prm data), or the first eight data bytes (with user
prm data). The first seven bytes are specified according to the standard. The eighth byte is used for SPC3-
specific characteristics. The additional bytes are available to the application.
Byte
7
6
5
0
Lock
Unlo.
Sync
Req
Req
Req
1
2
3
4
5
6
7
0
0
0
8-243
Byte 7
Spec_User_Prm_Byte
Bit
Name
0
Dis_Startbit
1
Dis_Stopbit
2
WD_Base
3-7
res
Figure 6.5: Data Format for the Set_Param_Telegram
6.2.2.2 Parameter Data Processing Sequence
In the case of a positive validatation for more than seven data bytes, SPC3 carries out the following
reaction, among others:
SPC3 exchanges Aux-Puffer1/2 (all data bytes are input here) for the Prm buffer, stores the input data
length in 'R_Len_Prm_Data', and triggers the 'New_Prm_Data Interrupt'. The user must then check the
'User_Prm_Data'
and
'User_Prm_Data_Not_Okay_Cmd.' The entire telegram is input in the buffer, that is, application-specific
parameter data are stored beginning with data byte 8 only.
The user response (User_Prm_Data_Okay_Cmd or User_Prm_Data_Not_Okay_Cmd) again takes
back the 'New_Prm_Data' interrupt. The user may not acknowledge the 'New_Prm_Data' interrupt in
the IAR register.
The relevant diagnostics bits are set with the 'User_Prm_Data_Not_Okay_Cmd' message and are branched
to 'Wait_Prm.'
The 'User_Prm_Data_Okay' and 'User_Prm_Data_Not_Okay' acknowledgements are reading accesses to
defined registers with the relevant signals:
'User_Prm_Finished':
'Prm_Conflict' :
'Not_Allowed',
Page 30
2003/04
Bit Position
4
3
2
1
Free
WD
Res
Res
Req
on
0
0
WD_
Dis
Base
Stop
Significance
The start bit monitoring in the
receiver is switched off with this bit.
Stop bit monitoring in the receiver is
switched off with this bit.
This bit specifies the time base used
to clock the watchdog.
WD_Base = 0: time base 10 ms
WD_Base = 1: time base 1 ms
to be parameterized with 0
either
reply
with
No additional parameter telegram is present.
An additional parameter telegram is present, processing again
Access not permitted in the current bus state
V1.3
SPC3
Designation
0
Res
Station status
WD_Fact_1
WD_Fact_2
MinTSDR
Ident_Number_High
Ident_Number_Low
Group_Ident
Dis
Spec_User_Prm_Byte
Start
User_Prm_Data
Default State
Dis_Startbit= 1 ,
that is, start bit monitoring is
switched off.
Dis_Stopbit= 0,
that is, stop bit monitoring is not
switched off.
WD_Base= 0,
that is, the time base is 10 ms
0
the
'User_Prm_Data_Okay_Cmd'
Copyright (C) Siemens AG 2003. All rights reserved.
or
SPC3 Hardware Description
with

Advertisement

Table of Contents
loading

Table of Contents