SECS GEM Manual.pdf - 第56页
GEM Manual for DEK Printers Capabilities Issue 1.6 January 22, 2018 Page 56 of 171 Scenarios: Host defines messages to be spooled: Comments Host Equip ment Comments Host defines message s to be spo oled in case of commun…

GEM Manual for DEK Printers Capabilities
Issue 1.6 January 22, 2018 Page 55 of 171
Transition Table:
# Current State Trigger New State Action Comment
1 SPOOL
INACTIVE
Communications failure
detected.
SPOOL
ACTIVE
SpoolingCountActual
and SpoolCountTotal
are initialised to zero.
Any open transactions
with the host are
aborted.
SpoolStartTime is set
to current time.
The default state in each
OR substate is entered.
The message that could
not be sent remains in the
send queue and is dealt
with in the Spool Active
state. The collection
event Spooling Activated
has occurred.
2 SPOOL NOT
FULL
A message is generated that
will not fit in the spool area.
SPOOL FULL SpoolFullTime is set
to current time.
The message that would
not fit into the spool is
dealt with after the
transition. No collection
event is generated.
3 SPOOL
OUTPUT
Spool area emptied. SPOOL
INACTIVE
Spooling process
disabled. The operator
is informed that
spooling has been
terminated.
The collection event
Spooling Deactivated has
occurred. Transition
from the substate Spool
Load occurs.
4 NO SPOOL
OUTPUT
S6F23 received with RSDC
= 1.
PURGE
SPOOL
No Action Initiates purging process.
No collection event is
generated since this is
based on host request.
5 NO SPOOL
OUTPUT
S6F23 received with RSDC
= 0.
TRANSMIT
SPOOL
No Action Initiates message
transmission from spool.
No collection event is
generated since this is
based on host request.
6 TRANSMIT
SPOOL
Communication failure or
MaxSpoolTransmit reached.
NO SPOOL
OUTPUT
Spool transmission
process suspended.
If communications
failure, the event Spool
Transmit Failure has
occurred. No collection
event generated for
MaxSpoolTransmit
reached.
7 POWER ON Printer loses power. POWER OFF No Action Spooling context has
been maintained in non-
volatile storage prior to
this transition.
8 POWER OFF Power restored to Printer. POWER ON Spooling context
restored from non-
volatile memory.
If spooling were active
prior to power down, it
will continue. If
TRANSMIT SPOOL
was active at power
down, transition #6 is
expected to follow since
communications state is
initially NOT
COMMUNICATING.

GEM Manual for DEK Printers Capabilities
Issue 1.6 January 22, 2018 Page 56 of 171
Scenarios:
Host defines messages to be spooled:
Comments Host Equipment Comments
Host defines messages to be spooled in
case of communication failure.
S2F43 -->
<-- S2F44 Equipment acknowledges setup.
Host sends value for MaxSpoolTransmit:
Comments Host Equipment Comments
Host sends value for equipment
constant MaxSpoolTransmit.
S2F15 -->
<-- S2F16 Equipment acknowledges equipment constant
change.
Host sends request or delete spooled data: (MaxSpoolTransmit = 0)
(Communications were lost and then re-established)
Comments Host Equipment Comments
Host requests data that includes spool
related status variables.
S1F3 -->
S1F3 is one of several methods that could be
used.
<-- S1F4 Send status data.
Host requests or deletes spooled data. S6F23 -->
<-- S6F24 Request Spooled data acknowledged.
[IF] RSDC = 0 (Spool data requested.)
[THEN] The appropriate streams and functions
are used to transmit the spooled data to the host.
[ELSE_IF] RSDC = 1
[THEN] Spool data discarded.
[END_IF]
<-- S6F11 Spooling de-activated Event Report sent.
Acknowledge S6F12
Host sends request or delete spooled data: (MaxSpoolTransmit > 0)
(Communications were lost and then re-established)
Comments Host Equipment Comments
Host requests data that includes spool
related status variables.
S1F3 -->
S1F3 is one of several methods that could be
used.
<-- S1F4 Send status data.
e.g. SpoolCountActual = 8
MaxSpoolTransmit = 5
Host requests spooled data.
RSDC = 0
S6F23 -->
<-- S6F24 Request Spooled data acknowledged.
The five oldest messages in the spool are
transmitted to the host.
Spooling remains active.
Host recognises that
MaxSpoolTransmit has been reached.
Host requests remaining data.
RSDC = 0
S6F23 -->
<-- S6F24 Request Spooled data acknowledged.
The three remaining messages in the spool are
transmitted to the host.
<-- S6F11 Spooling de-activated Event Report sent.
Acknowledge S6F12
4.12 Verification and Traceability
The Verification and Traceability (V&T) option allows for detailed tracking and control of the process,
materials and products produced. Sub-options can be enabled to allow any or all materials to be
verified before use and all relevant data can be traced on a per-product basis.

GEM Manual for DEK Printers Capabilities
Issue 1.6 January 22, 2018 Page 57 of 171
4.12.1 Verification
Verification is controlled from the machine. There is no direct involvement from GEM beyond some
of the remote commands (see Appendix A) will return a failure code (HCACK of 66) if there are any
unverified items. An event (CEID 2034) will be sent and the failed item is available in a data variable
(DVID 2034).
4.12.2 Traceability
With traceability enabled, when a product finishes printing, an event is sent (CEID 40177) to the host
to identify that the traceability data is available. This data is available through a discrete data variable
(DVID 2033). This data variable contains all of the traceability data. Attempting to link this data
variable with any event except CEID 40177 will be refused.
The data lists all the product, process, verified items and SPC data associated with the last product
printed. A status value indicates if the product was printed successfully or not. See section 7.4 for
more details.