252301 Issue 2.0 - 第32页
GEM Manual for DEK Printers Capabilities I ssue 2.0 June 9th, 2011 page 32 of 156 5.4.3 Control (host initiated) The host has the capa bility to cy cle the equipment between the O N-L INE and OF F-L INE states. The equip…

GEM Manual for DEK Printers Capabilities
Issue 2.0 June 9th, 2011 page 31 of 156
5.4 Control
5.4.1 Control (operator initiated)
The operator of the equipment can control the communications between the equipment and
Host. This is done using the function keys on the operators Host Comms screen and allows for:
On-Line / Off-Line Control.
Local / Remote Control.
Control State Definitions:
Off-Line - During the Off-Line state, the SECS-II link is severely restricted. The equipment
operator console controls all operations. With the exception of the messages used for connect
and On-Line, the equipment sends no primary SECS-II messages to the Host, and refuses
primary SECS-II messages from the Host. This state is active until the operator enables Host
communications on the equipment.
On-Line: Local - In the local state, the SECS-II link operates normally. The equipment
imposes restrictions on the level of communications with the Host. This state is active for as
long as the operator requires, until the equipment is powered down or a fault occurs.
On-Line: Remote - In the remote state, the SECS-II link operates normally. The equipment
imposes no restrictions on the level of communications with the Host. This state is active for
the as long as the operator requires, until the equipment is powered down or a fault occurs.
5.4.2 Remote Control
The remote control capability provides the host with the ability to initiate processing and to
modify process parameters during operation. The ability to modify operating parameters
permits the use of feed-forward process control.
The host can exercise control by sending a remote command RCMD and parameter data
CPNAM and CPVAL. For details of available commands and parameters, see appendix A.
Command completion’s are notified to the host by event reports.
The ability, of the host to exert control depends upon the equipment control state. See control
(operator initiated) section 3.4.1.

GEM Manual for DEK Printers Capabilities
Issue 2.0 June 9th, 2011 page 32 of 156
5.4.3 Control (host initiated)
The host has the capability to cycle the equipment between the ON-LINE and OFF-LINE states.
The equipment can either ‘deny’, and not process the request, or ‘acknowledge’ the request and
transit to the required ON-LINE or OFF-LINE, state as dictated by the host.
The ability, of the host to exert control depends upon the equipment control state.
Control State Model
The control state behaviour is described by the following state model:
State Diagram:
C
POWER UP
EQUIPMENT
OFF-LINE
EQUIPMENT
ON-LINE
ATTEMPT
ON-LINE
LOCAL REMOTE
1
C
C
2
C
OFF-LINE
ON-LINE
C
7
3
4
5
6
8
9
10
11
12
State Definitions:
OFF-LINE - The SECS-II link is limited to the transactions below:
OFF-LINE: EQUIPMENT OFF-LINE
The operator can manually transit the equipment to the OFF-LINE state, sub-state
EQUIPMENT OFF-LINE. In this state, the SECS-II link operation is severely restricted, except
for the messages used for Connect and On-Line.
• No primary messages are sent to the Host, with the exception of S1F13 (Connect Request).
• If the Host sends S1F13 (Connect Request) the equipment replies with S1F14 (Connect
Acknowledge). If the Host sends any primary message with the W-bit "1" (reply expected)
other than S1F13 (Connect Request), the equipment refuses by sending an SxF0 reply.
GEM Manual for DEK Printers Capabilities
Issue 2.0 June 9th, 2011 page 33 of 156
State Definitions (continued):
OFF-LINE: ATTEMPT ON-LINE
The operator can manually transit the equipment to the ON-LINE state. To achieve this state
the equipment has to be in the ATTEMPT ON-LINE sub-state. In this state, the equipment is
attempting to transit from Off-Line to On-Line.
• The equipment sends S1F1 (Are you there) to the Host, requesting permission to go ON-
LINE. No other primary message is sent to the Host.
• If the Host sends S1F13 (Connect Request) the equipment will reply S1F14 (Connect
Acknowledge). If the Host sends any primary message with the W-bit "1" (reply expected)
other than S1F13 (Connect Request) the equipment refuses by sending an SxF0 reply.
OFF-LINE: HOST OFF-LINE
In this state:
• Only the host can transfer the equipment to ON-LINE.
• No primary message can be sent to the host, except for S1F13 (Connect Request).
• If the Host sends S1F17 (Request On-Line) the equipment will reply S1F18 (On-Line
Acknowledge). If the Host sends S1F13 (Connect Request) the equipment will reply S1F14
(Connect Acknowledge). If the Host sends any primary message with the W-bit "1" (reply
expected) other than S1F13 or S1F17 the equipment refuses by sending an SxF0 reply.
ON-LINE
In the ON-LINE state, the SECS II link operates normally, with no (or very few) restrictions.
• The equipment may send S1F13 (Connect Request). It never sends an SxF0 reply.
• If the Host sends S1F13 (Connect Request) the equipment will reply S1F14 (Connect
Acknowledge).
• If the Host sends S1F15 (Request Off-Line) the equipment will reply
S1F16 (Off-Line Acknowledge) and transfers to the Off-Line, Equipment Off-Line.
If the Host sends S1F17 (Request On-Line) the equipment will reject it, sending a S1F18
(On-Line Acknowledge) reply with ONLACK "2" (Equipment Already On-Line).
ON-LINE: REMOTE
In the REMOTE sub-state, the SECS II link operates normally. The equipment imposes no
special restrictions on S2F41 (Remote Command). The operator can also transit the equipment
to REMOTE manually, from the LOCAL sub-state. In this state if the operator issues a
command that causes the printer to perform a process action then the CEID “Operator
Command issued” will be sent.
ON-LINE: LOCAL
The operator can transit the equipment to the LOCAL sub-state manually.
In the LOCAL sub-state, the SECS-II link operates normally. In order to prevent the Host from
interfering with processing:
• The equipment imposes restrictions on the S2F41 (Host Command Send), by sending reply
S2F42 (Host Command Acknowledge) with non-zero HCACK for the FORWARD and
REVERSE X, Y, Theta OFFSETS, ADJUSTABLE PARAMETERS and LOAD
PRODUCT commands. The equipment also imposes restrictions on the START, STOP,
CLEAN SCREEN and PASTE DISPENSE commands.
The equipment enables all aspects of operator control. The operator can also transit the
equipment to REMOTE manually, from the LOCAL sub-state.