
61
Class Reference
4.3.1.4
processCommand
The processCommand method instructs the handheld to execute a command.
Format:
result = reader.processCommand(commandType, data);
Where:
commandType
– string, 1 character; the command to be processed on the handheld.
data
– string; data as required to process the command.
result
– depending on the command, either:
a Boolean value
a data string
For
commandType,
data,
and resulting values, refer to the Interface Configuration
Document.
Example:
reader.processCommand('$', "\x03"); // read a code
reader.processCommand(‘P’, “(26)32”); //change beep volume to 50
Sends a “$” command code (post event) with a one-byte value of 3 (event type = read near
and far fields) to the handheld firmware.
4.3.1.5
readSetting
The
readSetting
method returns the current value of the specified configuration setting.
Format:
value = reader.readSetting(settingNumber);
Where:
settingNumber
– number; integer value representing the setting to be read.
For
settingNumber
values, refer to the Interface Configuration Document.
Example:
value = reader.readSetting(0x1b);
Returns the current value of the handheld setting hex 1b (communications mode).
4.3.1.6
runScript
The
runScript
method instructs the handheld to schedule the load, compile, and
execution of the specified JavaScript. The handheld schedules execution of the script
immediately after the currently executing event handler or main script completes. The
runScript
method does not include a mechanism to return to the calling script.
Содержание OHV300
Страница 1: ...FACTORY AUTOMATION MANUAL JAVASCRIPT PROGRAMMING GUIDE...
Страница 88: ...88 Supported JavaScript Core delete function in instanceof new this typeof void...
Страница 93: ...93 Symbology ID Modifier Information...
Страница 94: ...TDOCT 4981_ENG 11 2015...