Page 2 - Revision History of this document; New features
- 1 - Revision History of this document Document Ver4.30 rev1.0 New features Support SE-C6000/S6000. Document Ver4.20 rev1.0 New features Support XZ file format including AUTOPGM Fields. Document Ver4.10 rev1.0 New features Support SE series. Up to Ver4.01, the key “PASSIVE=ON” is required define at...
Page 3 - INDEX; ONLINE
- 2 - INDEX CHAPTER 1. OVERVIEW OF THE COMMUNICATION MODULE/UTILITY.............................4 1-1. O VERVIEW . ............................................................................................................................... 4 1-2. C OMMUNICATION PROTOCOL .............................
Page 5 - Chapter 1. Overview of the communication module/utility; To use c_comw.exe by the DOS command line
- 4 - Chapter 1. Overview of the communication module/utility 1-1. Overview. CASIO communication modules/utilities supply data transfer with CASIO ECR/POS, conversion into text format and other useful functionality to you and your original application working under the Windows 2000/XP/2003 Server © ...
Page 6 - Protocol
- 5 - 1-2. Communication protocol 1-2-1. RS232C ( ONLINE ) Protocol Protocol name: QT/TE-H: CASIO original XMODEM protocol. CE/TK/TE-M † : CASIO original RF/N protocol. Communication: Half duplex. Start bit: 1 bit. Stop bit: 1 bit. Parity: NONE Control: CS(CTS)/DR(RTS) and DR(DSR)/ER(DTR) Cabling. D...
Page 12 - Chapter 4. Usage of the communication DLL by softoware; InitC̲COMW
- 11 - Chapter 4. Usage of the communication DLL by softoware 4-1. How to use C_COMW.DLL under C/C++ language environment The c_comw.dll executes a single communication command in one connection line such like c_comw.exe. <Usage> DLL File Name: “C̲COMW.DLL” Function Name: InitC̲COMW Para...
Page 17 - Parameter in QT-6X00
- 16 - Note 5-5 : Send IPL file. ECR will receive IPL file via FTP which suffix is "*.IPL", ignore file number parameter. ECR receive IPL file from PC (Communication Library) and works depend on ECR models as below. (PC only can send IPL file to ECR but can not receive IPL file from ECR.) [Q...
Page 18 -
- 17 - About TCP/IP and FTP communication. <Operation> Example 1) PLU file receiving from QT TCP/IP communication terminal 2. >c̲comw R FILE004.TXT 4 -t2 -li -dQT6600.INI -T Example 2) PLU file receiving from QT TCP/IP communication address 132.1.2.170. >c̲comw R FILE004.TXT 4 -t132....
Page 20 - Detail of JOB command, refer other chapter.; Control command: Specify sequence control command.
- 19 - 5-3. File receive/send operation (Multi command). This is used for c_comw.exe with script file name or c_comwx.dll parameter. USG: "[Script filename] [switches … ]" [Script filename] Specify script text file name. Script text File describes how to execute Receive and Send of AUTOPGM, ...
Page 22 - Example of space folder.
- 21 - Example of how to make Filelist. Expected function as follows. 1 st line: Send Z lock Job command 2 nd line: Receive the Fixed transaction data and Z operation 3 rd line: Receive the Free Function file data and Z operation 4 th line: Send PLU program data to ECR 5 th line: Send Z unlock Job c...
Page 23 - Example
- 22 - 5-4. Job command operation USG: ” J JobNo [param1] [param2] ……… [ParamN] switches ” JobNo=0001: Send clock time information. [QT/TE-H] Param1: yymmdd information. Param2: hhmmss information. Param3: Send target terminal number. Example . Set ECR time as 2001/February/03 rd 23:59:00. J 1 01020...
Page 26 - File size of the IPL module may be changed in the future version.
- 25 - JobNo=0050: Job start send auto program. [QT/TE-H]Param1: Target terminal number.(see NOTE 5-4) Param2: Target file number. Param3: Always 0 Param4: Start record number. (If put 0, from start record) Param5: End record number. (If put 0, until end record) Example. J 50 2 0 0 0 – dc:¥cvw¥qt200...
Page 28 - Intel short is converted hi-low byte like AA BB means BBAA hex
- 27 - Result of Term 32 Intel short 2bytes You do not have to care Header area. Date/Time is the date/time when job has been executed. Exe Number is internal execution Job number. NOTE 5-5 Intel short is converted hi-low byte like AA BB means BBAA hex For example, 12 34 is 3412 hex. Result of Ter...
Page 29 - File receive
- 28 - 5-5. Communication Dialog Communication Dialog is shown when communicating. The communication title – Up load/Down load and type – can be changed by INI file. 5-5-1. Dialog example File receive – R/X/Z command – Dialog. File send – S command – Dialog. JOB command Dialog. File create command –...
Page 30 - MESSJ=Command execute
- 29 - 5-5-2. INI file setting. [COMDIALOG] Sectoin. SHOWDIALOG=ON Select show dialog (ON) or not (OFF). No definition means ON. CANCELCAPTION=Cancel Cancel button caption. No definition shows "Cancel". MESSJ=Command execute JOB command title. No definition shows "Job Command"...
Page 31 - Chapter 6. Modem communication
- 30 - Chapter 6. Modem communication Communication utility has a function to dial. This function works with Windows TAPI set on “control panel” – “ modem”, this means that you have to choose a modem working under the Windows and to set appropriate conditions to the modem by the “modem function”. 6-...
Page 33 - Chapter 7. Error code; PC side error
- 32 - Chapter 7. Error code 7-1. The type of error There are three types of error available for the communication. 1. PC side error For example, when a communication error happens between PC and ECR, DOS file does not exist. This kind of error logs into the “ecr.log” file. Refer to the “PC Error co...
Page 37 - Profile section and keyword.; Section
- 36 - Chapter 8. Profile (INI file) and Machine ID 8-1. INI file Profile values are very important for communication utility and CV10. Some value you can change for your environment, but some values must not be changed. Profile section and keyword. Section Key word data sample for QT/TE data sample...
Page 38 - SPEED
- 37 - [ONLINE] TARGET= - 1 COM= 1 1 PC RS232C Port. COM=1 or COM=2. In case of use mode, please set this value also as modem port. Please change for your PC environment. SPEED= 115200 19200 Select online communication baud rate. Please change for your PC environment. If you change this value, pleas...
Page 41 - please set extra field location; M S
- 40 - [(file name)_XZ] (Example, FILE0016_XZ) This section will be automatically updated with -i option when converting binary to text. XZ_ADD_FIELD=01,03 (Non support) Append field location. If you want to append extra fields to X/Z receive data, please set extra field location . For example, 1 me...
Page 45 - Machine ID Product name; FE-800
- 44 - 8-2. Machine ID Machine ID value. Machine ID Product name 01 CE-4700 02 TK-2300 03 TK-2700 04 TK-5100 05 CE-4300 06 CE-4800 07 TK-1400 08 TK-1300 09 10 TK-2400 11 CE-6000 Japanese 12 CE-7000/7500 Japanese 13 TK-6000 Japanese 14 TK-7000/7500 Japanese 15 16 CE-4000 17 CE-300/TE-100/TE-2000 18 T...
Page 46 - Chapter 9. File Format; (Received packed data without –T option); When backup from ECR
- 45 - Chapter 9. File Format 9-1. Outline There are three types of data, which you get in a PC with the communication DLL. 1. Text data (Received data from ECR with –T option) This type of data is created in a PC when receiving a program or a sales data from the ECR with –T option. You can open the...
Page 47 - Structure of text data.; line: ‘C’ Command header line; line: ‘H’ Data header line; line: ‘F’ File xx header line; Command header; Machine Type
- 46 - 9-2. Text data format Structure of text data. 1 st line: ‘C’ Command header line 2 nd line: ‘H’ Data header line 3 rd line: ‘F’ File xx header line 4 th line: Record number 1 data line. 5 th line: Record number 2 data line. 6 th line: Record number 3 data line. until m0 line: Record number n ...
Page 49 - Sample PGM Text data of TK7000 PLU
- 48 - Sample PGM Text data of TK7000 PLU "C","n:P0004:" "H","25","01","0000","001128","1144","0004","01","02","00000","00000","00000","00000" "F","FILE004","P&...
Page 53 - Binary data file has following structure.; Header; Variable size
- 52 - 9-4. Binary data format Binary data file has following structure. Header: Header size is 128bytes fixed. Header has compress information, AUTOPGM/XZ, file number or XZ code. This area will be text converted as “C” line. Data Example: ”n:P0004:”……..”P0n” DATA: DATA has sections H, I and F. ECR...
Page 54 - Field information size.
- 53 - Sinf-1 : Scanning PLU information. (Variable record size). Sinf-2 : Scanning PLU information. (Deleted record size). Sinf-3 : Scanning PLU information for NFP. Not used. Sinf-4 : Scanning PLU information for NFP. Not used. ECRver : ECR application R&D version number. (2) I section: File f...
Page 57 - かさ
- 56 - 000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000070: 00 00 00 00 00 00 00 00 00 00 00 00 50 4F 63 00 ............POc. 000080: 48 20 02 FE 02 06 03 03 11 59 FE 03 02 FE 02 49 H .......Y....
Page 58 - Target DOS file name
- 57 - Chapter 10. Error log file (ECR.log) format You can check ECR.log file for communication utility errors. All of command appends at bottom of ECR.log file. Basic format for R/S/S0/X/Z command. 1 st line: Command line 2 nd line: Result line Basic format for Job command. 1 st line: Job command l...
Page 59 - works Z clear job command internally.
- 58 - <Examples> This page explains ecr.log data sample by each command. Receive auto program: c:¥cvw>c_comw R file0004.txt 4 -lo -dc:¥cvw¥tkt500.ini -T 01:02:01-17:57:17 > C_COMBDY.DLL / R/S[1] Fno[4] FNAME[file0004.txt] Line[0] Term[0] PROF[C:¥Cvw¥tkt500.ini] Init[0] Text[1] Consol[0]...
Page 60 - Chapter 11. Protocol; Please Do Not Use ECR protocol directory; for upgrade or bug fix.; CF card file
- 59 - Chapter 11. Protocol This chapter explains communication protocol for reference. Please Do Not Use ECR protocol directory , but use communication module. CASIO will change protocol without notice for upgrade or bug fix. 11-1. Protocol type. CASIO ECR has following protocols. ・ RF Protocol (R...
Page 61 - RF Protocol
- 60 - 11-2. RF Protocol Outline: RF (remote file) protocol is designed for EX445 JP Model. For international, it is updated for MID range models. RF has RF layer and N layer. ECR: International and Japanese MID range models. DATA: STX SID DID LEN PKT PKS SEQ RF DATA LRC 1 byte 1 byte 1 byte 2 bytes...
Page 67 - No support CF command.
- 66 - 11-5. CF card CF card means AUTOPGM file convert to/from TEXT and X/Z file convert to general CASIO X/Z format. 11-5-1. S command – PC to CF card with TEXT to BINARY convert. >c_comw S myfile.txt cffile.001 -lc -dQT6600.INI Action: C_comw read “myfile.txt” which is specified command filena...
Page 68 - CF card folder name has “CASIO”, machine name and AUTOPGM or XZ.; Preset file is under AUTOPGM folder.; File name includes file number, type and terminal number.
- 67 - 11-5-5. CF card folder CF card folder name has “CASIO”, machine name and AUTOPGM or XZ. AUTOPGM: Preset file is under AUTOPGM folder. Example) ¥CASIO¥BT4000¥AUTOPGM¥[file] X/Z – QT series: X/Z file is under XZ¥[yymmdd] folder. Example) ¥CASIO¥BT4000¥XZ¥060210¥[file] X/Z – TE-Low: X/Z file is ...
Page 69 - CF card X/Z file is not same format between different ECR models.; CASIO standard binary format.
- 68 - 11-5-7. Different format between ECR type CF card AUTOPGM file is same binary format for all of CASIO ECR models. CF card X/Z file is not same format between different ECR models. AUTOPGM: CASIO standard binary format. X/Z file for QT – CASIO standard X/Z format. "C","n:X0015"...
Page 70 - Communication DLL; TEXT convert
- 69 - 11-5-8. QT CF converts flow. 1: c_comw R myplu.txt myplu.004 -lc -dQT6600.INI -T 2: c_comw S myplu.txt myplu.004 -lc -dQT6600.INI 3: c_comw X X001T01.txt 060206¥X001T01.txt -lc -dQT6600.INI QT6000.INI [CF] FOLDER_AUTOPGM=G:¥CASIO¥QT6000¥AUTOPGM FOLDER_X=G:¥CASIO¥QT600 0¥XZ Communication DLL...
Page 74 - Support FTP command:; username
- 73 - Start communication: Message include 150. Ignored. About “J_JOB.TXT”. This file has command line string except option switchs. End of line must have crlf. (0x0d,0x0a). c_comw J 21 A 0 14 1 -lf -nMYEX820 -pMYPASS -dBT4000.INI → J 21 A 0 14 1[CrLf] (4) Response type JOB command. This means JOB ...