252301 Issue 2.0.pdf - 第20页
GEM Manual for DEK Printers Capabilities I ssue 2.0 June 9th, 2011 page 20 of 156 State Definitions: DISABLED - During the Disable d state, there ar e no communications betwe en the equipment and the Host sy stem. The Di…

GEM Manual for DEK Printers Capabilities
Issue 2.0 June 9th, 2011 page 19 of 156
5.1 Establish Communications
This capability enables control of transitions between the normal communications and
inoperative communication conditions. The current state of the communication link is
continuously displayed at the equipment operator console as shown in appendix B. Appendix B
also shows the operator controls provided for switching between communications enabled and
disabled.
5.1.1 Communications State Model
The following diagram illustrates the level of communication with the equipment with regard
to the host system.
State Diagram:
C
DISABLED
System
Initialisation
.
COMMUNICATING
ENABLED
1
WAIT CRA
WAIT DELAY
WAIT TX.
COMPLETE
3
4
5
78
2
9
11
13
10
6
14
12
WAIT CR
FROM HOST
EQUIPMENT INITIATED CONNECTHOST INITIATED CONNECT
NOT COMMUNICATING
GEM Manual for DEK Printers Capabilities
Issue 2.0 June 9th, 2011 page 20 of 156
State Definitions:
DISABLED - During the Disabled state, there are no communications between the equipment
and the Host system. The Disabled state is active until the operator enables communications, or
the equipment is powered down.
ENABLED - In the Enabled state, the Host is able to communicate with the equipment over
the SECS-II link. The Enabled state is active until either the operator disables communications,
the equipment is powered down or a fault occurs.
NOT COMMUNICATING - In the Not Communicating state the communications link is
waiting to communicate. There are two sub-states, each with a further two sub-states:
Equipment Initiated Connect:
Wait CRA
An Establish Communications Request has been sent.
The equipment waits for the Host to acknowledge the request.
Wait Delay
A connection transaction has occurred. The CommsDelay timer has been
initialised. The equipment waits for the timer to expire.
Host Initiated Connect:
Wait CR from Host
Equipment waits for a S1F13 from the host. If a S1F13 is received the
equipment attempts to send a S1F14 with COMMACK = 0.
Wait Tx Complete
Wait for successful completion of the transmission of S1F14. May receive the
S1F14 from the Host in response to a previously sent S1F13. This state is
active until a communications response is required.
COMMUNICATING - In the Communicating state, communications have been established,
to the level selected by the operator (see Control State Model). Any message received is
subsequently processed for the appropriate response. The equipment may receive any message
from the Host, including S1F13. The Communicating state remains until communications are
disabled or a communication failure occurs. If the equipment receives S1F13 from the Host
while in the Communicating sub-state, it should respond with S1F14 with COMMACK set to
zero. Should the equipment receive S1F14 from a previously sent S1F13, no action is required.

GEM Manual for DEK Printers Capabilities
Issue 2.0 June 9th, 2011 page 21 of 156
Transition Table:
The following table shows the transitions that may occur within the communications state
model.
# Current State Trigger New State Action Comment
1 Powered
Down
Software and hardware
initialisation. Final
configuration determined
by config.cfg file.
System Default None The system
default may be set
to Disabled or
Enabled.
2 Disabled Operator action to select
Enabled.
Enabled None SECS-II comms
are enabled.
3 Enabled (any sub-
state)
Operator action to select
Disabled.
Disabled None SECS-II comms
are prohibited.
4 (Entry to Enabled) Any entry to Enabled
state.
Not Communicating None May enter from
system
initialisation or by
operator switch to
Enabled.
5 Any entry to
Equipment Initiated
Connect
Any entry to Not
Communicating.
Wait CRA. Initialise comms.
Set CommsDelay
timer to ‘expired’.
Send S1F13.
Begin to attempt
to establish
comms.
6 Wait CRA Connection transaction
failure.
Wait Delay Initialise
CommsDelay timer
Wait for timer to
expire.
7 Wait Delay CommsDelay timer
expired.
Wait CRA Send S1F13. Wait for S1F14.
May receive
S1F13 from host.
8 Wait Delay Receive a message other
than S1F13.
Wait CRA Drop msg. Set
CommsDelay timer
to ‘expired’. Send
S1F13.
Indicates
opportunity to
establish comms.
9 Wait CRA Received expected
S1F14 with
COMMACK = 0.
Communicating None Communications
established.