Esc gs # m n n1 n2 n3 n4 lf nul – Star Micronics Dot Impact Printer User Manual
Page 78

3-70
STAR Command Specifications
Rev. 0.70
ESC GS # m N n1 n2 n3 n4 LF NUL
[Name]
Set memory switch
[Code]
ASCII
ESC
GS
#
m
N n1 n2 n3 n4 LF
NUL
Hexadecimal
1B
1D 23
m
N n1 n2 n3 n4 0A
00
Decimal
27
29 35
m
N n1 n2 n3 n4 10
0
[Defined Area]
m = 87, 84, 44, 43, 45 (m = “W”, “T”, “,”, “+”, “-”)
48 ≤ N ≤ 57 (”0” ≤ N ≤ “9”), 65 ≤ N ≤ 70 (”A” ≤ N ≤ “F”)
48 ≤ n1 ≤ 57 (”0” ≤ n1 ≤ “9”), 65 ≤ n1 ≤ 70 (”A” ≤ n1 ≤ “F”)
48 ≤ n2 ≤ 57 (”0” ≤ n2 ≤ “9”), 65 ≤ n2 ≤ 70 (”A” ≤ n2 ≤ “F”)
48 ≤ n3 ≤ 57 (”0” ≤ n3 ≤ “9”), 65 ≤ n3 ≤ 70 (”A” ≤ n3 ≤ “F”)
48 ≤ n4 ≤ 57 (”0” ≤ n4 ≤ “9”), 65 ≤ n4 ≤ 70 (”A” ≤ n4 ≤ “F”)
[Initial Value]
---
[Function]
Sends command to write after defining memory switch using the definition command specified by the
following classes to set the memory switch.The printer is automatically reset after writing the setting defined
by that command to the non-volatile memory.
Do not turn off the power to the printer while sending commands to the non - volatile memory.Doing so will
destroy the memory switch setting. It is also possible for all memory switch settings to become offset to their
initial, default settings.
Consider the life of the non-volatile memory and avoid over-sue of this command.
Function
Class
m
N
n1 n2 n3 n4
Data Definition (Data Specification)
Definition
“,”
N
n1 n2 n3 n4
Data definition (set specified bit)
Definition
“+”
N
n1 n2 n3 n4
Data definition (clear specified bit)
Definition
“-”
N
n1 n2 n3 n4
Definition data write and reset
Write
“W”
Fixed at “0”
Fixed at “0000”
Definition data write and reset and test print
Write
“T”
Fixed at “0”
Fixed at “0000”
• m:
Mode Selection
• N:
Memory switch number to specify
• n1 n2 n3 n4:
Specified data m = “,” → Specified data
m = “+” → Bit number to set
m = “-” → Bit number to clear
Note The status of this command varies according to the model, so check the special appendix.