Siemens SIMOCODE pro Function Manual page 68

Industrial controls, motor management and control devices, communication
Hide thumbs Also See for SIMOCODE pro:
Table of Contents

Advertisement

Communication
2.2 PROFINET communication
Alarm processing
On process warnings, process faults, and device faults, SIMOCODE pro V PN (GP) makes
diagnostic interrupt requests to the CPU (on both the raised and the cleared event). The
precondition is that the diagnostics response has been enabled for these events in the
device parameterization (see Section "Configuring the diagnostics response" above).
The operating system calls the OB 82 based on the diagnostics request. The local variables
of OB 82 contain the logical base address and four bytes of diagnostics data about the
SIMOCODE pro V PN (GP) device in question.
If you have not programmed OB 82, the CPU will switch to the "STOP" status.
Reading diagnostics data records with SFB 52 "RDREC" in OB 1
With SFB 52 "RDREC," you read the data record with number INDEX from the
SIMOCODE pro V PN (GP) IO Device addressed by means of ID. ID contains the logical
address with which SIMOCODE pro V PN was configured in STEP 7 HW Config.
Example:
If you want to obtain diagnostic information with the 0xE00A diagnostics data record for the
pending faults from SIMOCODE pro V PN at the device level, INDEX = W#16#E00A.
With the MLEN variable, you specify the maximum number of bytes to be read. For this
reason, you select the target area RECORD to be at least the same size as MLEN.
The "true" value of the VALID output parameter indicates that the data record has been
successfully transferred to the target area RECORD. In this case, the output parameter LEN
has the length of the read data in bytes.
If an error occurs during data record transmission, this will be displayed in the "ERROR"
output parameter. In case of an error, "ERROR = true" is set and the error data will be
contained in the "STATUS" output parameter.
Note
STEP 7 online help
You will find a detailed explanation of SFB 52 "RDREC" in the STEP 7 Online Help.
Note
Complete diagnostics information from SIMOCODE pro V PN (GP)
Note that reading the diagnostics data records 0xCXXX only ever provides the pending
diagnostics.
You can evaluate the complete diagnostics information of SIMOCODE pro V PN (GP) by
reading data record 92 (0x005C).
You will find more information and detailed examples in Chapter 8 of the programming
manual "PROFINET IO - from PROFIBUS DP to PROFINET IO"
(https://support.automation.siemens.com/WW/view/en/19289930).
68
SIMOCODE pro - Communication
Function Manual, 11/2018, A5E40508495002A/RS-AC/003

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents