Cognitive Solutions B780, A776 Status command introduction, Transmit peripheral device status

Page 94

82 Chapter 5: Programming commands

Status

Status command introduction

The A776 has three methods of providing status to the application. These methods are through batch status commands, real time status commands and unsolicited status mode. An application may use one or more of these methods to understand the current status of the printer. A brief description of each of these methods follows.

Batch status commands – These commands are sent to the printer and stored in the printer’s buffer. Once the printer has processed all the previous commands these commands are processed and the proper status is returned to the application. In the event a condition causes the printer to go BUSY, it stops processing commands from the printer buffer. If a batch status command remained in the buffer during this busy condition, it would not be processed. In fact, no batch commands are processed while the printer is in this state.

Real-time commands – These commands are sent to the printer and stored in the printer buffer. Periodically, when the printer has time, it scans the input buffer looking for these commands. When found by the printer, these commands are processed immediately. This gives the application the ability to query the printer when it is in a busy state in order to correct whatever fault has occurred.

Unsolicited status mode – This mechanism allows the application developer to program the printer to automatically respond with a four byte status when certain conditions in the printer change.

Please see the subsequent sections for a more detailed description of these status commands. At the end of this status commands section is a page entitled “Recognizing data from the printer”. This describes how to interpret what command or setting (in the case of unsolicited status mode) triggered a response from the printer.

Batch mode

For RS-232C printers, these commands enable the printer to communicate with the host computer following the selected handshaking protocol, either DTR/DSR or XON/XOFF. They are stored in the printer’s data buffer as they are received, and are handled by the firmware in the order in which they are received.

When a fault occurs, the printer will go busy at the RS-232C interface and not respond to any of the batch mode printer status commands. If the fault causing the busy condition can be cleared, such as by loading paper, or letting the thermal printhead cool down, the printer will resume processing the data in its receive buffer.

Transmit peripheral device status

ASCII

ESC u 0

Hexadecimal

1B 75 0

Decimal

27 117 0

Value of returned byte:

Bit 0

Bit 1

 

 

 

 

1

= Drawer 1 Closed

1

= Drawer 2 Closed

0

= Drawer 1 Open

0

= Drawer 2 Open

Bits 2–7 are not used.

Transmits current status of the cash drawers. One byte is sent to the host computer. In DTR/DSR protocol, the printer waits for DSR = SPACE. If a drawer is not connected, the status will indicate it is closed.

Exceptions

Unlike the A756, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A776 has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status for both drawers is reported by the printer.

A776 (B780) Programming Guide

A776-PG00001 C 12/09

