EasyManua.ls Logo

Siemens SINEC L2

Siemens SINEC L2
224 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Start-Up, Tests, and Diagnostics S5-95U, SINEC L2
3.4.4 Managing of all FMA Services with FB222
FB222 (named AG95/FMA) allows you, with a minimum of programming, to initiate and monitor
FMA jobs, and to react to them. You program FB222 once for a given S5-95U. FB222 can be used
for all the FMA services.
Structure the control program for the FMA services as shown in Figure 3-10.
Is FB222 processing blocked? (Is FEHL bit set?)
yes no
”RECEIVE viable”? (bit 0 of STB=1?)
yes no
FB L2-RECEIVE call-up
Was last CONF / INDI
acknowledged?
yes no
Wish to send a REQUEST?
(Is REQ bit set?)
yes no
PAFE or STB error in
FB L2-REC?
yes no
Set
FEHL bit
Link_status
CONF INDI
Prepare parameter assignment for
FB L2-SEND
End
Receiving
CONF (CONF
bit is set)
Receiving
INDI (INDI
bit is set)
Call up FB L2-SEND
PAFE or STB error in
FB L2-SEND?
yes no
Set FEHL bit
Reset ”REQ” bit or wait for
confirmation
Significance of the FB222 Parameters:
REQ Input parameter bit
Setting this bit triggers the request job with the service code specified in the CODE
parameter. You set the REQ bit before the FB222 call-up. FB222 resets the REQ bit after
the job has been triggered or if an error has occurred.
CODE Input parameter word
Left byte = station address of the remote station (valid only for FMA service
FDL_STATUS, service_code 22
H
)
Right byte = service_code
You transfer the service code and, with service code 22
H
, the address of the remote
station for the request job (triggered by parameter REQ).
CONF Output parameter bit (CONF=1 for all FMA services except MAC_EVENT)
FB222 tells you that a confirmation was received. You can evaluate the received data in
the receive area of data block DB200. FB222 sets bit CONF. You must reset bit CONF
after evaluation of the received data.
INDI Output parameter bit (INDI=1 for FMA service MAC_EVENT)
FB222 tells you that an indication was received. You can evaluate the received data in the
receive area of data block DB200. FB222 sets bit INDI. You must reset bit INDI after
evaluation of the received data.
FEHL Output parameter bit
FB222 tells you that a parameter assignment error or a status byte error has occurred.
FB222 sets the bit. You must reset the bit after you have evaluated it.
3-14
EWA 4NEB 812 6112-02

Table of Contents

Related product manuals