Cognitive Solutions B780, A776 manual Download mode, Hexadecimal 1B 5B 7D Decimal 27 91

Page 138

126 Chapter 5: Programming commands

This command returns the state of occupancy of available flash storage and user RAM. The printer response for each item is a 4 byte header, 0x1D 0x97 nL nH (number of bytes that follow in the response) and for each item a

4 byte structure: 1st m (type) byte, 2nd n index byte followed by a 2 byte CRC in Lo Hi order of the data string in that storage space.

The return for m = 0–2 is the header and one 4-byte item giving remaining storage space in the CRC position in

Lo Hi order: 1D 97 4 0 m 0 fL fH, where f is the kBytes of storage remaining. Note that RAM storage space is not content typed, while available flash is statically divided into logo, character set, and user data types. Change of the divisions is possible via flash erasure and flash

allocation commands.

If the communication protocol is RS-232C – Xon/Xoff, then “X symbol substitution response” should be configured with the setting communications parameters command (US STX , 1F 02).

Flash download

These commands are used to load firmware into the printer.

The commands are listed in numerical order according to their hexadecimal codes. Each command is described and the hexadecimal, decimal, and ASCII codes are listed.

There are three ways to enter the download mode.

1. Powering the printer up with DIP Switch 1 up.

2. While the printer is running normally, send the command, “Switch to flash download mode” (1B 5B 7D) to leave normal operation and enter the download mode.

3.If the flash if found corrupted during level 0 diagnostics the download mode is automatically entered after the printer has reset.

The printer never goes directly from the download mode to normal printer operation. To return to normal printer operation either the operator must turn the power off and then on to reboot or the application must send a command to cancel download mode and reboot. DIP switch 1 must in UP position during reboot to return to normal printer operation.

When each flash download command is received, the printer returns either ACK or NAK to the host computer when each command is received:

ACK (hexadecimal 06)

Sent when the printer has received a host transmission and has completed the request successfully.

NAK (hexadecimal 15)

Sent when a request is unsuccessful.

Communicates to the printer information downloaded from applications. Data is downloaded to flash memory to query the state of the firmware, calculate the firmware CRC and other functions.

Switch to flash

download mode

ASCII

ESC [ }

Hexadecimal

1B 5B 7D

Decimal

27 91 125

Puts the printer in flash download mode in preparation to receive commands controlling the downloading of objects into flash memory. When this command is received, the printer leaves normal operation and can no longer print transactions until the reboot the printer command (1D FF) is received or the printer is rebooted.

This command does not affect the current communication parameters. Once the printer is in flash download mode, this command is no longer available.

Related information

See entering flash download mode elsewhere in this book to put the printer in flash download mode using the configuration menu.

A776 (B780) Programming Guide

A776-PG00001 C 12/09

Image 138
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 sectionMigrating from existing CognitiveTPG printers A758 wide slip station 66 columnsA760 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 Emulation Commands B780 Configuration 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 Print zones for receipt station 80 mm paperProgramming the Printer 25 1B 64 n command, with n = Print zones for slip stationPrint Zones for Slip, Validation Lines InchesProgramming the Printer 27 Rotated printing commands Commands listed by function Commands in bold are ColorPOS commandsPrinter actions Text characteristics Print and paper feedVertical 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 conventions Command descriptionsClear 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 column Set absolute starting positionSet 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 print mode Select or cancel user-defined character setCharacter sets cannot be used together on the same line Define user-defined character set Values and ranges ReceiptSlip 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 RAMCancel user-defined character Select or cancel emphasized modeSelect 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 tableSelect or cancel white/black reverse print mode Character height selectionHex Decimal Height This command is only valid for the receipt station Reverse color text mode ColorPOSSet 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 rangesSelect bit image mode Value of m Mode No. of dots vertical No. of dots horizontalDownload 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 =Monochrome shade mode ColorPOS Color 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 ColorPOSThis command is ignored in page mode Background logo print mode ColorPOSSave 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 onEnable constant speed logos Programming commands 81 Related informationConvert 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 ESCPrinter ID Specification ID Hexadecimal Transmits the printer ID specified by n as follows= 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 bufferBusy line and fault conditions Programming commands 91Real-time status transmission = Transmit error status Bit Status Hex Decimal Function A776 B780 Programming Guide Real-time request to printer Real-time commands disable Programming commands 95Real-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 codeProgramming commands 101 Exceptions Bar codeLength 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 fRelated Information Value Dimension Row height Select bar code widthSets 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 109Select standard mode This command is effective only in page 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 inchesSelect or cancel macro definition Contents of the macro can be defined up to 2048 bytesExecute 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 byteProgramming commands 121 Maintaining the exception tableWrite 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 nHProgramming commands Values and ranges Erase user flash sectorValue 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 DefinitionConfigure/Change Image Transmission Port Set Top Entry Startup DelaySet 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 lossyProgramming commands 141 Bytes Scanned image Tiff structure lengthStructure containing the tags and images As in the Image Status Command return Eject from ScannerHexadecimal 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 DescriptionList of DH 4700 Emulation Commands Hexadecimal Code Command NameDH 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 1F 03 18 01 n Auto Journal Mode via Configuration Command Electronic Journal StorageThere are two methods for activating Electronic Journal Exception Conditions in Auto Journal Mode Journal RAM bufferJournal 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.