00193786-02 - 第56页

S I P L A C E G EM S W V e r s i on G EM 505 . 03 SP 1 H O S T I n t e r f a c e M anua l P age 56 o f 241 ©S i e m en s A G, a ll r i gh t s r e s e r v ed Ho s t. I f z e r o , a ll s poo l ed m e ss age s a r e s en t…

100%1 / 241
SIPLACE GEM SW Version GEM 505.03 SP1 HOST Interface Manual
©Siemens AG, all rights reserved page 55 of 241
SPOOLING STARTS
When a transmission failure occurs, the first message sent to the spool is the event
message GemSpoolingActivated (CEID 1000007). The next message sent to the spool
is the message which caused the communications failure. The following table depicts
the activity at the SIPLACE when spooling starts.
# Equipment Send
Sequence
Spool Sequence Description
1 S5F1 (Alarm
Report 1)
S6F11 (Spool
Activated Event
Report)
Equipment attempts to send an alarm
report to the Host, but experiences a
transmit failure. The
GemSpoolingActivated event (CEID
1000007) is sent to the spool.
Variable GEMSPOOLSTARTTIME
(VID 1002042) is updated.
2 S5F1 (Alarm
Report 1)
The Alarm Report message is sent to
the spool.
3 S6F11 (Event
Report 1)
S6F11 (Event
Report 1)
The Equipment generates an event
report and it is sent to the spool.
4 S5F1 (Alarm
Report 2)
S5F1 (Alarm
Report 2)
The Equipment generates an alarm
report and it is sent to the spool.
EQUIPMENT SPOOLS MESSAGES
While spooling messages, the Equipment will increment the SPOOLCOUNTACTUAL
(VID 1002038) and SPOOLCOUNTTOTAL (VID 1002039) status variables for each
message spooled. Messages which require an inquire/grant scenario are spooled along
with the inquire message as a single message. That is, if a multi-block S6F11 (Event
Report) message is being sent to the Host and spooling is active, the S6F5 (inquire) as
well as the S6F1 are sent to the spool and SPOOLCOUNTTOTAL (VID 1002039) and
SPOOLCOUNTACTUAL (VID 1002038) are incremented by one.
The SIPLACE maintains two Equipment Constants which effect the spooling of
messages. The first is CONFIGSPOOL (VID 1002045). If this is set to zero, then
spooling will never become active. If it is set to one, spooling will become active when a
transmission failure occurs.
The EC OVERWRITESPOOL (VID 1002046) determines if the Equipment should over-
write the oldest messages with new ones when the spool becomes full. If
OVERWRITESPOOL is TRUE, old messages will be over-written with new ones. If
FALSE, new messages will be discarded when the spool is full.
SAFE SPOOL MODE
The EC SAFE_SPOOL_MODE (ECID 1002943) determines whether the equipment
should stop (like a Remote-Stop see chapter 3.11.1.2 ) when the total spooltime reaches
the value determined by the EC MAX_TIME_TO_STOP (ECID 1002942).
In this case (safe spool stop) a restart ist only possible by transmitting or purging the
spooled data ( new state is 'SpooI Inactiv') and a remote start command by the host.
HOST READS SPOOLED DATA
The Host can read spooled messages by sending the S6F23 message. Upon receipt of
this message, the Equipment will reply and attempt to send spooled messages.
Messages are sent in order of oldest to newest, with no priority given to a particular kind
of message. The EC MAXSPOOLTRANSMIT (VID 1002037) determines the maximum
number of spooled messages which are sent per S6F23 message received from the
SIPLACE GEM SW Version GEM 505.03 SP1 HOST Interface Manual
Page 56 of 241 ©Siemens AG, all rights reserved
Host. If zero, all spooled messages are sent, if any other number, that number of
messages are sent.
During the de-spooling of messages, the Equipment maintains only one outstanding
Equipment-Initiated transaction. The equipment will wait for either a reply to the primary
or a T3 timeout before starting another transaction. If the de-spooled message requires
a inquire/grant scenario, the Equipment will initiate this transaction first. If the Host
accepts the inquire, the message is sent. If not, then the Equipment removes the
message from the spool and discards it.
If a transmission failure occurs while attempting to send the spool, the event
GemSpoolTransmitFailure (CEID 1000009) is sent to the spool and spooling will remain
active. While the spool is active, any new (spoolable) messages generated by the
Equipment are also sent to the spool.
When the spool has been completely transmitted, the event GemSpoolingDeactivated
(CEID 24) is sent to the Host.
Instead of reading spooled messages, the Host can purge the spool by sending S6F23
with RSDC = 1. For details, please see section "S6F23 -- Request Spooled Data".
Purge Spool
Transmit
Spool
Spool Full
Spool Not Full
5
6
Spool Output
987
4
No Spool Output
Spool Active
Spool Inactive
10
3
Power Off
H*
Power On
Spooling State Diagram
1
2
Spooling State Diagram
SIPLACE GEM SW Version GEM 505.03 SP1 HOST Interface Manual
©Siemens AG, all rights reserved page 57 of 241
3.10.3 Spooling State Transitions
# From Trigger To Description
1 Power On Equipment
shutdown
Power Off The Equipment may
power off at any time.
2 Power Off Equipment Startup History*
(Power On)
Equipment re-boots
after a shutdown.
Spooling will continue
according to its state
when the equipment
was powered off.
3 Spool
Inactive
SIPLACE
experiences a
transmission failure
and the variable
CONFIGSPOOL
(VID 1002045) is set
to 1 (enabled).
Spool Active SIPLACE will now
start spooling any
messages which have
been defined by the
Host.. If the Host
does not wish to
implement Spooling,
the EC
GemConfigSpool
should be set to 0
and the spool state
will never become
active.
4 Default Entry into Spool
Active
No Spool
Output
No spooled messages
are being read by the
Host.
5 Default Entry into Spool
Active
Spool Not
Full
The spool file has not
yet filled up.
6 Spool Not
Full
The Equipments
spool has reached
capacity.
Spool Full The Equipment will
start to either discard
new messages
destined for the spool
or overwrite the
beginning of the
spool, depending on
the setting of
OVERWRITESPOOL
(VID 1002046).
7 Transmit
Spool
The Equipment has
de-spooled some
messages, but not
all have been sent to
the Host.
No Spool
Output
No spooled messages
are being read by the
Host.
8 No Spool
Output
The Host has
requested spooled
messages to be sent
by sending S6F23.
Transmit
Spool
The SIPLACE will
send messages
according to the
setting of
MAXSPOOLTRANSM
IT (VID 1002037) .If
GemMaxSpoolTransm
it is zero, all
messages will be sent,
otherwise only the