| | | | | | | | | | | | | | SPC3 | | PROFIBUS Interface Center |
| | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| Address | | | | | Bit Position | | | | | Designation | |
| Control | 7 | | 6 | 5 | | 4 | 3 | | 2 | | | 0 | | | |
| Register | | | | | | | | | | | | | | | |
| 08H | | | F | U | | N | | | D | Din_Buffer_SM | |
| | | | | X1 | | X2 | X1 | | X2 | X1 | | X2 | | X1 | X2 | See below for coding. | |
| | | | | | | | | | | | | | | |
| X1 | X2 | Coding | | | | | | | | | | | | |
| 0 | | | 0 | Nil | | | | | | | | | | | | | | |
01 Din_Buf_Ptr1
10 Din_Buf_Ptr2
11 Din_Buf_Ptr3
Figure 6.13: Din_Buffer Management
When reading the ‘New_Din_Buffer_Cmd’ the user getsthe information which buffer (U-buffer) belongs to the user after the change (Din_Buf_Ptr 1-3).
Address | | | | Bit Position | | | | Designation |
Control | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
Register | | | | | | | | | |
09H | 0 | 0 | 0 | 0 | 0 | 0 | | | New_Din_Buf_Cmd |
| | | | | | | 0 | 1 | Din_Buf_Ptr1 |
| | | | | | | 1 | 0 | Din_Buf_Ptr2 |
| | | | | | | 1 | 1 | Din_Buf_Ptr3 |
Figure 6.14: Next_Din_Buffer_Cmd
6.2.5.3 User_Watchdog_Timer
After power-up (‘DATA_EX’ state), it is possible that SPC3 continually answers Write_Read_Data-telegrams without the user fetching the received Din buffers or making new Dout buffers available. If the user processor ‘hangs up,’ the master would not receivethis information. Therefore, a ‘User_Watchdog_Timer’ is implemented in SPC3.
This User_Wd_Timer is an internal 16-bit RAM cell that is started from a ‘R_User_Wd_Value15..0’ value the user parameterizes and is decremented with each received Write_Read_Data telegram from SPC3. If the timer attains the ‘0000hex’ value, SPC3 transitionsto the ‘Wait_Prm’ state, and the DP_SM carries outa ‘Leave_Master.’ The user must cyclically set thistimer to its start value. Therefore, ‘Res_User_Wd= 1’ must be set in mode register 1. Upon receipt of the next Write_Read_Data telegram, SPC3 again loads the User_Wd_Timer to the parameterized value ‘R_User_Wd_Value15..0’ and sets ‘Res_User_Wd = 0’ (Mode Register 1). During power-up, the user must also set ‘Res_User_Wd = 1’, so that the User_Wd_Timer is even set at its parameterized value.
6.2.6 Global_Control (SAP58)
SPC3 itself processes the Global_Control-Telegrams in the manner already described. In addition, this information is available to the user.
The first byte of a valid Global_Control command is stored in the R_GC_Comand RAM cell. The second telegram byte (Group_Select) is processed internally.
Address | | | | Bit Position | | | | Designation |
RAM | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
Cell | | | | | | | | | |
3CH | Res | Res | Sync | Un | Freeze | Un | Clear_ | Res | R_GC_Command |
| | | | sync | | freeze | Data | | |
SPC3 Hardware Description | V1.3 | Page 35 |
Copyright (C) Siemens AG 2003 All rights reserved. | | 2003/04 |
Simatic NET
Page
SIM Atic NET
SPC3 Hardware Description
Profibus Interface Center
Release Date Changes
Versions
Status Register Interrupt Controller Watchdog Timer
Mode Register
DPBuffer Structure Description of the DP Services
Directory
Asic Test
11.3 Diagnostics Processing from the System View
Pin Assignment Example for the RS 485 Interface
SPC3
Introduction
Function Overview
Cmos
Pin Description
CPD Cmos with pull down TTLt Schmitt trigger V1.3
Memory Area Distribution in the SPC3
Memory Allocation
5FFH
Segment
Processor Parameters Latches/Register
OCH 0DH
Significance Write Access
0EH 0FH
Organizational Parameters RAM
1BH
1AH
1CH
1DH
Asic Interface
Mode Register
Disstartcontrol
STARTSPC3
Mode Register 1 Mode-REG1, writable
Exiting the Offline state
EOI
Status Register
Status Register Bit15 . .readable
Fdlindst
SPC3 IRR IMR
Interrupt Controller
Dxout
IAR
IMR
Automatic Baud Rate Identification
Watchdog Timer
Baud Rate Monitoring
Response Time Monitoring
DPBuffer Structure
PROFIBUS-DP Interface
Uart
Aux-Buffer Management
RAM
SetSlaveAddress SAP55
Description of the DP Services
Sequence for the SetSlaveAddress Utility
Parameter Data Structure
SetParam SAP61
Parameter Data Processing Sequence
SPC3
CheckConfig SAP62
SlaveDiagnosis SAP60
Diagnostics Processing Sequence
SPC3
WriteReadData / DataExchange DefaultSAP
Structure of the Diagnostics Buffer
Writing Outputs
Reading Inputs
GlobalControl SAP58
UserWatchdogTimer
ReadInputs SAP56
GetConfig SAP59
ReadOutputs SAP57
Universal Processor Bus Interface
Hardware Interface
General Description
Bus Interface Unit BIU
Bus Interface V1.3
XINT/MO Mode
Low Cost System with 80C32
Switching Diagram Principles
System X86-Mode
Application with the 80 C
SPC3
Application with th 80 C
Uart
Interface Signals
Asic Test
Maximum Limit Values
Technical Data
Permitted Operating Values
DC-Specifikation of the I/O- Drivers
Tabel 8.3 DC-Specifikation of the I/O- Drivers
AC-Specification for the Output Drivers
Current Tabelle 8.5 Leakage current of the output drivers
SYS Bus Interface
Timing Characteristics
Clock pulse 48 Mhz
Clock Pulse Timing
Timing in the Synchronous C32-Mode
Reset
ST-Vers Min Max Unit
TBD
Synchronous Intel-Mode, Processor-Write-Timing
Synchronous Intel-Mode, Processor-Read-Timing
ST-Vers
Timing in the Asynchronous Intel Mode X86 Mode
Parameter Min Max
XRD XCS Xready
Asynchronous Intel-Mode, Processor-Read-Timing
Asynchronous Intel-Mode, Processor-Write-Timing
XWR XCS
Synchronous Motorola-Mode, Processor-Read-Timing
4.1 74.2
Timing in the Asynchronous Motorola-Mode for example, 68HC16
Synchronous Motorola-Mode, Processor-Write-Timing
XCS Xdsack
Asynchronous Motorola-Mode, Processor-Read-Timing
Asynchronous Motorola-Mode, Processor-Write-Timing
Pulse 48 MHz
Serial Bus Interface
Housing PQFP-44 Housing SPC3 Hardware Description
13.65
Symbol Min Typ Max AMI-Vers
13.90
14.15
Pin Assignment
Profibus Interface
RTS
TXD
SN65ALS1176
Example for the RS 485 Interface
Addresses
Appendix
Profibus User Organisation
Technical contact person at ComDeC in Germany
Ordering of ASICs
General Definition of Terms
10.3.1 SPC3 AMI
10.3.2 SPC3 ST
Diagnostics Bits and Expanded Diagnostics
Appendix a Diagnostics Processing in Profibus DP
Introduction
Statdiag
Identifier Byte 7 has Etc Identifier Byte 0 has
Single Diagnostics
Diagnostics Processing from the System View
Simatic S5 / COM ET
Combi
Data format in the Siemens PLC Simatic
Appendix B Useful Information
Page
Siemens Aktiengesellschaft