MANUAL IM635
Command Operation
Page 33
enables the console, and
mode
=3 disables the console. Modes 0 and 1 (OFF and ON) update the
nvm setting, while modes 2 and 3 (ENABLE and DISABLE) do not.
Return Value: none
Example(s):
USB CONSOLE ON
// turns on the USB console and updates nvm setting
USB CONSOLE ENABLE
// turns on USB console for this session only
USB CONSOLE 0
// turns off the USB console and updates nvm setting
USB CONSOLE DISABLE
// turns off USB console for this session only
DELAY
Function:
Delays execution (Pause)
Syntax:
DELAY
msecs
Argument(s):
msecs
word, 0-65535 in msecs
Remarks:
This command pauses execution for the specified time in msecs.
Return Value: none
Example(s):
ATTN 1 0; DELAY 100; ATTN 1 10 // waits 100 msecs between attn commands
REBOOT
Function:
system reset
Syntax:
REBOOT
Argument(s): none
Remarks:
This command performs a system reboot, similar to a poweron reset.
Return Value: none
Example(s):
REBOOT
RUN
Function:
run an auxiliary program function
Syntax:
RUN
cmd
Argument(s):
cmd
command function
LOADER
Remarks:
This command runs an external function, such as the Flash Bootloader for downloading program
updates
Return Value: none
Example(s):
RUN LOADER
// invokes the flash bootloader for update
LCD
Function:
Adjust LCD display (if installed)
Syntax:
LCD CONTRAST n
LCD BKLIGHT n
Argument(s):
n
byte, 0-255
Remarks:
This function can be used to adjust the viewing parameters of the LCD display. Default values are
CONTRAST 128 and BKLIGHT 255.
Return Value: none
Example(s):
LCD CONTRAST 128
LCD BKLIGHT 0
// turns off backlight
TEMP?
Function:
reads internal temperature sensor
Syntax:
TEMP? [
sensor
]
Argument(s):
sensor
byte
optional sensor number, 0-2. default=0 (internal)
Remarks:
This function returns the current temperature, in degrees C. Resolution is 0.5 degrees
Return Value: degC
Example(s):