Siemens SPC3 manual Structure of the Diagnostics Buffer, WriteReadData / DataExchange DefaultSAP

Models: SPC3

1 68
Download 68 pages 15.75 Kb
Page 35
Image 35

 

 

 

 

 

 

 

 

 

 

SPC3

 

PROFIBUS Interface Center

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Address

 

 

 

Bit Position

 

 

 

 

 

Designation

 

 

Control

7

6

5

4

3

2

 

1

 

0

 

 

 

Register

 

 

 

 

 

 

 

 

 

 

 

 

 

0DH

0

0

0

0

0

0

 

￿

 

￿

New_Diag_Cmd

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

no Puffer

 

 

 

 

 

 

 

 

 

 

 

 

0

 

1

Diag_Puf1

 

 

 

 

 

 

 

 

 

 

 

 

1

 

0

Diag_Puf2

 

Figure 6.9: Coding Diag_Puffer_SM, New_Diag_Cmd

6.2.4.2 Structure of the Diagnostics Buffer:

The user transfers the diagnostics buffer displayed in the figure below to SPC3. The first 6 bytes are space holders, except for the three least significant bit positions in the first byte. The user stores the diagnostics bits, ‘Diag.Ext_Diag’ ‘Diag.Stat_Diag,” and Diag.Ext.Diag_Overflow’ in these three bit positions. The remaining bits can be assigned in any order. When sending, SPC3 pre-processes the first six bytes corresponding to the standard.

Byte

 

 

 

 

 

Bit Position

 

 

 

Designation

 

7

 

6

5

 

4

3

2

1

0

 

0

 

 

 

 

 

 

 

Ext_

Stat

Ext_

Spaceholder

 

 

 

 

 

 

 

 

Diag

Diag

Diag

 

 

 

 

 

 

 

 

 

Overf

 

 

 

1

 

 

 

 

 

 

 

 

 

 

Spaceholder

2

 

 

 

 

 

 

 

 

 

 

Spaceholder

3

 

 

 

 

 

 

 

 

 

 

Spaceholder

4

 

 

 

 

 

 

 

 

 

 

Spaceholder

5

 

 

 

 

 

 

 

 

 

 

Spaceholder

6-n

 

 

 

 

The user must input

 

 

Ext_Diag_Data (n = max 243)

Figure 6.10:

Structure of the Diagnostics Buffer for Transfer to the SPC3

The ‘Ext-Diag_Data’ the user must enter into the buffers follow after the SPC3-internal diagnostics data. The three different formats are possible here (device-related, ID-related, and port-related). In addition to the ‘Ext_Diag_Data,’ the buffer length also includes the SPC3 diagnostics bytes (R_Len_Diag_Puf1, R_Len_Diag_Puf2).

6.2.5 Write_Read_Data / Data_Exchange (Default_SAP)

6.2.5.1 Writing Outputs

SPC3 reads the received output data in the D buffer. After error-free receipt, SPC3 shifts the newly filled

buffer from ‘D’ to ‘N.’ In addition, the ‘DX_Outnterrupt’I is generated. The user now fetches the current output data from ‘N.’ The buffer changes from ‘N’to ‘U’ with the ‘Next_Dout_Buffer_Cmd,’ so that the current data of the application can be sent back for the master’s Read_Outputs.

If the user’s evaluation cycle time is shorter than the bus cycle time, the user does not find any new buffers with the next ‘Next_Dout_Buffer_Cmd’ in ‘N.’ Therefore, the buffer exchange is omitted, At a 12 Mbd baud rate, it is more likely, however, that the user’s evaluation cycle time is larger than the bus cycle time. This makes new output data available in ‘N’ several times before the user fetches the next buffer. It is guaranteed, however, that the user receives the data last received.

For ‘Power_On’, ‘Leave_Master’ and the Global_Control-Telegram ‘Clear,’ SPC3 deletes the D buffer and then shifts it to ‘N.’ This also takes place during the power up (entering into ‘Wait_Prm’). If theuser fetches this buffer, he receives the ‘U_buffer cleared’ display during the ‘Next_Dout_Buffer_Cmd.’ If the user is still supposed to enlarge the output data buffer after the Check_Config telegram, the user must delete this delta in the N buffer himself (possible only during the power-up phase in the ‘Wait_Cfg’ state).

If ‘Diag.Sync_Mode = 1’, the D buffer is filled butnot exchanged with the Write_Read_Data-Telegram, but rather exchanged at the next Sync or Unsync.

SPC3 Hardware Description

V1.3

Page 33

Copyright (C) Siemens AG 2003 All rights reserved.

 

2003/04

Page 35
Image 35
Siemens SPC3 manual Structure of the Diagnostics Buffer, WriteReadData / DataExchange DefaultSAP, Writing Outputs

SPC3 specifications

Siemens SPC3 is a state-of-the-art solution designed to enhance industrial automation, providing businesses with a robust platform for managing complex processes efficiently. This device epitomizes Siemens' commitment to innovation, blending cutting-edge technology with user-friendly features to deliver optimized performance across various applications.

One of the standout features of the Siemens SPC3 is its advanced processing capabilities. Equipped with high-performance processors, it can handle various tasks simultaneously, ensuring seamless operation even in demanding environments. This performance is complemented by enhanced memory capacity, which allows for increased data handling and improved execution speed, crucial for real-time monitoring and control applications.

The Siemens SPC3 also integrates a modular design, enabling flexibility and scalability. This characteristic allows users to customize their systems according to specific operational needs, adding or removing components as required. This adaptability is particularly beneficial for businesses that aim to scale their operations without incurring the substantial costs associated with overhauling existing systems.

Furthermore, the SPC3 employs the latest communication technologies, ensuring interoperability with various devices and systems. It supports industry-standard protocols, facilitating efficient data exchange between components. This connectivity is vital for establishing smart factories and enhancing overall productivity by creating a unified ecosystem.

Another significant aspect of the Siemens SPC3 is its focus on security. As cyber threats in industrial settings become increasingly sophisticated, Siemens prioritizes safeguarding user data and system integrity. The SPC3 incorporates advanced security features, including encryption and access control measures, to protect against unauthorized access and ensure data confidentiality.

Siemens has also emphasized ease of use in the SPC3. The interface is designed to be intuitive, allowing operators to navigate and configure the system effortlessly. Coupled with comprehensive software tools, users are empowered to implement changes swiftly while minimizing downtime.

In terms of energy efficiency, the SPC3 incorporates technologies that allow for optimized energy consumption, aligning with sustainability goals prevalent in today’s industries. By reducing energy waste, businesses not only lower operational costs but also contribute to environmental conservation.

In summary, Siemens SPC3 represents a significant advancement in industrial automation technology. Its high-performance processing, modular adaptability, advanced communication capabilities, robust security measures, and user-friendly design make it an ideal choice for businesses striving for efficiency and innovation in their operations. The SPC3 is more than just a control device; it is a comprehensive solution that meets the evolving demands of modern industries.