Samsung SRP-350PG Service Manual - Page 78

GS a n

Page 78 highlights

Command GS a n [Name] [Format] [Range] [Description] Enable/Disable Automatic Status Back. ASCII GS a n Hex 1D 61 n Decimal 29 97 n 0 ≤n ≤255 Enables or disables ASB and specifies the status items to include, using n as follows : Bit Off/On Hex Off 00 0 On 01 1 Off 00 On 02 2 Off 00 On 04 Off 00 3 On 08 4-7 - - Decimal 0 1 0 2 0 4 0 8 - Status for ASB Drawer kick-out connector pin 3 status disabled. Drawer kick-out connector pin 3 status enabled. On-line / Off-line status disabled. On-line / Off-line status enabled. Error status disabled. Error status enabled. Paper roll sensor status disabled. Paper roll sensor status enabled. Undefined. [Details] * If any of the status items in the table above are enabled, the printer transmits the status when this command is executed. The printer automatically transmits the status whenever the enabled status item changes. The disabled status items may change, in this case, because each status transmission represents the current status. * If all status items are disabled, the ASB function is also disabled. * If the ASB is enabled as a default, the printer transmits the status when the printer data reception and transmission is possible at the first time from when the printer is turned on. * The following four status bytes are transmitted without confirming whether the host is ready to receive data. The four status bytes must be consecutive, except for the XOFF code. * Since this command is executed after the data is processed in the receive buffer, there may be a time la between data reception and status transmission. * When the printer is disabled by ESC= (Select peripheral device), the four status bytes are transmitted whenever the status changes. * The status to be transmitted are as follows : First byte (printer information) Bit Off/On Hex Decimal 0 Off 00 0 1 Off 00 0 Off 00 0 2 On 04 4 3 Off 00 0 On 08 8 4 On 10 16 Off 00 0 5 On 20 32 Off 00 0 6 On 40 64 7 Off 00 0 Status for ASB Not used. Fixed to Off. Not used. Fixed to Off. Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. Online. Offline. Not used. Fixed to On. Cover is closed. Cover is open. Paper is not being fed by using the PAPER FEED button. Paper is being fed by using the PAPER FEED button. Not used. Fixed to Off. Samsung Electro-Mechanics 8-15

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Command
Samsung Electro-Mechanics
8-15
GS a n
[Name]
[Format]
[Range]
[Description]
Enable/Disable Automatic Status Back.
ASCII
GS
a
n
Hex
1D
61
n
Decimal
29
97
n
0
n
255
Enables or disables ASB and specifies the status items to include, using n as follows :
Bit
Off/On
Hex
Decimal
Status for ASB
Off
00
0
Drawer kick-out connector pin 3 status disabled.
0
On
01
1
Drawer kick-out connector pin 3 status enabled.
Off
00
0
On-line / Off-line status disabled.
1
On
02
2
On-line / Off-line status enabled.
Off
00
0
Error status disabled.
2
On
04
4
Error status enabled.
Off
00
0
Paper roll sensor status disabled.
3
On
08
8
Paper roll sensor status enabled.
4-7
-
-
-
Undefined.
[Details]
* If any of the status items in the table above are enabled, the printer
transmits the status when this command is executed. The printer
automatically transmits the status whenever the enabled status item
changes. The disabled status items may change, in this case, because
each status transmission represents the current status.
* If all status items are disabled, the ASB function is also disabled.
* If the ASB is enabled as a default, the printer transmits the status when
the printer data reception and transmission is possible at the first time
from when the printer is turned on.
* The following four status bytes are transmitted without confirming
whether the host is ready to receive data. The four status bytes must be
consecutive, except for the XOFF code.
* Since this command is executed after the data is processed in the
receive buffer, there may be a time la between data reception and
status transmission.
* When the printer is disabled by
ESC=
(Select peripheral device), the
four status bytes are transmitted whenever the status changes.
* The status to be transmitted are as follows :
First byte (printer information)
Bit
Off/On
Hex
Decimal
Status for ASB
0
Off
00
0
Not used. Fixed to Off.
1
Off
00
0
Not used. Fixed to Off.
Off
00
0
Drawer kick-out connector pin 3 is LOW.
2
On
04
4
Drawer kick-out connector pin 3 is HIGH.
Off
00
0
Online.
3
On
08
8
Offline.
4
On
10
16
Not used. Fixed to On.
Off
00
0
Cover is closed.
5
On
20
32
Cover is open.
Off
00
0
Paper is not being fed by using the PAPER FEED button.
6
On
40
64
Paper is being fed by using the PAPER FEED button.
7
Off
00
0
Not used. Fixed to Off.