Technical data

12.9.2 Program Example for the LSAP_STATUS Service
For the example, DB 141 is set up to store the request and confirmation
data.
The following parameters must be specified for the FMA service
LSAP_STATUS.
com_class 00
H
= request
service_code 19
H
= LSAP_STATUS
Remote SAP no. 30
H
= dest SAP
rem_add_station 0A
H
= address of the receiver
rem_add-segment FF
H
= irrelevant, always enter FF
H
After accepting the confirmation block with the HDB RECEIVE, the values
are entered in the DB and can then be processed further by the user
program.
DB 141 Explanation
0: KH = 0000;
1: KY = 000,000
2: KY = 025,000
3: KY = 000,061
4: KY = 002,255
5: KH = 0000;
6: KY = 000,000
7: KY = 000,000
8: KY = 000,000
9: KY = 000,000
**** REQUEST_HEADER******
com_class / user_id
service_code / no significance
no significance / remote SAP-Nr.
no significance / rem_add_segment
******CONFIRMATION*******
com_class / user_id
service_code / link_status
no significance / remote SAP-Nr.
rem_add_station/ rem_add_segment
10:KM = 00000000 00000000
11:KM = 00000000 00000000
12:KM = 00000000 00000000
13:KH = 0000;
14:KH = 0000;
15:KH = 0000;
statusbyte 1 / statusbyte 2
Status SDA / Status SDN
Status SRD / Status CSRD
Table 12.18 DB 141
Service and Diagnostics using FMA Functions B8976060/02
Volume 1 12 - 40