Image 94
Contents Programming Guide Printer without Imaging Printer with ImagingPage Contents Contents A776 Configurable Slip Commands B780 Configuration CommandsBar codes Mode Macros Micr check reader commands User data storageContents Print and paper feed Convert 6-dots/mm bitmap to 8-dots/mm bitmap 113 100106 114129 121126 132143 140142 144154 152153 156Contents Where to find advanced technical information How to use this GuideWhere to find the basics SupportAbout this Guide Remote diagnostics Startup DiagnosticsRuntime diagnostics Printer Status, Ethernet and IndicatorsEthernet terms and default setup Ethernet TerminologyEthernet Default Setup     Green slip-in light in front of the paper feed button IndicatorsIndicator Sequence Condition For more information about See this sectionA758 wide slip station 66 columns Migrating from existing CognitiveTPG printersA760 wide slip station 66 columns Command Description Difference between the A756 A776 24 n1 n2Moving from the A756 to the A776 Emulation commands NL nHA776 Emulation Commands A776 Configuration CommandsSelect A776 Narrow Slip 51-column Compressed Print Option Select A776 Delete Slip Trailing Spaces OptionSelect A776 21 and 25-line Rotated Slip Print Options Select Cover Open OptionSelect A776 Slip Eject Option Set Page Mode Margin Mechanical AdjustmentSet Page Mode Option to Trim Full Dots Select 45/60 Column Slip OptionA776 Slip Left Margin and Print Width A776 Slip Character SpacingA776 Slip Minimum Units A776 Slip Print JustificationMoving from A756/A758 to A776 Two-color Commands AsciiLogoEZ colorization commands DiscriptionB780 Configuration Commands B780 Emulation CommandsMigrating from the A721 7221 printer to the B780 Select DH Pitch and Rotated Text Columns Select Number of Lines of Validation for B780 Select Slip Right Margin in Page ModeSelect Two Sensor Option for B780 Select B780 Map User Character Option for B780Select Concurrent Print to Receipt for B780 Select B780 Map Logo Option for B780Select Cover Open Option for B780 Select B780 with A776 Slip FunctionsSet Page Mode Option to Trim Full Dots Migrating to a new printer Overview of Printing Characteristics Programming the Printer 23Rotated Scaled Shading Receipt character specificationCharacter appearance StandardPrint zones for receipt station 80 mm paper Print zonesProgramming the Printer 25 1B 64 n command, with n = Print zones for slip stationLines Inches Print Zones for Slip, ValidationProgramming the Printer 27 Rotated printing commands Commands in bold are ColorPOS commands Commands listed by functionPrinter actions Print and paper feed Text characteristicsVertical and horizontal positioning Graphics  31Status Batch modeUnsolicited status mode Code hexadecimal Command Real-timeMode Micr check reader commandsBar codes MacrosFlash download Ethernet setup commandsUser data storage 1D 97 m n User storage statusImage Commands Programming commands 35Command descriptions Command conventionsClear printer Perform partial knife cut Close formOpen form Generate toneInitialize printer Select peripheral device for multi-dropSelects the device to which the host computer sends data Set slip paper eject lengthSelect paper sensors to output paper end signals Select receipt or slip for setting line spacingThis command is ignored if n is out of range Programming commands 39Select sensors to stop printing Enable or disable panel buttonDefault Bit of n Function Set slip paper waiting timeRelease Paper Generate pulse to open cash drawerSends a pulse to open the cash drawer Set current colorIf m is out of the specified range, the command is ignored After a power loss or reset the default value m=0 is resetSelect cut mode and cut paper Select slip stationSet Interpretation of Set current color Programming commands 43Select receipt station Hexadecimal 1E DecimalPrint and eject slip Print test formPrint and feed paper one line Print and carriage returnFeed n dot rows Programming commands 45Range of n Default Add n extra dot rowsPrint and reverse feed paper PrintPrint and feed paper Print and feed n linesReverse feed n dots Print and reverse feed n linesReverse feed n lines Horizontal tabSet absolute starting position Set columnSet vertical line spacing to 1/6 inch Set horizontal tab positions Programming commands 49Set vertical line spacing Value of kSet relative print position Compatibility information A776 receipt vs. A756 receiptSet left margin Programming commands 51Select justification GS L nL nHSet printing area width Default of ySet horizontal and vertical minimum motion units GS P x ySelect single-wide characters Text characteristics commandsSelect double-wide characters Select 90 degree counter-clockwise rotated printSelects the character pitch for a print line Standard mode the horizontal motion unit is usedSelect pitch column width Set right-side character spacingSelect or cancel user-defined character set Select print modeCharacter sets cannot be used together on the same line Values and ranges Receipt Define user-defined character setSlip s = Programming commands 57 Select or cancel underline modeThis command is ignored if n is out of the specified range Copy character set from ROM to RAMSelect or cancel emphasized mode Cancel user-defined characterSelect double-strike Select or cancel italic print Printer output is the same as in emphasized modeCancel double-strike Select international character setCharacter sets cannot be mixed on the same line Select or cancel 90 degree clockwise rotated printSelect or cancel upside-down print mode Select character code tableCharacter height selection Select or cancel white/black reverse print modeHex Decimal Height Reverse color text mode ColorPOS This command is only valid for the receipt stationSet smoothing CB hex Kanji CE hex Korean Text strike-through mode ColorPOSSelect font ID number Select font style numberDownload font list Save font ID number as default font at power upDownload font Print downloaded font informationSelect active user-defined character set Programming commands 65Define extended user-defined character set Values and rangesValue of m Mode No. of dots vertical No. of dots horizontal Select bit image modeDownload BMP logo Print advanced raster graphics Advanced raster graphics is not available in page modeDot single-density N1 + 256 × n2 Value of rDefine Flash Logos Select double-density graphicsPrint Flash Logo XHxL 1024 max printable xHxL = 72 = 576 dots wide YHyLDefine downloaded bit image Print downloaded bit imageDownload logo image ColorPOS Print raster monochrome graphics ColorPOSPrint raster color graphics ColorPOS Max n1 =Color shade mode ColorPOS Monochrome shade mode ColorPOSProgramming commands 71 Apply shading to logo ColorPOS Merge watermark mode ColorPOSLogo print with color plane swap ColorPOS Hexadecimal 1D 89 n m DecimalProgramming commands 73 Form and merge real-time surround graphic ColorPOSBackground logo print mode ColorPOS This command is ignored in page modeSave graphics buffer as logo ColorPOS Apply margin message mode ColorPOS Shade and store logo ColorPOSSet temporary max target speed See Print downloaded bit image commandLogo print with knife cut Decimal ValuesExample Programming commands 77Set LogoEZ colorization ColorPOS Value of f= 3 link margin message printing LogoEZ utility default settings Modify the settings within the utilityProgramming commands 79 Set LogoEZ attribute mapping ColorPOSProgramming commands Original attribute mapped table Attributes substituted table Bit onProgramming commands 81 Related information Enable constant speed logosConvert 6-dots/mm bitmap to 8-dots/mm bitmap Hexadecimal 1B 75 Decimal Status command introductionTransmit peripheral device status Value of returned byte BitTransmit printer ID Programming commands 83Transmit paper sensor status ESCTransmits the printer ID specified by n as follows Printer ID Specification ID Hexadecimal= 4 Logo Definition Bit Off/On Hex Decimal Function Programming commands 85 Transmit printer ID, remote diagnostics extensionPreforms the remote diagnostic function specified by n GS I @ nProgramming commands Value of n Hex Dec Remote diagnostic item FunctionProgramming commands 87 Transmit statusA776 B780 Programming Guide Real-time commands Send printer software versionAlternate implementation Rules for using real-time commandsPreferred implementation Moving data through the bufferProgramming commands 91 Busy line and fault conditionsReal-time status transmission = Transmit error status Bit Status Hex Decimal Function A776 B780 Programming Guide Real-time request to printer Programming commands 95 Real-time commands disableReal-time printer status transmission Unsolicited status mode Select or cancel unsolicited status mode USMSecond byte error information Bit Off/On Hex Decimal Status for USMThird byte paper sensor information Fourth byte paper sensor information -- A776Recognizing data from the printer Batch mode responseUnsolicited status mode USM Real time responseSelect bar code height Select printing position of HRI charactersSelect pitch of HRI characters Print bar codeBar code Programming commands 101 ExceptionsLength Programming commands Bar code Illegal data cancels this commandUndercut, default 0, can be set 0 to a-1 Set GS1 DataBar formerly RSS parametersPrint GS1 DataBar formerly RSS, null terminated Programming commands 103Print GS1 DataBar formerly RSS, data length specified TypePrint multiple barcodes GS kDefaults Sample symbol descriptionProgramming commands 105 GS p a b c d e fSelect bar code width Related Information Value Dimension Row heightSets the bar code width to n dots Character Size Reset to power-on parametersSize ExceptionsSlip Page Mode Enabled Mode configurationsSlip Page Mode Improved Slip Page Mode Disabled Print and return to standard modeSelect page mode Programming commands 109This command is effective only in page mode Select standard modeSelect print direction in page mode Set print area in page mode Programming commands 111Set relative vertical print position in page mode Command is effective only in page modeSet absolute vertical print position in page mode NL + nH × 256 × vertical or horizontal motion unit inchesContents of the macro can be defined up to 2048 bytes Select or cancel macro definitionExecute macro Read Micr data and transmit Micr commandsProgramming commands Formulas Status Status byte valueDefine parsing format, save in Nvram Micr parsingTransmit last Micr read Define parsing format, do not save permanentlyField separator Error number One digit returnedStatus Two digits returned Country code One digit returnedSample parsing formats Programming commands ESC w p T ‘/ a ‘/ C ‘/ S CR Programming commands 119 Check serial numberException table entry format Loading the exception tableWhich writes the two byte word n1n2 to word k in Nvram Bits within byteMaintaining the exception table Programming commands 121Write to user data storage Write to non-volatile memory Nvram Read from user data storageRead from non-volatile memory Select memory type SRAM/flashMemory allocation sequence Flash memory user sectors allocationExpanded flash memory allocation 22 80 31 nL nH Sectors to logo/font area 22 80 32 nL nHErase user flash sector Programming commands Values and rangesValue of n = 49 Ascii n = 1 HEX Programming commands 125 = 50 Ascii n = 2 HEX User storage status ColorPOSDownload mode Hexadecimal 1B 5B 7D Decimal 27 91Memory sector to download Return boot sector firmware part numberReturn segment number status of flash memory Get firmware CRCErase selected flash sector Erase all flash contents except boot sectorReturn main program flash CRC Download to active flash sectorSet IP address Reset firmwareRestore default settings Set Net MaskSet raw Tcpip port Default enabledSet Gateway Telnet DaemonProgramming commands 131 Dhcp auto-configurationInactivity timeout Keep-alive pingsHexadecimal ID B0 Parameters None Imaging CommandsCalibrate Scanner Value DefinitionSet Top Entry Startup Delay Configure/Change Image Transmission PortSet Image Format Properties Configure Binarization Methods and Attributes MethodDecimal Value Definition Define/Update Application Tag ValuesProgramming commands 135 T6.G4 binary, else 1=Black is ZeroHexadecimal 1D B6 Parameters None Attach Scan Application TagsReturn Imager Status Hexadecimal 1D B7Hexadecimal 10 04 Parameters None Real-Time Imager StatusValue Definition Decimal Meaning Bit MeaningWait for Scan & Optionally Transmit Real-Time Error StatusReal-Time Cancel Image Transmission Hexadecimal 10 05 Parameters None Return NoneBit 1 =1 front image sensor covered Sensors currently covered none = 0 valueBit 0 =1 rear image sensor covered Bit 2 =1 image cover openCcitt T.6 compression binary Tiff Transmit ImageLZW lossless, also used in GIF compressed grayscale Tiff Reserved for Jpeg lossyBytes Scanned image Tiff structure length Programming commands 141Structure containing the tags and images Eject from Scanner As in the Image Status Command returnHexadecimal 1D BA p Get Buffered Image List Free ImageFree Imager Buffering Get Buffered Image AttributesTransmit Printer Type Extended Existing Command Configure Scan OptionsConfigure Max Scan Width & Height Hexadecimal 1D C6 m n Parameters DescriptionHexadecimal Code Command Name List of DH 4700 Emulation CommandsDH Emulation 145 List of DH emulation Commands Hexadecimal Code Command NameList of DH 4700 Command Descriptions Printer Function CommandsDocument Clamp Open Reset PrinterCash Drawer Self TestForm Eject Clamp DelayDocument Clamp Close DownloadBuffered Validate Print Characteristics CommandsPrint Speed Buffer ClearCharacter Set DH Emulation 151Double-High Off Underline PrintUnderline Off Double-High FontGraphics 5 Dot Graphics CommandsGraphics DH Emulation 153Transmitted status is shown in the table Printer Status CommandsStatus 3 Bit Status 6 BitDH Emulation 155 Commands listed by hexadecimal code Appendix a Commands by hexadecimal code157 34 m a0 a1 a2Appendix a Commands by hexadecimal code Code hexadecimal 159 Or …n160 Print raster color graphicsM n o Apply margin message mode X y o p q161 Appendix B Resident Character Sets Code Page 437 USCode page 737 Greek 163Code page 850 Multilingual Code Page 852 Slavic 165Code Page 857 Turkish Code page 858 with Eurosymbol 167Code page 860 Portugese Code page 862 Hebrew 169Code page 863 French Canadian Code page 865 Nordic 171Code page 866 Cyrillic Code page 1252 Windows Latin 173Page Electronic Journal Storage 1F 03 18 01 n Auto Journal Mode via Configuration CommandThere are two methods for activating Electronic Journal Journal RAM buffer Exception Conditions in Auto Journal ModeJournal Flash buffer 1F 0A C3 Clear Journal Printing and Erasing the Journal Flash BufferOperator Activation of Journal Print and Erase 1F 0A C4 Print Journal1F 0A C6 Return Journal Flash Size 1F 0A C5 Return Journal StatusReturns one byte of status Journal flash Buffer usedPage A776-PG00001 Rev. C 12/09
Related manuals
Manual 2 pages 56.15 Kb Manual 2 pages 48.96 Kb

