Scrigroup - Documente si articole

Username / Parola inexistente      

Home Documente Upload Resurse Alte limbi doc  
BulgaraCeha slovacaCroataEnglezaEstonaFinlandezaFranceza
GermanaItalianaLetonaLituanianaMaghiaraOlandezaPoloneza
SarbaSlovenaSpaniolaSuedezaTurcaUcraineana

AdministrationAnimalsArtBiologyBooksBotanicsBusinessCars
ChemistryComputersComunicationsConstructionEcologyEconomyEducationElectronics
EngineeringEntertainmentFinancialFishingGamesGeographyGrammarHealth
HistoryHuman-resourcesLegislationLiteratureManagementsManualsMarketingMathematic
MedicinesMovieMusicNutritionPersonalitiesPhysicPoliticalPsychology
RecipesSociologySoftwareSportsTechnicalTourismVarious

Protocols for communication with PC - OPTIMUS-iC Małe Tango

computers



+ Font mai mare | - Font mai mic



OPTIMUS-iC Małe Tango

Protocols for communication with PC



Communication protocol

The first character should be send by computer to initialize transmission is ENQ. In case another character sending answer from cash register will be NAK. In case different transmission speed resenting one or more NAK characters will appear.

Time-out is counting in case when cash register waiting for group of characters from PC. In case when PC doesnt answer (before time-out), cash register will send EOT command and end the transmission (cash register is waiting for ENQ character before starting package). EOT doesnt appear exactly after time-out. If the cash register will be busy by action that makes impossible to send characters, EOT character will be send as a first character after this activity. Time-out will be established for approximately 2 seconds.

Cash register send WACK character on code 09 in following cases:

  1. Character from PC has been received in case when interpretation of command isnt possible at this moment but there is no reason to interrupt transmission
  2. Packet of answers for PC is preparing or last packet interpretation is in progress


WACK characters are sending every 1,5 second time is shorter than PC time-out. The first WACK will be send to PC 2 seconds after moment when PC may expects for answer from cash register. Numbers of WACKs are not in range. WACK characters are not sending inside the packet (between STX and control sum ending appears after ETX or ETB).

In case when PC wants to resign from waiting for cash register when cash register is sending WACK and may interrupts transmission. Cash register goes to beginning status and will waits for ENQ before starting packet.

Modems signals

DSR and CTS:
Cash register responding for DSR and CTS level of the signals on the line. In case low level any of those signals, cash register stopped sending characters. In case both lines in high level, transmission will be continue. In case when PC leaves DSR or CTS for tome longer than time-out of cash register, continuing transmission cash register will end interrupts package (when interrupt appears inside the package) after this immediately resent EOT ending transmission and goes to status on the beginning.

DTR and RTS.
After starting cash register, it means while its responding for keyboard DTR and RTS are activating and signalizing that its ready for transmission. In case when the weight scale connection has been set in global option, those signals dont be active. RTS signal is missing when input buffer of cash register is overflows by PC. Input buffer is bigger than the longest proper package that cash register can received, causing it this situation couldnt appear when the use of RS port is correct.

After input buffer become to specific level RTS goes to high level again.
When the weight scale is connected, modems signal are not using. DTS and RTS are setting inactive and communication with PC is not possible. It is possible because weight scale is not using modem signals. Inside buffer is big enough to not overflow it while weight scale is connected.

Sending from PC single package of data

Sending to computer single package of data

Sending to computer many packages of data with common type of task.

Concerns packages with one of follows tasks type: D, H, I, J.

1.6. Wrong transmission from computer retransmission

1.6.1 Ending incorrect

6.2 Ending correct

Incorrect transmission to computer retransmission.

Ending incorrect

Ending correct

Incorrect starting package

Incorrect data package

Time-out after acceptable data blocks by cash register

1.11 Sending wrong data to cash register

Sending WACK characters by cash register








1.13 Sending WACK by cash register in case when cash register cant send package or ACK to package from computer by longer time period than time-out

Interrupting sending characters WACK to computer

Earlier ending transmission more packages from cash register

Control characters codes.

Name

Code

(hexadecimal digit)

ENQ

0x05

ACK

0x06

NAK

0x15

STX

