Siemens SPC3 manual ReadInputs SAP56, ReadOutputs SAP57, GetConfig SAP59

Page 38

 

PROFIBUS Interface Center

SPC3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

Designation

Significance

 

 

 

 

 

0

Reserved

 

 

 

 

 

 

1

Clear_Data

With this command, the output data is deleted in ‘D’ and is changed

 

 

 

 

to ‘N.’

 

 

 

 

 

2

Unfreeze

With „Unfreeze,“ freezing input data iscancelled.

 

 

3

Freeze

The input data is fetched from ‘N’ to ‘D’and „frozen“. New input data

 

 

 

 

is not fetched again until the master sends the next ‘Freeze’

 

 

 

 

command.

 

 

 

 

 

4

Unsync

The „Unsync“ command cancels the „Sync“ command.

 

 

5

Sync

The output data transferred with a WRITE_READ_DATA telegram is

 

 

 

 

changed from ‘D’ to ‘N.’ The following transferredoutput data is kept

 

 

 

 

in ‘D’ until the next ‘Sync’ command is given.

 

 

6,7

Reserved

The „Reserved“ designation specifies hat these bits are reserved for

 

 

 

 

future function expansions.

 

Figure 6.15: Data Format for the Global_Control Telegram

If the Control_Comand byte changed at the last received Global_Control telegram, SPC3 additionally generates the ‘New_GC_Command’ interrupt. During nitialization, SPC3 presets the ‘R_GC_Command’ RAM cell with 00H. The user can read and evaluate this cell.

So that Sync and Freeze can be carried out, these functions must be enabled in the mode register.

6.2.7 Read_Inputs (SAP56)

SPC3 fetches the input data like it does for the Write_Read_Data Telegram. Prior to sending, ‘N’ is shifted to ‘D,’ if new input data are available in ‘N.’ For ‘Diag.Freeze_Mode = 1,’ there is no buffer change.

6.2.8 Read_Outputs (SAP57)

SPC3 fetches the output data from the Dout buffer in ‘U’. The user must preset the output data with 0’‘ during start-up so that no invalid data can be sent here. If there is a buffer change from ‘N’ to ‘U’(through the Next_Dout_Buffer_Cmd) between the first call-up and the repetition, the new output data is sent during the repetition.

6.2.9 Get_Config (SAP59)

The user makes the configuration data available in the Read_Cfg buffer. For a change in the configuration after the Check_Config telegram, the user writes the changed data in the Cfg buffer, sets ‘EN_Change_Cfg_buffer = 1’ (see Mode-Register1), and SPC3 then exchanges the Cfg buffer for the Read_Cfg buffer. (See Section 3.2.3.) If there is a change in the configuration data (for example, for the modular DP systems) during operation, the user must return with ‘Go Offline’ (see Mode Register1) to ‘Wait_Prm’ to SPC3.

Page 36

V1.3

SPC3 Hardware Description

2003/04

 

Copyright (C) Siemens AG 2003. All rights reserved.

Image 38 Contents
Simatic NET Page SIM Atic NET Profibus Interface Center SPC3 Hardware DescriptionVersions Release Date ChangesDPBuffer Structure Description of the DP Services Mode RegisterStatus Register Interrupt Controller Watchdog Timer DirectoryPin Assignment Example for the RS 485 Interface 11.3 Diagnostics Processing from the System ViewAsic Test SPC3 Introduction Function Overview Pin Description CmosCPD Cmos with pull down TTLt Schmitt trigger V1.3 5FFH Memory AllocationMemory Area Distribution in the SPC3 Segment Processor Parameters Latches/Register 0EH 0FH Significance Write AccessOCH 0DH Organizational Parameters RAM 1CH 1AH1BH 1DHMode Register Asic InterfaceDisstartcontrol Exiting the Offline state Mode Register 1 Mode-REG1, writableSTARTSPC3 EOIStatus Register Fdlindst Status Register Bit15 . .readableInterrupt Controller SPC3 IRR IMRDxout IMR IARBaud Rate Monitoring Watchdog TimerAutomatic Baud Rate Identification Response Time MonitoringPROFIBUS-DP Interface DPBuffer StructureUart RAM Aux-Buffer ManagementSequence for the SetSlaveAddress Utility Description of the DP ServicesSetSlaveAddress SAP55 Parameter Data Processing Sequence SetParam SAP61Parameter Data Structure CheckConfig SAP62 SPC3 SPC3 Diagnostics Processing Sequence SlaveDiagnosis SAP60 Writing Outputs Structure of the Diagnostics BufferWriteReadData / DataExchange DefaultSAP Reading Inputs UserWatchdogTimer GlobalControl SAP58ReadOutputs SAP57 GetConfig SAP59ReadInputs SAP56 General Description Hardware InterfaceUniversal Processor Bus Interface Bus Interface Unit BIUXINT/MO Mode Bus Interface V1.3Switching Diagram Principles Low Cost System with 80C32System X86-Mode SPC3 Application with the 80 CApplication with th 80 C Asic Test Interface SignalsUart Permitted Operating Values Technical DataMaximum Limit Values DC-Specifikation of the I/O- DriversCurrent Tabelle 8.5 Leakage current of the output drivers AC-Specification for the Output DriversTabel 8.3 DC-Specifikation of the I/O- Drivers Clock pulse 48 Mhz Timing CharacteristicsSYS Bus Interface Clock Pulse TimingST-Vers Min Max Unit ResetTiming in the Synchronous C32-Mode TBDSynchronous Intel-Mode, Processor-Read-Timing Synchronous Intel-Mode, Processor-Write-TimingParameter Min Max Timing in the Asynchronous Intel Mode X86 ModeST-Vers Asynchronous Intel-Mode, Processor-Write-Timing Asynchronous Intel-Mode, Processor-Read-TimingXRD XCS Xready XWR XCS4.1 74.2 Synchronous Motorola-Mode, Processor-Read-TimingSynchronous Motorola-Mode, Processor-Write-Timing Timing in the Asynchronous Motorola-Mode for example, 68HC16Asynchronous Motorola-Mode, Processor-Write-Timing Asynchronous Motorola-Mode, Processor-Read-TimingXCS Xdsack Serial Bus Interface Pulse 48 MHzHousing PQFP-44 Housing SPC3 Hardware Description 13.90 Symbol Min Typ Max AMI-Vers13.65 14.15RTS Profibus InterfacePin Assignment TXDExample for the RS 485 Interface SN65ALS1176Profibus User Organisation AppendixAddresses Technical contact person at ComDeC in Germany10.3.1 SPC3 AMI General Definition of TermsOrdering of ASICs 10.3.2 SPC3 STIntroduction Appendix a Diagnostics Processing in Profibus DPDiagnostics Bits and Expanded Diagnostics StatdiagIdentifier Byte 7 has Etc Identifier Byte 0 has Simatic S5 / COM ET Diagnostics Processing from the System ViewSingle Diagnostics CombiAppendix B Useful Information Data format in the Siemens PLC SimaticPage Siemens Aktiengesellschaft