The text of a manual · part 36 of 37
TCL Terminal Control Language Programmer's Manual, pages 351 to 360
Pages 351 to 360 of 362
The original document is the PDF (13 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the VeriFone Tranz 330
Page 351
ROM
Scroll
Serial Port
Source Buffer
STORE Function
String Constant
STX
Subroutine
Swipe
TCLOAD
Terminal Control Language
(TCL)
Timeout
Transaction
Transfer
Truncate
User
Glossary
Read Only Memory permanently stored in the PNC, XL and TRANZ terminals. Contains the standard application, fixed prompts and operating system.
To move text across a display screen.
Circuitry in the PNC, XL and TRANZ terminals with a DIN connector for communicating with download computers, other terminals, peripherals and printers.
A "read only” buffer into which you can pull the contents of any of the terminal's five buffers for review.
Terminal function that allows you to store data in a single memory location. If data is already stored in that location, the STORE Function will replace the existing data with the new data.
A sequence of alphanumeric characters enclosed in single quotation marks; for example - ‘SLIDE CARD’ or ‘1991’.
Start of Text; the beginning of a message packet.
A group of commands within a program that perform a particular function; subroutines may appear anywhere in the program, and may be called any number of times during the program.
The action of sliding a card through the cardreader.
An assembler and download program designed by VeriFone that converts TCL source code into a format suitable for downloading into the terminal.
A proprietary programming language designed by VeriFone for the purpose of programming a PNC, XL or TRANZ terminal.
A specified period of time in which the terminal stops processing or undertakes a predetermined alternate action. Command "*T" sets the length of various communications timeout periods.
An operation requiring the terminal to process data to accomplish a predetermined task.
To move data from one location to another.
To shorten a number, usually by one or more digits, when the number is placed in a memory location that is too small to store all of the digits. For example, 1.2345 is truncated to 1.23 when stored in a location that holds only four characters.
The person who is using the PNC, XL or TRANZ terminal.
Glossary - 7
Page 352
Variables
Void
Write Control Character
Glossary - 8
(WCC)
ZONTALK 2000
TCL Programmer’s Manual
Temporary work bytes used to express numeric values; up to ten variables may be specified on a per transaction basis; a variable can have a value of 0 to 255 on TRANZ version 1.2 and below and all XL versions and a value ranging from 0-65535 on PNC 330/340 and TRANZ versions 1.3 or greater, and all versions of TRANZ 380.
To clear or delete a transaction; a type of transaction that deletes data from the terminal or host computer.
A special bit-mapped code that tells the host whether to use a single or multi-transaction protocol, or whether an account number was read from a magnetic stripe or manually entered from the keypad.
A communication program for IBM PC compatible computers used to download applications from the computer to a terminal.
Page 353
Index
A ABORT auto answer 2-6 function routine 2-22 unlock keypad 5-87 Abort Control String 2-24 Abort/terminate 5-79 Account number accepted 5-162 encryption 5-53 Account range select 5-162 table 5-163 Account ranging control string C-1 for XL C-1 ACK response enabled/disabled 5-45 send over modem 5-45 Adding records to D.C. file C-3 Append constant string 5-114 memory location data 5-7 - 5-8 Application customizable 1-2 debugging 3-5 design 3-1 downloading methods 4-1 loading 3-4 writing 3-2 Arithmetic operations 5-130 ASCII table G-1
Auto answer
ABORT 2-6 function 2-6 voice communication 2-6 AUTODIAL function 2-4 Auxiliary control string 3-4
B Bar Code bad read 5-143, Appendix J Initialization J-5 reader, input 5-142 wand 2-27 Batch delete 5-16, 5-31 detail record 5-49 file 2-29 header 5-9 open 5-9 print routine 5-111 select for read operation 5-15 Baud rate downloading 4-2 set 5-145 Beep error 5-48 key 5-48 Block Character Check (BCC) calculate 5-17 Buffer 2-25 append error code 5-66 append fixed prompt 5-41 append memory location 5-167
Index - 1
Page 354
index
Buffer (continued)
append signon 5-154 append source 5-160 arithmetic operations 5-130 calculate BCC 5-17 clock data 5-68 communication control 5-2 comparison 5-25 compressed length 5-128 compression 5-24 copy to batch 5-23 copy to memory location 5-140 corrupt data 5-95 data capture and batch functions 5-2 delete data 5-47 destination 5-28 - 5-30 display contents 5-147 get size 5-128 input 5-36
LAN code 5-152 modification 5-74 move extraction pointer 5-99 operations 5-1 - 5-4 pad destination 5-175 remove periods/commas 5-73 selection 5-13 - 5-14 send to printer 5-95 string comparison 5-58 string search 5-52 wait for printer 5-156
Cc Cable part numbers 4-2 Cardreader input 5-35 input only 5-89 Carriage returns, append to buffer 5-95 Carrier control, raise/drop 5-81 Check digits, verify 5-20 Clock data, append/set 5-68 Code 39 5-143 error codes J-2 Commands buffer operations 5-1 by functional groups 5-1 data entry 5-3 encryption 5-3 fraud control 5-3 outputs and data display 5-3 process and flow control 5-4 skip 5-120 variable operations 5-4 Communicate subroutine 2-18 Communication character change/specify 5-104 character definition B-1 control commands 5-2 protocols B-1 valid pass characters 5-60, 5-63
Communication dialog host NAKs transmit packet B-5
Busy tone, check for B-2 terminal does not send xmit packet Bytes, calculate 5-177 B-5
Index - 2
Page 355
Index
Communication dialog (continued) terminal NAKs resp. packet B-6 without error B-4
Communication messages dialing B-6 host/erminal B-8 network login B-7
Control string 3-3 auxiliary 3-4 basics 3-3 chaining 3-1 dedicated 3-1 dedicated locations 2-28 function 3-4 idle loop 2-4, 2-12 link 5-83 maximum length 3-3 message format flag 2-30 response analysis 2-17, 3-4 retum to original 5-91 transaction 3-4
Custom prompts, display 5-103
Customer Support E-6
D
Data capture 2-29 capture and batch 5-2 capture and batch function commands 5-2 capture errors, detect/fix 5-43 capture headers 2-25 ensure validity 5-17
Data (continued) entry commands 5-3 justify display 5-71 send to printer 5-95 storage format 3-1 transmit to network 5-165 Date, format/print routine 5-115 Decimals, defining places 5-42 Default protocols 2-13 Destination buffer 2-25 append constant 5-114 append variable 5-112 - 5-113 delete characters 5-28 - 5-30 telephone code 5-150 Detail records 2-25 Diagnostics Mode Bar Code input J-7 Dial parameters B-1 baud rate B-2 characters to dial once phone off hook B-1 check for busy tone B-2 login type B-2 memory location specifier B-2 pauses and delays B-2 phone number B-2 Dial speed 5-33 Dial Strings B-1 samples B-2 Dialing options 5-123 DIN 6 format 5-145 port 5-137
Index - 3
Page 356
Index - 4
Index
Display, justify data 5-71 Download baud rate 4-2 cable part number 4-2 dial-up 2-22 TCLOAD direct 4-2 unit-to-unit 2-22 ZONTALK 2000 4-3 DTMF terminal usage 5-33 DXL File 4-2
E 8-Pin DIN, communications/printer 2-27 encryption commands 5-3 PIN 2-27 PIN Pad/terminal 5-54 ENQ/NAK enable/disable 5-93 EPROM checksum 2-1 EPROM naming conventions H-1 Error condition BAD ACC’T NUMBER 5-20 INVALID BATCH 5-15 NOT ENOUGH MEMORY 5-23 Errors, data capture 5-43 Examples add record to batch 5-24, 5-50 add/update password 5-84 analyze close resp message 5-46 append fixed prompt 5-42 append/clear buffer 5-96 arithmetic routine 5-131
Examples (continued) auto answer 5-94 bar code input 5-143 build packet 5-18 calculate LRC 5-18 call routine 5-94 capture date and time 5-69 check digit test 5-21, 5-90 check error 5-50 check printer handshake 5-122 checks memory 5-24 clear batch 5-80 clear memory location 5-113 delete batch 5-32 display decimals 5-43 display fixed prompt 5-42 display offline approval 5-74 enable multi-trans 5-124 error reported 5-44 extract approval no. 5-14 extract display 5-72 extract display message 5-161 extract/store data 5-100 formats/prints date 5-115 get account data 5-21, 5-100 get amount 5-77 get buffer size 5-129 get carrier 5-87 get data from cardreader only 5-90 get LAN status 5-153 get phone status 5-151 get PIN block 5-55 get price 5-159
Page 357
index
Examples (continued)
get receipt header 5-98 get/store password 5-29 go off hook/dial 5-34 idle control string 5-62, 5-134 keypad/cardreader entry 5-36 link routines 5-84 lock keypad 5-87 memory check 5-127 modem setup 5-94 open batch 5-10 pad buffer 5-176 print batch 5-111 print common header 5-12 print heading 5-157 print memory location 5-166, 5-168 print receipt header 5-176 printer attached 5-119 prompts TIP amount 5-103 raise carrier 5-82 read batch record 5-41 read/update batch 5-16, 5-44 right-justify message 5-72 search batch 5-26 select/clear buffer 5-47 send buffer to modem 5-65 send data to printer 5-96 set DIN 6 5-146 set modem default 5-62 set roll printer flag 5-8 set timeout 5-134
String search 5-52 terminal beep 5-48
Examples (continued) verify log on 5-59, 5-92 verify memory 5-129 void transactions 5-12 wait for peripheral device input
5-170 - 5-171 Explicit return 5-91 Extraction pointer 2-25, 5-51 move 5-99 reset 5-13 set 5-160
F
Field separator 2-13 append 5-76
Firmware, get version 5-154
Fixed prompts 2-32 alphabetical list F-4 display 5-42 numerical list F-1
Flow chart auto answer 2-7 - 2-11 communicate subroutine
2-19 - 2-21 development 3-1 function routine 2-23 idle loop control string 2-12 idle state routine 2-3 key press 2-5 transaction 2-15 - 2-17
Format RS-232 port 5-116
Fraud control commands 5-3
Function routine 2-4, 2-23
Index - 5
Page 358
Index
Functions 3-1 Logical AND/OR/XOR, compute 5-73 G Login parameters 5-173 General wait 5-158 - 5-159 Login, generic 1-1 Longitudinal redundancy check B-4 H LUHN check digit 2-31 Header algorithm 5-20 - 5-22 copy to buffer 5-40 bar code 5-143 delete 5-32 fraud control 5-20 | M 1/0 on T330/380 terminals D-1 Memory Idle control string allocation 3-1 if enabled 2-4 append data in location 5-7 wait for input 5-134 calculate free bytes 5-177 Idle loop control string 2-12 conserve 5-7 following timeout 2-4 considerations 2-27 Idle state 2-2, 2-13 definition 3-1 Index code 2-13 dump, performing C-7 Industrial terminal 5-143 link control strings 5-83 Input devices check 5-169 linking locations 3-3 Input flag, editing criteria 5-35 management guide 3-1 installing TCLOAD E-1 verify available 5-126 verify size 5-129 K Memory comparison Key press 2-4 algorithm compression 2-29 Keypad Memory locations entry 5-77 append 5-167 input 5-36 clear routine 5-113 lock/unlock 5-87 copy buffer 5-140 copy control string C-4 L copy data fron one to another C-4 Local area network (LAN) 4-2 display contents 5-103 send/receive data 5-67
Index - 6
Page 359
index
Memory locations (continued) funtional listing PNC 330/340 A-1 TRANZ 380 A-6 XL, TRANZ 330/340 A-1 multiply contents 5-131 numeric listing T340/330(202) A-21 TRANZ 330 A-14 TRANZ 380 A-26 XL A-9 specifier B-2 Memory size TRANZ 330/340/380 2-28 XL 2-28 Merchant ID 2-13 Message format flag 2-14, 2-30 sequence number 2-13 status code 2-13 Modem mode/data format 5-94 port, /O 5-63 Muiti trans, set 5-123 Multi-transactions 2-4
N Network logins B-6 logon to 2-18 receive data from 5-172 transmit data to 5-165 - 5-166
O
Operating system 1-2 basics 2-1 Revisions 1-2
Operator input 3-1
Outputs and data display commands 5-3
Pp Parameter information 2-29 Pass characters 5-137 Password management 2-22 Peripheral devices, scan 5-169 PIN encryption 5-53 PIN Pad 2-27 PNC memory locations A-1 PNC modes of operation A-5 Post dial 2-4 Power up routine 2-1 Printer attached routine 5-119 handshake check routine 5-122 handshake lines, testing C-8 send buffer data 5-95 wait 5-156 Process and flow control commands 5-4 Program separators 5-42 Prompts 3-1 Psuedo code 3-1
Index - 7
Page 360
Index - 8
Index
R Radix 5-42 RAM 2-27, 2-29 RAM test 2-1 RECALL function 2-22 Receive character 5-104 packet format B-6 Record append to buffer 5-40 append/insert 5-49 delete 5-32 Removing characters C-7 Request packets 2-25 Response analysis control string 2-17, 3-4 Response packets 2-25 Retrieve data capture record C-5 Roll printer, set flag 5-8 ROM 2-27 RS-232 2-27 character I/O 5-60 port 2-18 select device/speed/format 5-116 signal 5-120
S
Scroll messages 2-4
Serial number 2-13 Single/muiti protocol 5-107 6-Pin DIN 2-27
Source buffer 2-25
Source code writing tips 3-3
Special functions modules 3-2 Specifier, network login |-1 STORE function 2-22 String, byte-for-byte comparison 5-58 Subroutine communicate 2-18 exit 5-91 jump/execute 5-86 Support modules 3-2
T T330/380 dialup communication D-5 TCLOAD 3-3, 3-5, 4-1 command string declaration directive E-3 comment directive E-3 data declaration directive E-3 error reports E-6 file directives E-2 include file directive E-2 Op sys version number E-2 options E-5 partial download directive E-4 program, defined E-1 running the program E-5 writing a TCL file E-2 Telephone line status 5-150 Termination character 5-104 Text editor 3-3 Timeout communication 5-132