0x02

ETX

0x03

ETB

0x17

EOT

0x04

WACK

0x09

RVI

0x40

Package format.

Starting package

No.

Offset

Length

Contents

Description

STX

02H

S

Starting package mark

Task type

A (41H) do Z (58H) or a (61H) do d (63H) - ASCII character means type of following data packages (without F, and O)

Transmission type

0 (30H) = taking data by computer

1 (31H) = sending data from computer

2 (32H) = taking report data with reset

Beginning

Beginning number for taking reports and some data

End

Ending number for taking reports and some data

ETX

03H

Control sum

Error codes returning with error package:

01H   Wrong task type

02H  Wrong transmission type

03H  Wrong beginning or ending numbers

Data packages programming.

System flags

No.

Offset

Length

Contents

Description

STX

02H

D

Package data mark

Task type

A (41H)

option 25 hexadecimal

Type of weight code range 0, 1, 3-10 (see description in data configuration )

option 26

hexadecimal

Weight type 0 (Medesa), or 1 (Angel)

option 27 hexadecimal

Aging PLU time range 0-52 (0 aging off, 1-52 time in weeks)

option 28 hexadecimal

Transmission to PC speed 0 (2400bd), 1 (4800bd), 2 (9600bd), 3 (19200bd)

opcje 1-8 hexadecimal

bit 0 option 1: Only code keys

bit 1 option 2: Only department keys

bit 2 option 3: Confirm by RAZEM key

bit 3 option 4: Print RAZEM

bit 4 option 5: not used

bit 5 option 6: not used

bit 6 option 7: Print department share

bit 7 option 8: Print PLU share

option 9-16 hexadecimal

bit 0 option 9: Print code PLU

bit 1 option 10: Print PLU share

bit 2 option 11: Print aprox. PLU share

bit 3 option 12: Print cashier no

bit 4 option 13: Print unused codes.

bit 5 option 14: Print unused departments

bit 6 option 15: Weight scale connection

bit 7 option 16: Druk niedost bezp

option 17-18 hexadecimal

bit 0 option 17: PLU turnover permitted report

bit 1 option 18: EAN codes control

bit 2 option 19:Backlight from battery

Bit 3 option 20. Economic print(only thermal)

ETX

03H

Control sum

Error codes:

04H  Character not representing hexadecimal digit has been met.

14H  Unique number hasnt been programmed.

Header

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

Task type

B (42H)

Header contents

Description with 217 characters length. Every line has CR (0DH) or LF (0AH) on the end, but no both one after one. Underline print begin after (0EH) character and ends by (14H). Shorter header may be end by FFH character.

ETX

03H

Control sum

Error codes:

05H  not permitted character in the header has been found

0FH  not zero PLU retail counter

14H  unique number hasnt been programmed

17H   No paper

Commercial copyright note

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

Task type

C (43H)

Copyright note contents

Description with 200-character length ends by CR (0DH) or LF (0AH), but not both one after one. Shorter copyright note may be end by FFH character.

ETX

03H

CONTROL SUM

Error codes:

05H  not permitted character in copyright note has been found

14H  unique number not programmed

Cashier

No.

Offset

Length

Contents

Description

STX

02H

D

Package data mark

Task type

D (44H)

Cashier number

0 (30H) to 7 (37H)

Cashier name

Description with 18 characters length, without control code, ends by 0xFF

Password

Four decimal digits (ASCII) means new cashier password.

Programming cashier with empty password means delete cashier with given number

ETX

03H

Control sum

Error codes:

04H  Character not representing decimal digits in one of passwords has been found

05H  not permitted character in the name has been found

07H  Wrong cashier number description

14H  unique number hasnt been programmed

HALO table

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

Task type

E (44H)

Table contents

15 10-character digit with value of followings areas of HALO table. 2 first digits from right side of every number means value in grosz (cents), 8 digits from left side, value in PLN (USD). Between those sections no coma and dot are permitted. Space instead some digits from left side are permitted.

ETX

03H

Control sum

Warning:

Halo are numbered from 1 to 15

Error codes

04H  Character not representing decimal digit with value for HALO table has been found

14H  unique number not programmed

15H  Number too large maximum amount is 21474836,39

3.16 Marks-up/discounts

No.

Offset

Length

Contents

Descriptions

STX

02H

D

Data package mark

Task type

G (46H)

Standard percentage discount

4-digits number with value from 0000 to 9999 range, which describes in hundredth parts of percentages discount standard making after push -% key. Between integer and fraction parts no coma and dot is need.

Maximum percentage discount

4-digits number with value from 0000 to 9999 range, which describes in hundredth parts of percentage maximum discount making after push -% key. Between integer and fraction parts no coma and dot is need.

Standard percentage mark-up

4-digits number with value from 0000 to 9999 range, which describes in hundredth parts of percentages standard mark-up making after push +% key. Between integer and fraction parts no coma and dot is need.

Maximum percentage mark-up

4-digits number with value from 0000 to 9999 range, which describes in hundredth parts of percentages maximum mark-up making after push +% key. Between integer and fraction parts no coma and dot is need.

Standard amount discount

Decimal 10-digits number means standard discount given after pushing KWOTA 2 key. 2 first digits from right side of every number means value in grosz (cents), 8 digits from left side, value in PLN (USD). . Between integer and fraction parts no coma and dot is need.

Maximum discount amount

Decimal 10-digits number means maximum discount amount can be given. 2 first digits from right side of every number means value in grosz (cents), 8 digits from left side, value in PLN (USD). . Between integer and fraction parts no coma and dot is need.

Standard discount amount

Decimal 10-digits number means standard discount given after pushing KWOTA 2 key. 2 first digits from right side of every number means value in grosz (cents), 8 digits from left side, value in PLN (USD). . Between integer and fraction parts no coma and dot is need.

Maximum amount discount

Decimal 10-digits number means maximu discount given . 2 first digits from right side of every number means value in grosz (cents), 8 digits from left side, value in PLN (USD). . Between integer and fraction parts no coma and dot is need.

ETX

03H

Control sum

Error codes:

04H  Character not representing decimal digit has been found

07H Make-up/discount amount too large

14H  unique number hasnt been programmed

15H  Discount amount too large. Maximum amount is 21474836,39

Department

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

Task type

H (47H)

action

0 (30H) = deleting

1 (31H) = change or adding

Department number

Decimal 2-digits number wit value from 01 to 42 range, means department number

name

18-characters description including department name. In case shorter description space characters should be use at the end

price

10-digits decimal number means price with programmed department. 2 first digits from right side of every number means value in grosz (cents), 8 digits from left side, value in PLN (USD). . Between integer and fraction parts no coma and dot is need.

PTU rate

Big characters A to F or Z for extend from PTU departments with describing tax rate.

flags

Four single ASCII digits 0 (30H) or 1 (31H) describing value of 5 parameters concerns value of 5 parameters concerns retail in department situation in order:

1. price open (if 1 giving price from keyboard during retail is possible)

2. Price programmed (if 1 gods retail without giving price from keyboard is possible)

3. Repeatable (if 1, double pushing department key causing improves two position of this department)

4. Single retail (if 1 after improving this article receipt will be automatically close)

For flags 1 and 2 combination 00 means blocking retail from department, 11 allows for giving a price from keyboard. If price is not given, using programmed price is permitted.

HALO

2-digits decimal number with value 00 to 15 range, describing index of article price limit in HALO table

ETX

03H

Control sum

WARNNING: During received package of data by computer, packages (1 or more maximum 42) describes by beginning and ending number in starting package are resenting. Range of this value is 000000000000000001 to 000000000000000042,

Error codes:

04H  in price value not decimal character has been found

05H  not permitted character in department name has been found

07H  Wrong department number description

08H Department to delete not exist

09H  Wrong PTU rate

0AH  wrong precision or flag character

0BH  Wrong HALO table index

14H  unique number not programmed

15H  price too large. Maximum amount is21474836,39

0EH  inside error

PLU

No.

Offset

Length

Contents

Description

STX

02H

D

Data Package mark

Task type

I (48H)

Action

0 (30H) = delete

1 (31H) = change or add

Article code

Keyboard code: XXXXX (5 - digits) or

Code EAN8:   XXXXXXXX or

Code EAN13:   XXXXXXXXXXXXX or

Code EAN with 2-digits extension : XXXXXXXXXXXXXXX or

Code EAN with 5-digits extension: XXXXXXXXXXXXXXXXXX when symbol X means one decimal digit (ASCII)

Name

18-digits describing of article name. In case shorter name space characters are need.

Price

10-digits decimal number means price of programmed article. 2 first digits from right side of every number means value in grosz (cents), 8 digits from left side, value in PLN (USD). Between section we dont put coma or dot.

PTU rate

Big character A to F or Z from articles extend from PLU describing VAT rate

Precision

digit 0 (30H) to 3 (33H) ASCII describing number of places after coma, which is use to remember quantity of sale of each products in PLU quantity counter

Flags

Five single ASCII digit 0(30H) or 1 (31H) describing value of following parameters of PLU in order:

Price open (if 1 than will be possible to improve the price from keyboard during sale)

Price programmed (if 1 than will be possible to sale article without improving the price from keyboard)

Price repeatable (if 1, double improvement one after one article code means double improvement of this article

Containers (if 1 that will be possible to ascribe article to container table setting this flag during programming causing automatically disregarding value of this position a

Container (if 1, will be possible describing article to container table) setting this flag during programming means automatically leaving value of precision and ascribing 0 precision value)

Single sale (if 1 after inserting this product receipt will be automatically closed)

For flags 1 and 2. Combination 00 means sale blocks.

Department

Two digits decimal number with value in 01 to 42 range, describing article membership to department

HALO

Two digits decimal number with value from 00 to 15 range, describing limit index of article price from HALO table

tandem

code EAN8:   XXXXXXXX or

code EAN13:   XXXXXXXXXXXXX or

code EAN with two digits extension: XXXXXXXXXXXXXXX or

code EAN with five digits extension: XXXXXXXXXXXXXXXXXX or code short, describing article code

describing article code which is a tandem for this article, where X symbol means one decimal ASCII digit

ETX

03H

Control sum

Remark 1: During taking PLU data by computer, package describing by beginning and ending numbers with staring package is resent. Those numbers describes two boarding article codes with the same type (codes not articles) describing of all articles from range having code the same type will be resent. Sending information about PLU cash register setting action cell (number 4) to 0.

To resent all PLU in starting package in beginning and ending cells only space characters should appear.

During programming container VAT rates is loosing (A-F or Z). Flag of programmed price must be set. Other flags, instead of container, should be reset. Precision for container must be 0.

Error codes:

04H  Character not representing decimal number in price value or code has been found

05H  Wrong article name

07H  Wrong description of department number or wrong EAN code

08H Article to delete doesnt exist or wrong EAN code

09H  Wrong PTU rate

0AH  wrong character representing precision or wrong one of flags

0BH  Wrong HALO table index or container table

0FH Non zero PLU sale or main counters, eventually quantity retail counters after precision change has been overflowing.

14H  unique number not programmed

15H  Price too large maximum amount is 21474836,39

17H  No paper in printing mechanism

18H  PLU base full

19H  Container precision flag and tandems connection flag are mutually exclusive.

20H  Article in tandem cell doesnt exist

21H  Wrong PLU base structure

22H  Hardware error of FLASH memory

23H  Too many tandems connectors

25H  Clock not programmed or wrong setting of time and date

26H  RAM memory error

27H  Too many containers

0EH  internal error

Direct articles codes ( assign to keys)

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

Task type

J (49H)

Code number

Two digits decimal number with value from range 01 to 42, describing direct code index and describes to keys/combination of keys

Article code

Shortened code: XXXXX or

code EAN8:   XXXXXXXX or

code EAN13:   XXXXXXXXXXXXX or

code EAN with two-digits extension: XXXXXXXXXXXXXXX or

code EAN with 5-digits extension: XXXXXXXXXXXXXXXXXX

where symbol X means one decimal number (ASCII)

ETX

03H

Control sum

Remark: During taking data by computer with direct codes, 1 or maximum 42 packages describing by beginning and ending numbers is starting package are resenting.

Those numbers must have a number with value from 000000000000000001 to 000000000000000042.

Error codes:

04H  Character not representing decimal number in code ascription has been found

07H  Wrong direct code number

08H  Article in this code not exist or EAN code error

14H  unique number not programmed

PTU Rates

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

K (4AH)

PTU rates

Six four-digit numbers means followings PTU rates ( from A to F) , describing in hundred parts of percent. Between integer and fraction parts, coma and dot are not need.

ETX

03H

Control sum

Error codes:

04H  In one of rate description character not representing decimal digit has been found

0FH  Non zero counters

10H  Limit 20 changes of PTU rates has been overflowed

11H  Operation not available in this work mode

14H  unique number not programmed

16H   write to fiscal memory error

17H   No paper

28H  identical rates has been already programmed

Data and time

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

L (4BH)

data

Eight decimal digits (ASCII) representing date in YYYYMMDD format

time

4 decimal digits (ASCII) representing time in HHMM format

ETX

03H

control sum

Error codes:

04H  Character not representing decimal digit in time or date description has been found

0CH  Date and time not correct

0FH  Non zero counters

11H  Operation not available in this work mode

14H  unique number not programmed

17H   No paper

Unique number of fiscal equipment

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

M (4CH)

Unique

Number

Two big characters and follows after this eight decimal digits representing unique number of fiscal equipment

ETX

03H

control sum

Error codes:

05H  not permitted character with number has been found or number not correct

12H  unique number has been already programmed

16H   write to fiscal memory error

17H   no paper

Taxpayer NIP number

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

N (4DH)

number NIP

Ten decimal numbers divide for 4 groups separated by dash

ETX

03H

17

control sum

Error codes:

05H  not permitted character with number has been found or number not correct

06H  equipment in fiscal mode already

0FH  PLU retail counters not zero

14H  unique number not programmed

17H   No paper

Equipment number programmed

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

P (50H)

Cash number

Digit 0 (30H) do 9 (39H) ASCII describing cash number

ETX

03H

control sum

Error codes:

04H  Characters not representing decimal digit in equipment number has been found

14H  unique number not programmed

0EH  internal error

Data packages reports

Cash reports

Order for sending report means to send to cash staring block with R value in cell task type and with 0 value for not resetting report and 2 for resetting report in type transmission cell.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

R (51H)

4

Cash value mark

- or +, depends next cash cell will be positive or negative

cash

20 digits decimal number means sum of admitted and not issued cash (in grosz, in cents)

cheque

20 digits decimal number means sum of admitted cheque payment )in grosz, in cents)

