Oki OKIPOS408II OKIPOS 408II Programmer s Technical Reference - Page 306
Reference Information Differences between ETB Command and This Command, Effect on ESC RS E n command
View all Oki OKIPOS408II manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 306 highlights
ESC GS ETX s n1 n2 [Name] [Code] Send and initialize printing end counter ASCII ESC GS ETX s n1 n2 Hex. 1B 1D 03 s n1 n2 Decimal 27 30 3 s n1 n2 [Defined Area] 0 ≦ s ≦ 2 0 ≦ n1 ≦ 255, 0 ≦ n2 ≦ 255 [Function] This command is executed when it is read from the reception buffer, and the processing related to the printing end counter is carried out according to the s parameter. s Name Function 0 Printing end counter check The current printing end counter is sent to the host. (The function does not wait for printing to end. Also, the counter is not counted up.) The following operations are executed. ① If data is in the line buffer, the data is printed and cleared 1 Printing end counter update from the buffer. ② The function waits until the printing ends (motor stops). ③ The printing end counter is updated (+1). ④ The printing end counter is sent to the host. 2 Printing end counter clear The printing end counter is cleared to 0 (zero). (The function does not wait for printing to end. Also, the counter is not returned to the host.) When s = 0 or s = 1 is specified, the format of the data returned to the host is as follows. [Code] ASCII ESC Hex. 1B Decimal 27 GS ETX 1D 03 30 3 s n1 n2 s n1 n2 s n1 n2 [Printing end counter] NUL [Printing end counter] 00 [Printing end counter] 0 * The specified contents from the host up to ESC GS ETX s n1 n2 are echoed back, and are followed by the printing end counter value and NUL. The [Printing end counter] has a single-byte length and the initial value is 0x00. When s = 1, the counter is increased by +1 each time this command is processed. After 0xFF, the counter returns to 0x00. The [Printing end counter] is not related to the n1, n2 values, and there is only one counter in the printer. (The n1, n2 values do not require corresponding counters.) (Reference Information) Differences between ETB Command and This Command Item ESC GS ETX s n1 n2 ETB Effect on ASB (ETB status) No Yes ASB generated No Yes Effect on ASB valid/invalid setting No Yes Effect on ESC RS E n command No Yes Transmission destination of status using Ethernet (When multi-session setting is valid) Sent only to applicable printing session (host) that is connected ASB is sent to all sessions (hosts) that are connected * This printing end counter and the ETB counter, which is sent according to the ETB command, are different and do not have any effect on each other. Examples of communication using this command are provided on the following page. _____ STAR Page Mode Command Specifications 3-65