B780, A776 specifications

Cognitive Solutions A776 is an advanced technology platform designed to enhance decision-making processes through the application of artificial intelligence and cognitive computing. This state-of-the-art solution seamlessly integrates multiple technologies to optimize business operations and drive innovation across various sectors, including finance, healthcare, and manufacturing.

One of the main features of A776 is its robust data processing capabilities. Leveraging powerful machine learning algorithms, the platform can analyze vast amounts of data in real-time, identifying patterns and insights that would otherwise be overlooked. This enables organizations to make informed decisions based on actionable intelligence, significantly improving efficiency and productivity.

Another key characteristic of the A776 system is its natural language processing (NLP) capability. This feature allows the platform to understand and interpret human language, making it easier for users to interact with the system and obtain valuable insights. By integrating NLP, Cognitive Solutions A776 can provide intuitive user experiences, enabling workforce members to query data using everyday language rather than complex coding skills.

The A776 is also built on a flexible architecture that supports seamless integration with existing IT ecosystems. This interoperability allows organizations to harness their current data sources while taking advantage of the innovative features offered by A776. The platform’s API support enables smooth connections with third-party tools, enhancing collaboration and expanding its range of applications.

Security is a major focus of the Cognitive Solutions A776. The platform is equipped with advanced encryption protocols and compliance measures to ensure that sensitive data is protected against breaches and unauthorized access. This commitment to security helps businesses maintain customer trust and safeguard their competitive advantage.

Scalability is another defining feature of the A776. As businesses grow and evolve, the platform can be easily adapted to meet changing demands. Whether a small startup or a large enterprise, organizations can scale their cognitive solutions according to their operational needs.

Furthermore, the Cognitive Solutions A776 is designed with user accessibility in mind. The interface features customizable dashboards that provide a clear overview of insights and performance metrics, enabling users at all levels to harness the power of cognitive computing without requiring extensive training or technical expertise.

In conclusion, Cognitive Solutions A776 is a cutting-edge platform that offers a range of features, including advanced data processing, natural language processing, robust security measures, and user-friendly design. Its flexible architecture allows it to integrate seamlessly with existing systems, making it an indispensable tool for organizations looking to leverage artificial intelligence in their decision-making processes.