Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 24 of 37

TCL Terminal Control Language Programmer's Manual, pages 231 to 240

Pages 231 to 240 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 231 read from a scan by OCR; it may hold reading errors

Y - Append Non-Blank Location

Description: | Appends the contents of the first non-blank memory location to the destination buffer. Subsequent use will append the next non-blank memory location to the destination buffer.

The terminal begins reading at memory location 000, and can read up to memory location 999 in the PNC 330/340, and TRANZ 330/340, up to memory location 1999 in the TRANZ 380, and memory location 912 in the XL.

If the "Y" command appears in a loop, the memory location numbers will automatically increment until all the non-blank memory locations have been read. The "Y" command is ideal for performing a memory dump, and can serve as a diagnostic tool, reading the data stored in each of the terminal’s memory locations.

If the contents of a non-blank location contain control characters, this command converts the control characters to actual printable characters before appending to the buffer.

Examples: 99 = 12345<FS><FS> (Actual data in memory location) 99 = 12345°\'"\ (Printable data in buffer)

The memory location data is appended to the destination buffer in the format: XXX DDD, CR LF

XXX Memory location number

DDD Data contained at the location

CRLF Carriage return/line feed

See Also: Command Description

A Append from Memory Location J Append Clock Data Q Append Write Control Character +Q Append Variable to Buffer R Append Constant +V Append Sign On Message X Append from Source

Category: Buffer Operations

Buffer Status: | Source Buffer Destination Buffer No change Buffer updated Terminals Supported: Terminal Special Conditions PNC 330/340 None XL None

TRANZ 330/340/380 None

5 - 167

Page 232 read from a scan by OCR; it may hold reading errors

5 - 168

Command Format:

Parameters:

Example 1:

Example 2:

Y - Append Non-Blank Location

Default Parameter Value Description s 0 Optional; number of commands to skip after all non-blank memory locations have been read Command Operation Y2 ; Print the contents of all non-blank memory

; locations and skip two commands after printing.

; The following shows the "Y" command in ; context with other TCL commands. G ; Clear the destination buffer Y2 ; append a memory location ; after all memory locations have been read, ; skip 2 commands N ; print the destination buffer 1-3 ; loop back 3 commands (back to G)

Page 233 read from a scan by OCR; it may hold reading errors

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

*Y - Check Input Devices

Checks to see if there is data from any input device, and then branches toa control string that can process the data and append it to the destination buffer. This command is a general scan of all peripheral devices. See Appendix J for use in conjunction with “*U" command for industrial terminal applications.

Note: This command does not append the data to the destination buffer, but just informs the application that a specific device has data. The application program must execute the appropriate command to get the data from that same device.

Command Description E Input from Card Reader or Keypad +E Input Variable Decimal Point K Input from Keypad Only M Input from Card Reader Only *U Input from Bar Code Reader Data Entry

Source Buffer

Destination Buffer

No change No change

Terminal Special Conditions

PNC 330 None

PNC 340 “s5" parameter not available

XL Not available

TRANZ 330 "3" parameter not available in version 3.60 and greater

TRANZ 330 (202) "$5" parameter not available

TRANZ 340 "s5" parameter not available

TRANZ 380 None

5 - 169

Page 234 read from a scan by OCR; it may hold reading errors

5-170

Parameters:

Examples:

*Y - Check Input Devices

Default Parameter Value Description t 0 Optional; number of seconds to wait for data from a device. Default value 0 sets up terminal to wait indefinitely until it receives data.

The following parameters indicate the number of commands to skip when the terminal receives input from one of the following devices.

$1 S2 $3 S4 S5 S6 cardreader keypad bar code wand RS-232 port modem

PIN Pad

Note: Parameter “s3" is not available in version TRANZ 3.60 and greater.

Command

Operation

; This routine is used from the idle control string to wait for ; input from the keyboard, serial port, or modem. The first ; control string sets defaults for the modem.

981$

*L946 +M1.3 B.2

G

B.1

G P160 *T

65 .255 .255. .255 *P....2 L913 ;ldle_ip

913$

+A#1 0

1

2 +K7.1 L915 B.1

G

B.2

G

; Originate mode 8,N,1 ; Initialize buffers

; TRANZ - MODEM

; Set max timeouts

;DCD

; ENQ

; Multi-transaction

; EOT

; Set 1200 baud

; Do setup once, go into idle ; Idle control string - loop

; Test var 1 for current mode

; Test for equal

; Equal to 1 (local command mode) ; Skip carrier check

; Check for carrier

; Lost carrier, hang up

; Init work buffers

Page 235 read from a scan by OCR; it may hold reading errors

*Y - Check Input Devices

Examples: Command Operation (continued)

*Y.0.1.2.3.4.5 ; Input vectors, wait forever ; RDR: Magnetic Cardreader input skip 0 ; KBD: Keyboard input skip 1 ; BAR: Bar Code Wand input skip 2 ; SIO: Serial I/O port input skip 3 ; MDM: Modem input skip 4 ; PIN: PIN Pad input skip 5

L ; Re-execute control string - cardreader L ; Re-execute control string - keyboard L919 ; BAR_hndlr

L920 ; Port_hndir

L930 ; Mdm_hndir

L ; Re-execute control string - PIN Pad

Note: When the Operating System is checking all of the devices, there is a definite order in which they are checked:

Card Reader Keypad

Bar Code Reader RS-232

Modem

PIN Pad

DAAKRODY

5-171

Page 236 read from a scan by OCR; it may hold reading errors

5-172

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

+Y - Receive Network Data Within Timeout

Receives data from a network until a timeout has expired, or the correct termination character has been received. The displayed data will show the right- or left-most 16 characters.

When the skip command is used it will skip "x" number of commands if the wrong character is received or timeout occurs.

If the data is not received within the timeout or number of tries, the system will display the error message "NO x FROM HOST" where x is the value contained in the data parameter.

Warning: Use the "+Y" command with care as it will clear any data in the circular modem receive buffer.

Command Description +D Tone Dial +F Response ACK +l Send Over Modem +K Carrier Control +M Set Modem Parameters *P Specify Characters *R Specify Device, Speed and Format S Dial Phone Number *T Specify Timeouts *V Append Phone Status +X Transmit Data to Network

Communication Control

Source Buffer Destination Buffer

No change No change; buffer read/updated Terminal Special Conditions

PNC 330/340 None

XL Available on 2.70 and greater TRANZ 330 Available on 3.40 and greater TRANZ 380 None

Page 237 read from a scan by OCR; it may hold reading errors

+Y - Receive Network Data Within Timeout

Parameters: Default Parameter Value Description c 13 Data to match. This may be represented as a character within single quotes or a decimal value. The default is a decimal 13, which is a <CR>. Use this command to wait for a termination character from the network.

t 30000 Amount of time to wait in milliseconds.

1000 milliseconds = 1 second. Valid values can range from 1 to 30000. If any other value is used, it will revert to the default.

n 1 Number of tries to get the single character the system is looking for. Valid values can range from 1 to 255.

a 0 Displays or does not display characters received up to the termination character. Entering "0" tells the terminal not to display any characters. Entering "1" tells the terminal to display the right-most 16 characters. Entering "2" tells the terminal to display the left-most 16 characters.

s 0 Number of commands to skip forward or backward based on no data receipt. Use this parameter for retry purposes: enter "1" to skip forward one command or "-1" to skip backward one command.

Example: Command Operation +Y ; Wait 30 seconds or until a <CR> is received and ; don’t display the data. +Y52.20000.1 ; Wait 20 seconds or until a "*" is received and

; display the data right-most justified.

5-173

Page 238 read from a scan by OCR; it may hold reading errors

+Y - Receive Network Data Within Timeout

Login String |; GEISCO, login through the GEISCO network then returns Example: _ ; ; GEISCO login dialogue:

XL Host, _ - - ______ raises carrier wait 500ms send "H" wait 75-100ms, _ - send "H" sends "U#=" wait for "=" es send sign-on < - __ sends ENQ Sign-on = "<user name>,<password>,<PID>,<RID><CR>"

Assume userlD = "HAPPY", password = "123456", PID = 222, and RID = 333, or, 020=455-HAPPY-123456-222-333

455$ ; Do login +P500 ; Delay 500 ms +X72 ; Transmit an “H" (decimal 72) +P100 ; Delay 100 MS +X’H’ ; Transmit an "H" +Y61 ; Wait for an = sign from host (U#=) +X44.4 ; Transmit HAPPY followed by a comma (,) +X44.2 ; Transmit 123456 followed by a comma (,) +X44.3 ; Transmit 222 followed by a comma (,) +X13.4 ; Transmit 333 followed by a <CR>

5-174

Page 239 read from a scan by OCR; it may hold reading errors

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

Parameters:

Z - Pad Destination Buffer

Pads the destination buffer to a specified length, by adding a specified character. Command Description B Select Buffers D Delete Characters from Buffer G Clear Destination H Search for String +J Buffer Modification O Move Extraction Pointer +S Get Buffer Size U Copy Buffer to Memory Location Vv Display Buffer Buffer Operations

Source Buffer

Destination Buffer

No change No change; buffer updated Terminal Special Conditions PNC 330/340 None XL None TRANZ 330/340/380 None Default Parameter Value Description n none c ASCII 32 a 0

Required; the desired length of the buffer; this parameter has no default value

Optional; the ASCII decimal character used to pad the buffer; the default is 32 (space character); if none is specified, space is assumed Optional; a code indicating the type of justification to be used; the default value is 0, left justification; justification options include: 0 left justification (data flush left, pad characters on right) 1 right justification (data flush right, pad characters on left) 2 center (center data, pad left and right)

5-175

Page 240 read from a scan by OCR; it may hold reading errors

5-176

Example:

Z - Pad Destination Buffer

Command Operation Z212.48.1 ; Pad the destination buffer with zeros to a length ; of 12 characters, and right justify the original ; amount. 220 ; Pad the destination buffer with spaces to a length

; of 20 characters, left justified. ; A routine called to print the header on the receipt which contains the ; merchant address information on a 26-column slip printer. 550$

B.5 ; Select buffer 5 to work in

G ; Clear destination buffer

A85 ; Append merchant name

226.2 ; Center it

N14 ; Print

G ; Clear destination buffer

A86 ; Append merchant address

226.2 ; Center it

Ww ; Make sure printer buffer doesn’t overflow N1 ; Print

G ; Clear destination buffer

A87 ; Append Merchant city, state, zip code 226.2 ; Center it

W ; Make sure printer buffer doesn’t overflow N2 ; Print and skip one line