Credit cards

20 digits decimal number means sum of admitted payments by credit card (in grosz, in cents)



credit

20 digits decimal number means sum of giving credits (in grosz, in cents)

Talon

20 digits decimal number, means sum of admitted talons (in grosz, in cents)

Return

20 digits decimal number means sum of withdrawal concerns container return (in grosz, in cents)

Payments

20 digits decimal number means sum of payments (in grosz, in cents)

Withdrawal

20 digits decimal number means sum of withdrawals (in grosz, in cents)

ETX

03H

Control sum

Cashier retail report

Ordering to sending report depend on sending to cash starting block with S value in task type cell and with (0 non resetting or 2 resetting report) value in transmission type cell and with numbers from 0 to 7 range describing number of first and last cashier in beginning and end cell completing from left and right side by seventeen zeros.

WARNNING: Only data about programmed cashier from giving range are sending

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

S (52H)

Cashier number

Digit from 0 to 7 range

Cash amount mark

- or +, depends of contents in next cell of cash value (positive or negative)

cash

Twenty digits decimal number means sum of admitted and not issuing cash (in grosz, cents)

Cheques

Twenty digits decimal number means sum of admitted payment by cheque (in grosz, cents)

Credit cards

Twenty digits decimal number means sum of admitted payments by credit cards (in grosz, cents)

credit

Twenty digits decimal number means sum of issuing credits (in grosz, cents)

talons

Twenty digits decimal number means sum of admitted talons (in grosz, cents)

returns

Twenty digits decimal number means sum of withdrawal concerns return of container (in grosz, cents)

payments

Twenty digits decimal number means sum of admitted payments (in grosz, cents)

withdrawals

Twenty digits decimal number means sum of withdrawals (in grosz, cents)

ETX

03H

control sum

Retail in department report.

Ordering to sending report depend on sending to cash starting block with T value in task type cell and with (0 non resetting or 2 resetting report) value in transmission type cell and with numbers from 01 to 42 range describing number of first and last departments in beginning and end cell completing from left and right side by sixteen zeros.

WARNNING: Only data about programmed department from giving range are sending.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

Task type

T (53H)

Department number

Number from 01 to 42 range

Name

Eighteen characters description concerns department name. In case name shorter complete by space characters

Retail

Twenty digits decimal number means sum of department sale (in grosz, cents)

Percentage share

Percentage share of retail of giving department in total retail express always in hundredth parts of percent number from 0 to 10000 range

ETX

03H

control sum

PLU retail report.

Ordering to sending report depend on sending to cash starting block with U value in task type cell and with (0 non resetting or 2 resetting report) value in transmission type cell and with numbers describing range of codes EAN8, EAN13, EAN-13 with two-digits extension, EAN-13 with 5-digits extension or by shortest one (two codes always must have the same type) in beginning and end cell completing from left side by right numbers of zeros.

To resent reports concerning all of PLU, space characters in beginning and end cell must be use.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

U (54H)

Article code

Code EAN8:   XXXXXXXX or

Code EAN13:   XXXXXXXXXXXXX or

code EAN with two-digits extension: XXXXXXXXXXXXXXX or

code EAN with five-digits extension: XXXXXXXXXXXXXXXXXX or code shortest   XXXXX

where X symbol means one decimal number (ASCII)

name

18-characters description concerns name of article. In case shorter name must be complete by space characters on the end.

Retail

Twenty-digits decimal number means sum of article sale (in grosz, cents)

Quantity

Twenty-digits decimal number means quantity of sale articles (in thousends parts, independent of programmed precision)

Average article price

Ten-digits decimal number means quotient of retail and quantity (in grosz, cents)

Percentage share

Percentage share of article retail in total articles retail express with hundredths parts precision, number from 0 to 10000 range.

ETX

03H

control sum

Dead codes report

Ordering to sending report depend on sending to cash starting block with V value in task type cell and with (0 non resetting or 2 resetting report) value in transmission type cell and with numbers from 1 to 3 range describing number of first and last numbers of weeks in beginning and end cell completing from left side by sixteen zeros.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

V (55H)

Article code

code EAN8:   XXXXXXXX or

code EAN13:   XXXXXXXXXXXXX or

code EAN with two-digits extension: XXXXXXXXXXXXXXX or

code EAN with five-digits extension: XXXXXXXXXXXXXXXXXX or

no EAN code:  

where X symbol means one decimal digit (ASCII)

name

18-characters description contains article name. In case shorter name space characters at the end are need.

Last retail

Number of week that goes after last article retail

ETX

03H

control sum

Non resetting fiscal report and last fiscal report

Resenting fiscal report begun after receiving start package with W or X task type.

All resenting packages have the same task type as starting package.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

W (not resetting report) (56H) or X (last fiscal report) (57H)

Package type

1 for daily report package

2 for reset data memory report package

3 for reset article memory report package

Date of writing

Date YYMMDD format

Reserved bit

Loose it any value

Variable part

Meaning of following bits depends on report package type. Describing by value of cell 4. Followings table shows possible variants.

ETX

03H

control sum

Daily report package

A meaning of variable part of daily report shows following table:

No.

Offset

Length

Contents

Description

Report number

Ten-digits number means number of daily report

Retail sum

Ten-digits number means sum of gross retail in period given by report (in grosz, cents)

Total retail in rates

Seven ten-digits numbers means sum of gross retail in each rates

tax

Total amount of tax for report period

Number of receipt

Number of receipt issuing in report period

Number of print-outs

Number of print-outs issuing in report period

RAM resetting

1 if in report period RAM memory resetting appears. In this case reset report package will be send

Number of receipt

Last issuing receipt number.

Number of print-out

Last issuing print-out number

Data memory and articles resetting report package.

Meanings of variable part of daily report package presenting in following table.

No.

Offset

Length

Contents

Description

time

Exact time of reset in HHMM format

Resetting report

0 = error

