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 13 of 15

FMT1000 Series Programmer's Guide: Chapter 2 I/O System Programming, pages 121 to 130

Pages 121 to 130 of 142, from FMT1000 Series Programmer's Guide

The original document is the PDF (965 KB). 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 Symbol FMT-1020

Page 121

I/O System Programming

SnD, SnU – Set User Defined Key Up and Down Scan Codes RnD, RnU – Return User Defined Key Up and Down Scan Codes Note: n = 1, 2, 3, or 4

Format SnD <string> SnU <string> RnD RnU

Summary Sets the scan codes sent in response to pressing and releasing the user-defined keys or UDKs. This setting is preserved in EEPROM.

Returns Description These functions allow the user to define keys to do any special key sequence that cannot be generated by the keyboard. Due to space limitations, it is not possible to implement the full 83-key keyboard on FMT1000 Series computers; missing sequences that are required for an application can be generated using UDKs. Note: Because keyboard scan codes are used, virtually any keyboard action can be duplicated. Each UDK can hold 8 up and 8 down scan codes. Scan codes are input as 2 hex digits, preceded by a backslash (\).

2-101

Page 122

FMT1000 Series Programmer’s Guide

Example (SnD and SnU): To implement <control><break> on UDK1, the following commands would be used: S1D\1D\EO\46\EO\C6 Set User Defined Key 1 Down (UDK1 DOWN)

S1U\9D Set User Defined Key 1 Up (UDK1 UP)

Implementing hardware reset is a special case. To define a UDK to be hardware reset use: S1D\FF\FF\FF\FF Set User Defined Key 1 Down (UDK1 DOWN)

2-102

Page 123

I/O System Programming

RVR – Return Firmware Version Format RVR

Summary Returns the current firmware revision level of the I/O coprocessor

Returns A string of the format I/O Coprocessor v XX.YY. Description Returns information pertaining to the revision levels of the firmware in the I/O coprocessor board. XX denotes the major version number, and YY designates the revision level within the version.

Example At the DOS prompt, type: C:\>echo rvr > COM2

The following will be returned: C:\>I/O Coprocessor v 01.01

2-103

Page 124

FMT1000 Series Programmer’s Guide

SFD – Reset to Factory Defaults Format SFD

Summary Resets I/O configuration parameters to their factory defaults.

Returns Single beep if successful.

Description This command resets most configuration parameters to factory defaults. If a parameter does not have a factory default, it is not reset. These parameters are noted in this manual. This command does not reset the keyboard type, as set by the SKT command, or the viewing angle.

Example rem echo

2-104

Reset to factory defaults. SFD > COM2

Page 125

I/O System Programming

SEE – Write Setup to EEPROM Format SEE

Summary Writes the I/O configuration data to the EEPROM.

Returns Single beep if successful.

Description Once changes have been made and verified in the I/O processor configuration, they can be written to the EEPROM so that the FMT1000 Series computer will remember them every time it is powered up.

Example rem echo

Write configuration data to EEPROM. SEE > COM2

2-105

Page 126

FMT1000 Series Programmer’s Guide

RER – Return Error Code Format RER

Summary Returns an error code relating to the last command.

Returns Error code, integer 0-5 0=no error 1=command error 2=parameter error 3=timeout error 4=request was canceled 5=busy

Description This command returns an error code relating to the last command executed. It allows sync with I/O processing. RER may be performed after each command.

2-106

Page 127

I/O System Programming

Return Code

Error/Status

Description

1

(command error) indicates that the last command mnemonic was incorrect or inappropriately sequenced.

2

(parameter error) indicates that the parameter following the command was incorrect or inappropriate. This error can also occur if a required parameter is missing from a command.

3

(timeout error)

occurs if the timeout value is exceeded; see the SOO set output timeout or SIO set input commands.

4

(request canceled)

indicates that the SOC output cancel or SIC input cancel command was properly received and executed by the I/O processor.

5

(busy)

used when the auxiliary I/O device has not completed a transfer but has also not timed out.

2-107

Page 128

FMT1000 Series Programmer’s Guide

SBP – Set Beeper Tones Format SBP <0-5>

0=high pitch 1=high, low pitches 2=high, high pitches 3=high, low, high pitches 4=high, high, high pitches 5=tick sound

Summary Allows different beep tones to be generated by the internal beeper.

Returns N/A

Description This command allows the user to easily generate a variety of beep patterns for application specific use. One beep pattern sounds each time the command is executed.

Example rem echo

2-108

Cause beep: high, low, high pitches. SBP3 > COM2

Page 129

I/O System Programming

SSS, RSS – Set and Return Startup String Format SSS <string>

Max length: 16

Summary Sets a string that may be recalled upon demand to execute a terminal specific command on startup. This setting is preserved in EEPROM.

Returns Startup message, string no more than 16 characters.

Description This string is provided to allow a simple method for each FMT1000 Series computer to take a custom action on booting. In general the technique is as follows: 1. For each different power on action, write a batch file or other program to invoke it, and store it in the logon directory on the network. 2. On power up, include commands that a. make the internal response path the keyboard b. recall the startup string. 3. Store the name of the batch file (or other program) as the startup string (remember to include a carriage return or set autoenter mode appropriately). On boot, the startup string is recalled and executed as though typed, and the user-written program or batch file executes. The factory default is null (no message).

Example rem echo

Set startup string to 'INIT'. SSSINIT > COM2

2-109

Page 130

FMT1000 Series Programmer’s Guide

RES – Echo String Via Current Internal Response Path Format RES <string> Max length: 80

Summary Echoes the string to current internal response path.

Returns <string>

Description Used for diagnostic purposes, to check out coprocessor communications.

Example echo rem rem

2-110

RES This is a test. > COM2 'This is a test.' will be sent to the CPU via the internal path.