The text of a manual · part 19 of 37
TCL Terminal Control Language Programmer's Manual, pages 181 to 190
Pages 181 to 190 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 181
*R_ - Select Communication Device, Speed
Command Format (XL):
Default Parameters: Parameter Value Description at 0 Optional; select port. Options are: (modem) 0 select internal modem; 300 baud 1. select RS-232 port a2 0 Optional; the baud rate at which data is:
(300 baud) transferred via the RS-232 port; baud rate options include:
300 baud
600 baud
1200 baud
2400 baud
4800 baud*
9600 baud*
19200 baud*
While the XL can transmit and receive at baud rates of 2400 or lower, it can only transmit at
4800 and higher.
auahkwonh-o
* a3 see Optional; handshake sense to be used desc. when (current value) the RS-232 port is selected; handshake options include: 0 no change from current value
1 no handshake (default on ABORT) 2 transmit when line is MARK (voltage high) 3 transmit when line is SPACE (voltage low) a4 see Optional; data format to be used when desc. RS-232 port is selected; format options include:
0 nochange
1 7 data bits, even parity (default on ABORT)
2 8 data bits, no parity
5-117
Page 182
*R_ - Select Communication Device, Speed
Example: This is an XL example selecting the RS-232 port and must be done using (XL) standard communications and standard VISA 1 protocol.
Command Operation
052=*R RS232 PORT TEST __ ; Data to send
100=1; ; Dummy phone number 104=1; ; Merchant ID 108=300 7E1; ; Transaction type prompt 107$ B1.1 ; Select transmit buffer G ; Clear it R2 ; Append A52 ; Append data to buffer A108 ; Append data to buffer *R1.0 ; Select RS-232 port
: Set at 300 baud, 7E1 ; and drop into standard ; communications
110$ ; Response analysis control string ; view data received B2.2 ; Select receive buffer V ; View it *K1 ; Abort, leaving display
Command Format:
(TRANZ) Parameters: Default Parameter Value Description at 0 Optional; the baud rate at which data is: (300 baud) transferred via the RS-232 port; baud rate options include: 0 300 baud 1 600 baud 2 1200 baud 3 2400 baud 4 4800 baud 5 9600 baud 6 19200 baud a2 see Optional; handshake sense to be used desc. when (current value) the RS-232 port is selected; handshake options include:
Q nochange
1 transmit when line is MARK (voltage high) (default on ABORT)
2 no handshake
5-118
Page 183
*R_ - Select Communication Device, Speed
Parameters: Default (continued) Parameter Value Description a3 see Optional; data format to be used when desc. RS-232 port is selected; format options include: 0 nochange 1 7 data bits, even parity, 1 stop bit (default on ABORT) 2 _ 8 data bits, no parity, 1 stop bit 3. 8 data bits, no parity, strip parity on receive Example: Command Operation (TRANZ) ; This routine is called to check to see if a roll printer is attached ona ; TRANZ. 80=NO COMM W/PRINTER 450$ B1.1 ; Select source and destination buffer G ; Clear destination buffer R17 ; Append decimal 17 to destination buffer *R5.2.1 ; Set RS-232 port parameter to baud rate of 9600, ; handshake 3 wire system, 7E1 *| ; Send transmit buffer over RS-232 port “WI ; Pause for 1 second +R6.2 ; If we are handshaking skip 2 P80 ; Display "NO COMM W/PRINTER" *K1 ; Abort and leave up current display
5-119
Page 184
5-120
Description:
See Also:
Category:
Buffer Status:
+R - Get/Set RS-232 Handshake Lines
Gets/sets the RS-232 signal lines and allows you to skip a designated number of commands if signal one, two or one and two are high.
The PNC 330 and TRANZ 330/380 can be configured as a DTE (Data Terminal Equipment) interface or a DCE (Data Communications Equipment) interface, using the RS-232 port, however, the PNC 330 and TRANZ 330/380 has only 3 control signal pins. Required control signals differ according to the device being interfaced.
Pin/Function PNC/TRANZ (DTE) PNC/TRANZ (DCE)
Pin 3 Request to Send! Data Set Ready’ (DSR) (toggle) (DTR) Data Terminal Clear to Send! (CTS) Ready’ Carrier Detect" (DCD) Pin 2 (DSR) Data Set Ready” Data Terminal Ready” (DTR) (test) (DCD) Carrier Detect® Pin 4 (CTS) Clear to Send? Request to Send? (RTS)
(test)
’ controlled by PNC/TRANZ 2 controlled by ECR/PC
Command Description *| Send over RS-232 N Send Buffer to Printer +R Specify Device, Speed and Format
Communication Control
Source Buffer Destination Buffer
No change No change
Page 185
+R - Get/Set RS-232 Handshake Lines
Special Conditions
None (not supported when in PNC mode) Available on 2.8 or greater supporting the parameter option to skip if the handshake is not active. "a" parameter not available. Available on 1.25 or greater supporting the parameter option to skip if the handshake is active. "a" parameter not available. Available on versions 1.3 or greater Available on versions 2.1 or greater Available on versions 2.1 or greater
None
Description
Terminals Supported: Terminal PNC 330/340 XL XL 300 TRANZ 330 TRANZ 330 (202) TRANZ 340 TRANZ 380 Command Format: (PNC/TRANZ) (XL/XL300) Parameters: Default Parameter Value a 0 s 0
Optional; the options are:
0 drop the voltage on the output handshake line (DIN 8, pin 3)
1 raise the voltage on the output handshake line
5 skip "s" parameter if signal one (DSR) is high. (DIN 8, pin 2)
6 skip "s" parameter if signal two (CTS) is high (DIN 8, pin 4)
7 skip "s" parameter if signal one and two are high (DIN 8, pin 2 & 4) Optional; number of commands to skip
5-121
Page 186
5 - 122
+R - Get/Set RS-232 Handshake Lines
Example: Command
Operation
(PNC 330 or TRANZ 330)
; This routine checks the printer handshake
338$ B4.4 ; Select buffer G ; Clear destination R32 ; Append a space to the buffer N ; Send it to the printer *W1 ; Delay 1 second +R6.3 ; Skip three if handshake is active P94 ; Say, "PRINTR NOT READY" *G1 ; Beep *K1 ; and abort leaving display Example: B5.5 (XL) G R13 ; <CR> N ; Send it to the printer *W1 ; Wait for P200 +R6 ; Skip if no handshake G ; Else P200 is ON and ready R’THIS IS A TEST’ N1 ; Print the line W ; Wait for print buffer *K F61 ; No handshake detected, display any message *G1 ; so that we know it didn’t respond *K1
Note: The XL 300 is the same except for command +R6, where it will skip if there is handshake. ,
Page 187
S - Dial or Set Multiple Transaction Function
Description: | Causes the terminal to either dial a telephone number in any memory location, or set the multiple-transaction function.
Dialing options "M" and "N" select 300 and 1200 baud, respectively, on a PNC 330 or TRANZ 330/380 and are placed at the end of a telephone number. "W" and "-" are pause characters you can insert where needed to control dialing. "D" inserted after the "9" (or other outside line) digit indicates the terminal should wait until dial tone is detected before sending a transaction to the host. An example of a telephone number with a pause and 300 baud would look like: 9-8445555M.
Other dialing options you can add at the end of a phone number are "Xn" and "Ln" for selecting a login string. See Appendix | for login information.
If the “N" dialing option which selects 1200 baud is used, the "S" command can only work in memory location x07/0x07.
See the "*K" command to hang-up when using the "S" command in any routine other than the default communication.
WARNING: If you issue an "S" command to start dialing and a phone line is not attached (for example for a demo or offline transaction), printer operations will be inhibited.
Note: The execution of Si or S2 commands will set the terminal in multi-transaction mode. Multi trans timeout will be set by the contents of . memory location 007/0007. If 007/0007 is <empty>, the terminal will default to 3 20-second intervals, or 60 seconds. The contents of 007/0007 represents 20-second intervals but will not apply if in the idle loop or auto answer contro! strings. See Also: Command Description +D Tone Dial +F Response ACK +] Send Over Modem +K Carrier Control +M Set Modem Parameters *P Specify Characters *R Specify Device, Speed and Format *T Specify Timeouts *V Append Phone Status +X Transmit Data to Network +Y Receive Data from Network
Category: Process and Flow Control
5-123
Page 188
5 - 124
Buffer Status:
Terminals Supported:
Command Format:
Parameters:
Examples:
S - Dial or Set Multiple Transaction Function
Source Buffer Destination Buffer
No change No change
Terminal Special Conditions
PNC 330 None
PNC 340 SO, S3 and "m" parameter not available XL $3 not available
TRANZ 330 None
TRANZ 330 (202) SO, S3 and "m" parameter not available TRANZ 340 SO, S3 and "m" parameter not available TRANZ 380 None
Default Parameter Value Description a 0 Optional; this parameter functions when the following values are used: 0 _ start dialing primary phone number or "m" (On TRANZ 340 0=do nothing) 1 enable multi-transaction mode, but do not allow viewing of host response 2 enable multi-transaction mode and allow viewing of host response 3 go off hook immediately (does not check for parallel phone in use). m primary Optional; memory location to dial if "a" = O or is phone blank; if "m" parameter = 0 or does not exist, number and this command is part of the control string initiated from memory location x07/0x07, terminal automatically dials host’s primary telephone number stored in memory location x00 (x = transaction keys 1 through 9).
Command Operation $2 ; Enable multi-trans mode and display host ; responses S$ ; Start dialing the host’s primary telephone ; number now $.350 ; Dial the phone number in memory location 350.
Page 189
S - Dial or Set Multiple Transaction Function
Note: On TRANZ 330 EPROM versions less than 3.60, and PNC 330 versions less than 3.5, multi-trans does not time out when using Si or Se if an <ENQ> is received before the timeout value set in memory location 007 is reached.
5-125
Page 190
5 - 126
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
Parameters:
*S - Verify Memory Available
Ensures there is enough memory available for a specific memory requirement. If the number of available bytes is greater than the "n" parameter, the terminal will skip "s" number of commands.
Command Description +S Get Buffer Size *Z Calculate Free Bytes
Data Capture and Batch Functions
Source Buffer Destination Buffer
No change No change
Terminal Special Conditions
PNC 330/340 Parameter "a" not available
XL Parameter "a" not available
TRANZ 330/340 Parameter "a" not available
TRANZ 380 Parameter "a" available on version 1.10 or greater
Default Parameter Value Description s 0 Optional; the number of commands to skip when more than number of bytes specified in "n " parameter are available n 0 Required; the number of free bytes required; the terminal will check to see if the number of required bytes is available a 0 Optional; select type of memory to verify space availability: 0 = Program memory 1 = Batch memory