GS ( C

[Name]

Edit NV user memory

 

 

 

 

 

 

 

[Format]

ASCII

GS

(

C

pL pH m

fn

b

[c1, c2]

[d1...dk]

 

Hex

1D

28

43

pL pH m

fn

b

[c1, c2]

[d1...dk]

 

Decimal

29

40

67

pL pH m fn b

[c1, c2]

[d1...dk]

[Description]

Deletes, stores, and transmits data in the NV user memory area based on the functions defined in

 

the table below. Also sends status information for the amount of space used in NV RAM and the

 

amount of space still available.

 

 

 

 

 

 

- The function code (fn) specifies the function.

fn

Function

Description

0, 48

Function 0

Deletes specified record

1, 49

Function 1

Stores data in specified record

2, 50

Function 2

Sends data stored in specified record

3, 51

Function 3

Sends capacity currently being used

4, 52

Function 4

Sends available capacity

5, 53

Function 5

Transmits the key code of the record stored in the NV user memory

6, 54

Function 6

Cancels all records stored in the NV user memory

-pL and pH specify the bytes following parameter pH (m and [a1 b1] ... [ak bk]) as (pL + (pH

x256)).

-The other parameters are explained under each of the functions.

GS ( C pL pH m fn b c1 c2

<Function 0>

 

 

 

 

 

 

 

[Format]

ASCII

GS

(

C

pL

pH

m

fn

b

c1

c2

 

Hex

1D

28

43

05

00

00

fn

00

c1

c2

 

Decimal

29

40

67

5

0

0

fn

0

c1

c2

[Range]

(pL + pH x 256) = 5

(pL = 5, pH = 0)

 

 

 

 

 

 

 

 

m = 0

 

 

 

 

 

 

 

 

 

 

 

fn = 0, 48

 

 

 

 

 

 

 

 

 

 

b = 0

 

 

 

 

 

 

 

 

 

 

 

32 ≤ c1 ≤ 126

 

 

 

 

 

 

 

 

 

 

32 ≤ c2 ≤ 126

 

 

 

 

 

 

 

 

 

[Description]

Deletes the specified record stored in the NV user memory. The deleted area becomes an “unused”

 

area available for storage.

 

 

 

 

 

 

 

GS ( C pL pH m fn b c1 c2 d1...dk

 

<Function 1>

 

 

 

[Format]

ASCII

GS

(

C

pL

pH

m

fn

b

c1

c2

d1...dk

 

Hex

1D

28

43

pL

pH

00

fn

00

c1

c2

d1...dk

 

Decimal

29

40

67

pL

pH

0

fn

0

c1

c2

d1...dk

[Range]

6 ≤(pL + pH x 256) ≤65535

(0≤ pL ≤255, 0≤ pH ≤255)

 

 

m = 0

 

 

 

 

 

 

 

 

 

 

 

 

fn = 1, 49

 

 

 

 

 

 

 

 

 

 

 

b = 0

 

 

 

 

 

 

 

 

 

 

 

 

32

c1 ≤ 126

 

 

 

 

 

 

 

 

 

 

 

32

c2 ≤ 126

 

 

 

 

 

 

 

 

 

 

 

32

d ≤ 254

 

 

 

 

 

 

 

 

 

 

 

k = (pL + pH x 256) -5

 

 

 

 

 

 

 

 

[Description]

Stores data (d1... dk) in the record specified by parameters c1 and c2 (the key code ID numbers).

-When the specified record already exists, the data is overwritten.

-A terminator is automatically assigned.

4-18

Page 54
Image 54
Samsung SRP275APG user manual Gs C, Function Description