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

Forgetting to program for these error conditions is a common mistake. Even though you think your code 
will never make a mistake, take advantage of the feedback that the Base Station provides.

Parse the Returned Strings thoroughly

. Don't assume anything about the next response from the Base 

to your program and look only for the partial string such as the ID only; parse the returned string 
completely and be sure you are examining every possibility. Failure to do so is a common mistake.

Plan for expansion

. You may start small (1 Base/1 Terminal) but try to create an application that will 

allow for easy expansion and addition - especially of Terminals.

Site Evaluation

. Site Testing does not require that you have an application up and running and can save 

you time when you do sit down to create your program if you already know what you will be dealing 
with in terms of Base Stations and Relays.

Use the Demo Programs

. The demo programs can at least allow you to see how the system functions 

and whether you can anticipate any system-wide problems. The demo programs should also be used as a 
response-time benchmark.

Planning For Failures

Hardware Failures

Let's assume that each part of the system has failed. How are you going to know what has happened and how are 
you going to recover?

The 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 have 
and start over, or pick up where you left off?

Keep in mind that if a Terminal has 

SIGN

ed 

OUT 

in mid-transaction, the Base Station clears any pending 

message for that Terminal before it will allow it to 

SIGN ON 

again. Make allowances to re-send 

messages or prompts that were cleared upon 

SIGN ON 

if necessary.

Relay Station failures are often cable-related. If a Terminal puts out a "Who Can Hear Me?" message 
and a Relay that is for some reason not connected to the Base Station (bad cable, cut cable, broken 
connectors) hears it, it answers with the message:

Relay n Cannot Be
Heard by the Base

Notify Supervisor
Press Any Key

At this point, it is up to the operator to notify someone that the Relay is not communicating with the Base and to 
check the cabling first. There is no message sent to the host, so it is very important that the operator that receives 
this message notify someone immediately.

Operator Errors

Plan on your operator walking out of range and going to lunch in the middle of a transaction. What do 
you do with the data you do have, and where are you going to start up again?

Содержание 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 ...

Отзывы: