SECS GEM Manual - 第27页
GEM Manual for DEK Printers Capabilities Issue 1.6 January 22, 2018 Page 27 of 171 Scenario: Collection event report set up and send: Comments Host Eq uipment Comments [IF] Define repor t is multi-block [THEN] Send multi…

GEM Manual for DEK Printers Capabilities
Issue 1.6 January 22, 2018 Page 26 of 171
4.2 Data Collection
4.2.1 Event Reports
This capability enables the host to receive machine variable data when specific events
occur within the equipment. The host can control which events will cause a report to be
sent and which data items to include in a report (dynamic event configuration).
In addition, the operator can control which specific events are to be written to the
equipment’s local event log. The operator can also view the events enabled by the host.
Appendix B shows the operator procedures to achieve this.
The following outlines the steps that must be taken by the host system in order to cause
an event report to be sent. See chapter 5 for details of SECS II messages referred to as
SxxFxx.
The Host defines unique report with it’s own id. RPTID using S2F33. A report
includes one or more machine variables.
The Host links one or more reports to a collection event CEID using S2F35.
The Host enables collection event CEID with S2F37.
When event CEID occurs, the equipment sends event report S6F11, which
includes the report(s) RPTID. Multi-block reports are proceeded by a S6F5/F6
transaction.
The host may request event reports at other times using S6F15. However, care
should be taken not to request discrete data in this way, since the data may not
be valid at request time.
The reports defined by the Host and the Events enabled by the host are saved in
a file called “gem.cfg” and are loaded when the equipment powers up.

GEM Manual for DEK Printers Capabilities
Issue 1.6 January 22, 2018 Page 27 of 171
Scenario:
Collection event report set up and send:
Comments Host Equipment Comments
[IF] Define report is multi-block
[THEN] Send multi-block inquire
S2F39 -->
[END_IF] <-- S2F40 Multi-block grant
Send report definition S2F33 --> Receive DATAID’s, RPTID’s, & VID’s
<-- S2F34 Send DRACK = 0 report is OK
[IF]Link event report is multi-block
[THEN] Send multi-block inquire
S2F39 -->
[END_IF] <-- S2F40 Multi-block grant
Link reports to events S2F35 --> CEID's & RPTID's received
<-- S2F36 LRACK = 0
Enable specific collection events S2F37 --> CEED's & CEID's received
<-- S2F38 ERACK = 0
CEID, RPTID's & values received <-- S6F11 Sometime later, an event occurs
Acknowledge report S6F12 -->
4.2.2 Variable Data Collection
This capability facilitates synchronisation and initialisation. It enables the host to
request equipment data variables, but should not be used for discrete data.
The host can request any, previously defined, RPTID (see 3.2.1). The equipment sends
current values for Status variables (SV's) and Equipment Constants (ECV's). Discrete
variables (DVVAL's) are not valid.
Scenario:
Collection event report set up and send:
Comments Host Equipment Comments
Host requests data variables S6F19 -->
<-- S6F20 Equipment responds with list of variable data
for given RPTID

GEM Manual for DEK Printers Capabilities
Issue 1.6 January 22, 2018 Page 28 of 171
4.2.3 Trace Data Collection
This capability enables reports to be sent at fixed intervals. This is achieved as follows:
The host initialises a trace by sending S2F23. This message defines the trace
report including, time interval (DSPER), total number of samples (TOTSMP),
the number of samples per trace report (REPGSZ) and a list of data to report
(SVID's). The host also provides an identity for the trace (TRID) so that it can
later differentiate between simultaneous traces.
The total number of reports sent will be TOTSMP/ REPGSZ unless the host
sends a new S2F13 with the same TRID, when the trace replaced by a new one.
The host can end a trace by sending the same TRID, with TOTSMP = 0.
For a detailed example, of trace data collection, refer to note A.4 of SEMI E30
standard.
Scenario:
Collection event report set up and send:
Comments Host Equipment Comments
Trace Data Initialisation Request S2F23 -->
<-- S2F24 Acknowledge trace init.
[DO] TOTSMP / REPGSZ times
[DO] REPGSZ times: collect
SVID1-SVIDn data, wait DSPER
[END_DO]
<-- S6F1 Send report.
Acknowledge report S6F2 -->
Optional terminate. TOTSMP = 0 S2F23 -->
<-- S2F24 Acknowledge premature terminate. Stop trace.
[END_DO]