1 = forced by reset key

number

Number of following reset

Resetting bits

Period report

Resenting daily report begun after receiving start package with Y or Z task type. Every resenting packages have the same task type as starting package. In case report by date starting package must have a dates limited time period in YYMMDD format in beginning and end cells, completed from left side by 12 space characters each. In case report by number in place date ten-digit number of beginning and ending report should be given.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

Y (report by date) (58H) or Z (report by numbers) (59H)

Package type

1 for daily report package

2 for reset data memory report package

3 for reset articles base memory report package

4 for PTU rates changes package

Data of writing

data in YYMMDD format

Reserved bit

Loose in any value

Variable part

Meanings of each following bits depend on package report describing by value of cell no 4. Those variants are presenting in following tables.

ETX

03H

control sum

Daily reports and memory reset package.

Those packages have identical form as presenting in point ! ! !!

Programmed PTU report package

No.

Offset

Length

Contents

Description

Six four-digit numbers describing value of programmed rates.

Summary report package

The difference to other report package is a length. Type of package mark is 6. It is sending as a last report package.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

Y (report by date) (57H) or Z (report by numbers) (58H)

Package type

6 summary period report package

Retail in rates

Seven twenty-digit number means sum net retail in each PTU rates

Tax in rate

Seven twenty-digit numbers means sum of PTU tax for each rates

Total tax

Total tax for all report

Total retail

Total amount of retail for all amount

Fiscal receipt

Number of fiscal receipts issuing in period when report was preparing

Print-outs

Number of print-outs issuing during period of report preparing

RAM resetting

Number of RAM resetting during preparing report

Control base resetting

Number of control base resetting during preparing report

Article base resetting

Flag describing if article memory resetting appear

Change in article base

Flag describing if chance appear in article memory

ETX

03H

control sum

Period report summary

Resenting period report summary begin after receiving starting package with a task type (summary by dates) or b task type (summary by numbers). One package with the same type as a starting package is resenting. In case report by dates starting package must has a dates that limited time period in YYMMDD format in beginning and ending cells, complete from left side by 12 space characters each. In case report by numbers instead dates ten-digit number of beginning and ending report must be given.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

a (61H) (summary by date) or b (62H) (summary by numbers)

Reserved bit

Bit always with 0 value

Retail in rates

Seven twenty-digit numbers describing total gross retail in every of PTU rates

Tax in rates

Seven twenty-digit numbers describing total tax value in every of PTU rates

Total tax

Total tax value for full report

Total retail

Total amount of retail for full report

Fiscal receipts

Number of receipt issued during time period for preparing report

Print-outs

Number of print-outs issued during time period for preparing report

RAM resetting

Number of RAM resetting in time period for preparing report

Control base resetting

Number of control base resetting in time period for preparing report

Article memory resetting

Flag describing if article memory resetting appear

Changes in article memory

Flag describing if any changes in article memory appear

ETX

03H

control sum

Equipment tests results

In staring package with c (63H) mark. In cell From, To range of tests must be given (from 01 to 21)

Tests number:

RAM test

Codes memory test.

Keyboard test.

Display test

Speaker test.

Drawer test

Unused test

Unused test

Unused test

Unused test

Exact PLU test

Fast PLU test

Unused test

Reserved test

Unused test

Battery test

Display test

Clock test

Unused test

EPROM test

Unused test

Printing mechanism test

Equipment answer after every test by data package with c task type.

Equipment answer package.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

c (63H)

Test number

Test number which result will be in next cell

Test results

Digit 0 (30H) error or digit 1(31H) when OK.

ETX or ETB

control sum

Error codes:

03H - Wrong test number description

Container report

Ordering for sending report means sent to starting block of equipment with d value in task type cell and with one of value 0 (not resetting report) and 2 (resetting report) in transmission type cell and digits describing range of codes EAN8, EAN13, EAN13 with two-digit extension, EAN13 with five-digits digital extension or with shortest one (codes must have the same type) in beginning and end cell, complete from left side by right numbers of 0 characters.

To resent all containers in starting and ending package space characters must be use.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

d (64H)

Article codes

code EAN8:   XXXXXXXX or

code EAN13:   XXXXXXXXXXXXX or

