CHAPTER 3 Setting the switches

▌3.2.2 Memory Switch setting for Star mode

• Settings

Memory Switches are from MSW 0 to MSW 8. They are stored in non-volatile memory (flash memory). To change the settings, send the following commands from the host.

[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 Region]

m = "W", "T", ",", "+", "-", "@"

 

 

 

 

 

"0" ≤ N,n1,n2,n3,n4 ≤ "9",

 

 

 

 

 

"A" ≤ N,n1,n2,n3,n4 ≤ "F"

 

 

 

 

[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-use 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

Data Definition (clear all data)

 

 

 

Definition

"@"

Fixed at "0"

Fixed at "0000"

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"

(Ex) Memory Switch 1-8 = 0; Memory Switch 2-7 = 1: Memory Switch 2-A =1 for a test print:

PRINT #1, CHR$(&H1B);CHR$(&H1D);CHR$(&H23);CHR$(&H2D);CHR$(&H31); ' <ESC><GS> # - 1

PRINT #1, CHR$(&H30);CHR$(&H31);CHR$(&H30);CHR$(&H30);CHR$(&H0A);CHR$(0); ' 0100 <LF><NUL> PRINT #1, CHR$(&H1B);CHR$(&H1D);CHR$(&H23);CHR$(&H2B);CHR$(&H32); ' <ESC><GS> # + 2 PRINT #1, CHR$(&H30);CHR$(&H34);CHR$(&H38);CHR$(&H30);CHR$(&H0A);CHR$(0); ' 0480 <LF><NUL> PRINT #1, CHR$(&H1B);CHR$(&H1D);CHR$(&H23);CHR$(&H54);CHR$(&H30); ' <ESC><GS> # T 0

PRINT #1, CHR$(&H30);CHR$(&H30);CHR$(&H30);CHR$(&H30);CHR$(&H0A);CHR$(&H0); ' 0000 <LF><NUL>

3-9

Page 31
Image 31
Samsung SRP275APG user manual Memory Switch setting for Star mode, Settings, Function Class