Siemens SPC3 manual UserWatchdogTimer, GlobalControl SAP58

Page 37

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

Image 37 Contents
Simatic NET Page SIM Atic NET SPC3 Hardware Description Profibus Interface CenterRelease Date Changes VersionsStatus Register Interrupt Controller Watchdog Timer Mode RegisterDPBuffer Structure Description of the DP Services DirectoryAsic Test 11.3 Diagnostics Processing from the System ViewPin Assignment Example for the RS 485 Interface SPC3 Introduction Function Overview Cmos Pin DescriptionCPD Cmos with pull down TTLt Schmitt trigger V1.3 Memory Area Distribution in the SPC3 Memory Allocation5FFH Segment Processor Parameters Latches/Register OCH 0DH Significance Write Access0EH 0FH Organizational Parameters RAM 1BH 1AH1CH 1DHAsic Interface Mode RegisterDisstartcontrol STARTSPC3 Mode Register 1 Mode-REG1, writableExiting the Offline state EOIStatus Register Status Register Bit15 . .readable FdlindstSPC3 IRR IMR Interrupt ControllerDxout IAR IMRAutomatic Baud Rate Identification Watchdog TimerBaud Rate Monitoring Response Time MonitoringDPBuffer Structure PROFIBUS-DP InterfaceUart Aux-Buffer Management RAMSetSlaveAddress SAP55 Description of the DP ServicesSequence for the SetSlaveAddress Utility Parameter Data Structure SetParam SAP61Parameter Data Processing Sequence SPC3 CheckConfig SAP62SlaveDiagnosis SAP60 Diagnostics Processing SequenceSPC3 WriteReadData / DataExchange DefaultSAP Structure of the Diagnostics BufferWriting Outputs Reading Inputs GlobalControl SAP58 UserWatchdogTimerReadInputs SAP56 GetConfig SAP59ReadOutputs SAP57 Universal Processor Bus Interface Hardware InterfaceGeneral Description Bus Interface Unit BIUBus Interface V1.3 XINT/MO ModeLow Cost System with 80C32 Switching Diagram PrinciplesSystem X86-Mode Application with the 80 C SPC3Application with th 80 C Uart Interface SignalsAsic Test Maximum Limit Values Technical DataPermitted Operating Values DC-Specifikation of the I/O- DriversTabel 8.3 DC-Specifikation of the I/O- Drivers AC-Specification for the Output DriversCurrent Tabelle 8.5 Leakage current of the output drivers SYS Bus Interface Timing CharacteristicsClock pulse 48 Mhz Clock Pulse TimingTiming in the Synchronous C32-Mode ResetST-Vers Min Max Unit TBDSynchronous Intel-Mode, Processor-Write-Timing Synchronous Intel-Mode, Processor-Read-TimingST-Vers Timing in the Asynchronous Intel Mode X86 ModeParameter Min Max XRD XCS Xready Asynchronous Intel-Mode, Processor-Read-TimingAsynchronous Intel-Mode, Processor-Write-Timing XWR XCSSynchronous Motorola-Mode, Processor-Read-Timing 4.1 74.2Timing in the Asynchronous Motorola-Mode for example, 68HC16 Synchronous Motorola-Mode, Processor-Write-TimingXCS Xdsack Asynchronous Motorola-Mode, Processor-Read-TimingAsynchronous Motorola-Mode, Processor-Write-Timing Pulse 48 MHz Serial Bus InterfaceHousing PQFP-44 Housing SPC3 Hardware Description 13.65 Symbol Min Typ Max AMI-Vers13.90 14.15Pin Assignment Profibus InterfaceRTS TXDSN65ALS1176 Example for the RS 485 InterfaceAddresses AppendixProfibus User Organisation Technical contact person at ComDeC in GermanyOrdering of ASICs General Definition of Terms10.3.1 SPC3 AMI 10.3.2 SPC3 STDiagnostics Bits and Expanded Diagnostics Appendix a Diagnostics Processing in Profibus DPIntroduction StatdiagIdentifier Byte 7 has Etc Identifier Byte 0 has Single Diagnostics Diagnostics Processing from the System ViewSimatic S5 / COM ET CombiData format in the Siemens PLC Simatic Appendix B Useful InformationPage Siemens Aktiengesellschaft