13
KRAMER ELECTRONICS LTD.
#
INSTRUCTION
I5
I4
I3
I2
I1
I0
0
Reset
0
0
0
0
0
0
1
Read front-panel switch status
0
0
0
0
0
1
2
Write front-panel switch status
0
0
0
0
1
0
3
Press front-panel switch
0
0
0
0
1
1
4
Read front-panel switch data (LS byte)
0
0
0
1
0
0
5
Read front-panel switch data (MS byte)
0
0
0
1
0
1
6
Write front-panel switch data (LS byte)
0
0
0
1
1
0
7
Write front-panel switch data (MS byte)
0
0
0
1
1
1
8
Write encoder data
0
0
1
0
0
0
9
Write decoder data
0
0
1
0
0
1
10
Write EEPROM data
0
0
1
0
1
0
11
Read EEPROM data
0
0
1
0
1
1
16
Error
0
1
0
0
0
0
57
Enable “Power-down save”
1
1
1
0
0
1
61
Identify machine
1
1
1
1
0
1
Table 1: Instruction Set for the SG-6005
DESCRIPTION OF INSTRUCTIONS
INSTRUCTION 0 – RESET
DATA=0: initialize the machine.
When the machine is initialized, it will send the RESET code (DATA = 0). If the machine receives this code, it
will reset to its “power-up” state.
DATA=1: configure the machine to its factory default state.
When the machine receives this code, all programmable parameters will be reset to their factory-default values.
EXTENDED DATA - set as 0.
INSTRUCTION 1 – READ FRONT-PANEL SWITCH STATUS
DATA = front-panel switch number (see below).
When sending, set EXTENDED DATA as 0.
When receiving, LSB of EXTENDED DATA = status of front-panel switch.
The PC sends this instruction to the machine. The machine replies by setting the EXTENDED DATA
according to the current status of the addressed front-panel switch - that is, E0=1 if the switch is on, or E0=0 if
it is off.
INSTRUCTION 2 – WRITE FRONT-PANEL SWITCH STATUS
DATA = front-panel switch number; LSB of EXTENDED DATA = status of the front-panel switch.
- When a front panel switch is pressed, its status is sent to the PC if the status of this switch is changed.
- When the PC sends the status of the switch directly to the machine, the machine implements this instruction,
and replies by sending the same data back to the PC (if valid).
INSTRUCTION 3 – PRESS FRONT-PANEL SWITCH
DATA = front-panel switch number (see below).
EXTENDED DATA - set as 0.
- When the machine receives this instruction, it implements the function which would be performed if the
designated front-panel switch was pressed. If this results in a change in the switch status or a switch value, then
this change is sent to the PC.
- This instruction is never
sent
by the machine. (If a button is pressed resulting in a change in the switch status
or a switch value, it will send the change to the PC).
INSTRUCTION 4 – READ FRONT-PANEL SWITCH DATA (least significant (LS) byte)
When sending to machine:- DATA = front-panel switch number; EXTENDED DATA - set as 0.