Siemens SIMATIC S5 Manual page 68

Interface of the programmable controller
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

Start-Up, Tests, and Diagnostics
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
yes
yes
FB L2-RECEIVE call-up
PAFE or STB error in
FB L2-REC?
yes
Set
FEHL bit
CONF
Receiving
CONF (CONF
bit is set)
End
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
Right byte = service_code
You transfer the service code and, with service code 22
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
"RECEIVE viable"? (bit 0 of STB=1?)
Was last CONF / INDI
acknowledged?
no
Link_status
INDI
Receiving
INDI (INDI
bit is set)
)
H
Wish to send a REQUEST?
no
yes
Prepare parameter assignment for
FB L2-SEND
Call up FB L2-SEND
PAFE or STB error in
FB L2-SEND?
yes
Set FEHL bit
Reset "REQ" bit or wait for
confirmation
, the address of the remote
H
S5-95U, SINEC L2
no
no
(Is REQ bit set?)
no
no
EWA 4NEB 812 6112-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinec l2S5-95u

Table of Contents