13.3 Reading A System Status List or Partial List With SFC 51 "Rdsysst"
13.3 Reading A System Status List or Partial List With SFC 51 "Rdsysst"
Description
With system function SFC 51 "RDSYSST" (read system status), you read a system
status list or a partial system status list.
You start the reading by assigning the value 1 to the input parameter REQ when
SFC 51 is called. If the system status could be read immediately, the SFC returns
the value 0 at the BUSY output parameter. If BUSY has the value 1, the read
function is not yet completed.
Note
If you call SFC 51 "RDSYSST" in the diagnostic interrupt OB with the SSL-ID
W#16#00B1 or W#16#00B2 or W#16#00B3 and access the module that initiated
the diagnostic interrupt, the system status is read immediately.
With SFC 51 "RDSYSST" only complete data records are transferred.
System Resources
If you start several asynchronous read functions (the jobs with SSL_ID
W#16#00B4 and W#16#4C91 and W#16#4092 and W#16#4292 and W#16#4692
and possibly W#16#00B1 and W#16#00B3) one after the other at brief intervals,
the operating system ensures that all the read jobs are executed and that they do
not interfere with each other. If the limits of the system resources are reached, this
is indicated in RET_VAL. You can remedy this temporary error situation by
repeating the job.
The maximum number of "simultaneously" active SFC 51 jobs depends on the
CPU. You will find this information in /70/ and /101/.
System Software for S7-300/400 System and Standard Functions - Volume 1/2
13-4 A5E00709327-01
SFCs for Diagnostics
SSL_HEADER
The SSL_HEADER parameter is a structure defined as follows:
SSL_HEADER: STRUCT
LENTHDR: WORD
N_DR: WORD
END_STRUCT
LENTHDR is the length of a data record of the SSL list or the SSL partial list.
x If you have only read out the header information of an SSL list, N_DR contains
the number of data records belonging to it.
x Otherwise, N_DR contains the number of data records transferred to the
destination area.
Error Information
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01 13-5
SFCs for Diagnostics
SSL_IDs
Note
For the partial lists that can be read out with SFC 51 "RDSYSST" refer to
x /72/ for the S7-300
x The following table for the S7-400.
System Software for S7-300/400 System and Standard Functions - Volume 1/2
13-6 A5E00709327-01
SFCs for Diagnostics
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01 13-7
SFCs for Diagnostics
System Software for S7-300/400 System and Standard Functions - Volume 1/2
13-8 A5E00709327-01
SFCs for Diagnostics
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01 13-9