code EAN with two-digit extension: XXXXXXXXXXXXXXX or

code EAN with five-digit extension: XXXXXXXXXXXXXXXXXX or shortest code  XXXXX

where X symbol means one decimal digit (ASCII)

name

18-characters description contains article name. In case shortest name must be complete by space characters on the end.

retail

Twenty-digit decimal number means sum of container retail (in grosz, cents)

Retail quantity

Twenty-digit decimal number means quantity of sale containers (in pieces)

return

Twenty-digit decimal number means sum of container return (in grosz, cents)

Return quantity

Twenty-digit decimal number means quantity of container returns (in pieces)

ETX

03H

control sum

Report version

Ordering for sending means sending to equipment starting package with e value in task type cell and with 0 value in transmission cell. Values describing beginning and end are ignored.

No.

Offset

Length

Contents

Description

STX

02H

D

Data package mark

task type

e (65H)

Equipment version

4 digits describing number of equipment version. Dot is not sending to computer

Equipment version

4 digits describing number of equipment version. Dot is not sending to computer

Printing mechanism

Five characters inscription describing type of using printing mechanism (for example LT482)

ETX

03H

control sum

Error code package

No.

Offset

Length

Contents

Description

STX

02H

E

Error package mark

Task type

A (41H) do O (4EH) ASCII character describing type of data package which concerns error

Transmission type

(30H) = taking data by computer

1 (31H) = sending data by computer

2 (32H)  = taking report data with resetting

Error code

Two hexadecimal digits means error code

Beginning

Beginning number for error during taking reports and some data

End

Ending number for error during taking reports and some data

ETX

03H

control sum

Additional notes

Equipment work mode

a)       Test equipment is possible only in testing mode

b)       In P mode all reports are possible

c)       In retail mode all reports are not resetting

d)       In retail mode PLU programming is possible while receipt is not open

Transmission composed from many data packages 

In case data packages in transmission composed from more than one data package without mention of direction. All data packages must have ending code ETB instead ETX.

Control sum

To count package of control sum 16 bits variable should be initialized by 0 value. After this each followings package mark from first character after opening package STX characters to ending package contents with ETX (or ETB) characters. Treating it as a 16-bit value, bits moving it to left side by number of bits the same as a number of his position in modulo 9 (from 0 to 8 bits) with complete by zero bits from right side.

The first character, which is included by counting sum, should be treat as a character in 0 position. Moved character and counting particle sum should be

First character, which is included by counting sum, should be treats as a character with 0 position. Moved character and counting part sum should be expose XOR operation, as a result new part sum will be issue. After linking to the sum all characters this sum should be transformed in four-digit hexadecimal number and send all the digits from oldest to youngest one in ASCII characters form.

Another Error codes

For every command additional resenting error codes will be possible:

0DH  No entitle to programming and sending data (wrong work mode during issuing report).

0EH  internal error

Package ending

In all of followings tables ETX (03H) character were represented as a package end character. During transmission more than one package, ETX is sending only as a ending character of last package. At the end of another package ETB characters are sending.

During transmission to cash register ETB characters on the end of the data package is treats as ETX character and doesnt causing errors.

Ending of description in package

Every description can be ends by 0xFF character characters after this code wont be use.

All article codes, shorter and longer one, will be move with all cells to left side.

Connection cable between computer and cash register.

PIN number in cash register

Signal name

DB25 PIN number in computer

DB9 PIN number in computer

Description of signals on cash connector

TxD (SOUT)

Serial data output

RxD (SIN)

Serial data input

RTS

Modem signal hardware handshake output

CTS

Modem signal hardware handshake input

DTR

Modem signal hardware handshake output

DSR

Modem signal hardware handshake input

GND

Signal mass

Transmission speed:   2400, 4800, 9600, 19200

Number of data bits:  8

Number of stop bits:  1

Parity control:  lack

Flowing control:  hardware (RTS,DTR/CTS,DSR)





Politica de confidentialitate | Termeni si conditii de utilizare



DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 841
Importanta: rank

Comenteaza documentul:

Te rugam sa te autentifici sau sa iti faci cont pentru a putea comenta

Creaza cont nou

Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved