Read_Inputs (Sap56); Read_Outputs (Sap57); Get_Config (Sap59) - Siemens SPC3 Hardware Description

Profibus controller
Table of Contents

Advertisement

PROFIBUS Interface Center
Bit
Designation
0
Reserved
1
Clear_Data
2
Unfreeze
3
Freeze
4
Unsync
5
Sync
6,7
Reserved
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 initialization, 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
2003/04
Significance
With this command, the output data is deleted in 'D' and is changed
to 'N.'
With „Unfreeze," freezing input data is cancelled.
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.
The „Unsync" command cancels the „Sync" command.
The output data transferred with a WRITE_READ_DATA telegram is
changed from 'D' to 'N.' The following transferred output data is kept
in 'D' until the next 'Sync' command is given.
The „Reserved" designation specifies that these bits are reserved for
future function expansions.
V1.3
SPC3
SPC3 Hardware Description
Copyright (C) Siemens AG 2003. All rights reserved.

Advertisement

Table of Contents
loading

Table of Contents