00193786-01 - 第30页
SIPLACE GEM SW Version GEM 505.01 HOST Interface Manual Page 30 of 236 ©Siemens AG, all rights reserved 3.2.2 Control State Transitions Certain state transitions will cause a collect ion event to be signaled. If the even…

SIPLACE GEM SW Version GEM 505.01
HOST Interface Manual
©Siemens AG, all rights reserved page 29 of 236
3.2.1 Control Finite State Description
The Control State of the Equipment is illustrated in the Control Finite State Diagram. The
SIPLACE behaves differently and will accept different messages depending on its current
control state. The purpose of this diagram is to make clear to the Host exactly what is
happening at the Equipment. The logic for these states and transitions is the logic
specified in the GEM standard.
Equipment C
Off-Line
Host
Off-Line
C
Attempt
On-Line
3
7
5
6
4
C
1
2
Off-Line
Local Remote
12
13
C
11
On-Line
14 10 9
Equipment Control States
8

SIPLACE GEM SW Version GEM 505.01 HOST Interface Manual
Page 30 of 236 ©Siemens AG, all rights reserved
3.2.2 Control State Transitions
Certain state transitions will cause a collection event to be signaled. If the event is
enabled, this event will be sent to the Host along with the appropriate reports if
appropriate. This table lists the state transitions and notes when events will be sent to
the Host.
# From Trigger To Description
1 Unknown Power-Up Conditional This transition is made
to either the Off-Line or
On-Line state,
depending on the EC
INITCONTROLSTATE
(VID 1002005).
2 Unknown Power-Up Conditional This conditional
transition is governed
by the value of the
OFFLINESUBSTATE
EC (VID 1002010).
3 Equipment
Off-Line
Operator requests to
go On-Line
Attempt On-
Line
The SIPLACE will
immediately send an
S1F1 to request to go
On-Line.
4 Attempt On-
Line
Unsuccessful On-
Line request
Conditional This transition occurred
because the Host did
not reply to an S1F1
with an S1F2 or
because the S1F1 was
not successfully sent.
5 Conditional ONLINEFAILED
Equipment Constant
configured to
Equipment Off-Line.
Equipment
Off-Line
Equipment will allow the
operator to attempt to
go On-Line again.
6 Conditional ONLINEFAILED
Equipment Constant
configured to Host
Off-Line.
Host Off-
Line
The SIPLACE will
accept a Host initiated
request to go On-Line
by replying to the
S1F17 with ONLACK =
0x00.
7 Host Off-
Line
Operator requests to
go Off-Line
Equipment
Off-Line
A Host request to go
On-Line will not be
accepted.
8 Attempt On-
Line
Successful On-Line
request.
On-Line The Equipment is now
On-Line.
9 On-Line Host puts the
Equipment Off-Line
by sending S1F15
and receiving the
S1F16 with OFLACK
= 0x00.
Host Off-
Line
EVENT:
GemEquipmentOFFLIN
E (CEID 1000005).
The SIPLACE will
accept a Host initiated
request to go On-Line
by replying to the
S1F17 with ONLACK =
0x00.

SIPLACE GEM SW Version GEM 505.01
HOST Interface Manual
©Siemens AG, all rights reserved page 31 of 236
# From Trigger To Description
10 Host Off-
Line
Successful
completion of S1F17
/ S1F18 transaction,
with ONLACK =
0x00.
On-Line The Equipment is now
On-Line.
11 Unknown Entry into On-Line
super-state.
Conditional
(Local or
Remote)
EVENT:
GemControlStateLOCA
L (CEID 1000003) or
GemControlStateREMO
TE (CEID 1000004).
The SIPLACE will
transition to whichever
state is specified in the
EC ONLINE-
SUBSTATE (VID
1002010).
12 Local Operator or Host
requests to go
Remote.
Remote EVENT:
GemControlStateREMO
TE (CEID 1000004). All
documented messages
will be accepted in this
state, including remote
commands.
13 Remote Operator or Host
requests to go Local.
Local EVENT:
GemControlStateLOCA
L
(CEID 1000003) .
Remote commands will
be rejected.
14 On-Line Operator requests to
go Off-Line.
Equipment
Off-Line.
EVENT:
GemEquipmentOFFLIN
E (CEID 1000005). A
Host request to go On-
Line will not be
accepted.
3.2.3 Control States
The variable CONTROLSTATE represents the current control state, and will be one of
the following values:
Off-Line/EQUIPMENT OFF-LINE
The Operator has put the SIPLACE Off-Line. In this state, the Host may not put the
Equipment On-Line, only the operator can attempt this from this state. Any Host-initiated
primary message (except S1F13 and S1F17) will be replied to with an SnF0 ABORT
message by the Equipment. The Equipment will not send any primary messages except
for S1F13 when necessary to establish communications, and the S9F1 and S9F9
messages for SECS errors.