Worth Data RF Terminal 7000 Скачать руководство пользователя страница 8

Methods

Methods are commands that you issue to the 

WDterm 

control. All of the "

Inputxxx

" commands cause the terminal 

to wait for operator input.

Note that your development environment may show more available methods for the WDterm control than are listed 
here. This is normal. You may ignore methods you see that are not listed here.

Important

: When your application starts up, the serial port is "closed". You must call 

OpenDevice 

before other 

method calls will work. 

Except for the 

ReInitAll 

method, all methods use the 

ActiveTerminal 

property 

to identify the terminal to use.

OpenDevice 

(All Terminal Versions)

 

Function: 

Opens the communications (serial) port. This must be called 

before any of the methods described below. Make sure to set all 

Properties 

as desired before calling this method (except 

ActiveTerminal 

or 

Quiet

).

CloseDevice 

(All Terminal Versions)

 

Function: 

Closes the communications (serial) port. This must be called 

before changing any of the 

Property 

settings (except 

ActiveTerminal 

or 

Quiet

). When your application starts up, the serial port is "closed". You 

must call 

OpenDevice 

before other method calls will work.

  

DefineFormat 

(15-Line Terminal Only)

 

Parameters: font, linecount

Function: 

This adds a line formatting definition. This command is called 

multiple times to build a display formatting definition for multiple lines 
which is then sent to the 

ActiveTerminal

 by the 

SendFormat

 command.

Font is an integer code:  0="small", 1="medium", 2="large"
Linecount is a number 1-15 indicating the number of lines to apply the font selection to.
If only one line is defined (that is 

DefineFormat

 is called only once with a linecount of "1"), then after 

SendFormat

 is called, only one line will be available for display on the 

ActiveTerminal

.

There are a limited number of lines available depending on the font size(s) chosen. Each font has a defined 
height:

small: 16

medium: 24

large: 32

The total height of the defined lines cannot exceed 240. If it does, an error code is generated (see 

CheckError

and the 

SendFormat

 command is ignored.

There is limited display width available for text. Depending on the font you select for a line:

small: 26 characters

medium: 20 characters

large: 13 characters

Color Codes for 7001 (15-line) 
Terminal

0 - 

aqua

1 - black
2 - 

blue

3 - 

fuchsia

4 - 

gray

5 - 

green

6 - 

lime

7 - 

maroon

8 - 

navy

9 - 

olive

10 - 

purple

11 - 

red

12 - 

silver

13 - 

teal

14 - white
15 - 

yellow

  

Содержание RF Terminal 7000

Страница 1: ......

Страница 2: ...Table of Contents How The System Works Before You Begin Properties Methods Events ...

Страница 3: ... Base Station to handle up to 64 Terminals Dialog is established when a Terminal SIGNS ON to the RF network The host computer application waits until a Terminal SIGNS ON then begins its processing by sending the first prompt out to the Terminal via the Base Station If the Terminal does not receive a prompt from the host it goes into sleep mode waking up and checking with the Base periodically to s...

Страница 4: ...e most frequent failures are at the Terminal level If a Terminal has a hardware failure it will not be able to SIGN OUT It is possible for the Terminal operator to press the ON OFF key or the F1 key by accident forcing the Terminal to SIGN OUT sometimes in the middle of a transaction This happens at battery changing time also You need to plan for partial transactions do you trash the data you do h...

Страница 5: ... method calls make sure to Set the COM port properties device name baud parity bits etc as desired Make sure the port is closed call CloseDevice before making changes to any of the port settings Call the OpenDevice method This activates the COM port used by this instance of the WDterm control Set the ActiveTerminal property to identify the terminal on which you desire to operate You can change the...

Страница 6: ...ly generated The code in the Event Handler is called fired by the drop in component when a specific event occurs An example of an event is when a terminal returns data and the OnTermData event is fired The details of how to access Properties Methods Events varies between development platforms Details of how it works in some of the most popular platforms is illustrated in the samples included with ...

Страница 7: ...etting WDterm may allow other settings but those listed here are the only ones compatible with current version base stations ComDataBits Valid values 7 8 Definition This is a serial port setting and must match the base station setting WDterm may allow other settings but those listed here are the only ones compatible with current version base stations ComStopBits Valid values 1 2 Definition This is...

Страница 8: ...enDevice before other method calls will work DefineFormat 15 Line Terminal Only Parameters font linecount Function This adds a line formatting definition This command is called multiple times to build a display formatting definition for multiple lines which is then sent to the ActiveTerminal by the SendFormat command Font is an integer code 0 small 1 medium 2 large Linecount is a number 1 15 indic...

Страница 9: ...rompt shifted timestamped FG BG Function This instructs the ActiveTerminal to display the prompt at line and position and wait for data to be entered from the terminal keypad only If shifted is set to true the terminal will start in shifted mode Timestamped appends a hhmmss prefix to the returned data FG and BG are ForeGround and BackGround colors for the 7001 15 line terminal See Color Codes Inpu...

Страница 10: ...and position and wait for data to be received through the terminal serial port Waiting for serial input can be bypassed by pressing the enter key on the terminal which will send an empty data string to the host fires the OnTermData event handler FG and BG are ForeGround and BackGround colors for the 7001 15 line terminal See Color Codes OutputSerial All Terminal Versions Parameters data Function T...

Страница 11: ...ts the ActiveTerminal to display date and time on the specified line number Must be followed by an Input method call to take effect Beep All Terminal Versions Parameters count Function This instructs the ActiveTerminal to beep count times Count may be a value from 1 to 9 Must be followed by an Input method call to take effect PlayVoice All Terminal Versions Parameters msgnum Function This instruct...

Страница 12: ...ns Parameters TermNumber Function Returns the actual terminal ID letter code for a given terminal number Use the returned character to match with the Terminal ID programmed into a RF Terminal GetErrCode All Terminal Versions Function Returns code for the most recent error Calling this method resets the Error Code to 0 Error Codes 0 No Error 1 Command Data Too Long 2 Error on Close Device 3 Serial ...

Страница 13: ...before any events can be fired NOTE If you are experiencing problems with exception errors make sure you are not calling any WDterm methods from inside WDterm event handlers Instead use the event handlers to set program variables that are monitored elsewhere perhaps in a timer event handler Call WDterm methods from the monitoring function OnTermBaseRegister Event An attached base station has succe...

Страница 14: ...you have already entered some data on the terminal and press an arrow key this event will not fire See the programming section in the RF Terminal manual for details OnTermLeftArrow Data passed terminal Event The left arrow button has been pressed on a terminal You must issue another Input method call before WDterm can respond to another keypress on the terminal If you have already entered some dat...

Страница 15: ...inal Event The SEARCH button has been pressed on a terminal You must issue another Input method call before WDterm can respond to another keypress on the terminal If you have already entered some data on the terminal and press the Search key this event will not fire See the programming section in the RF Terminal manual for details ...

Отзывы: