API Command Reference Appendix A
A-14 NetScan Users Manual
*R - Power-On Reset
TYPE
System
EXECUTION
Immediate
SYNTAX
*R
Power-On Reset. Equivalent to a hardware reset.
DESCRIPTION
The Power-On Reset (*R) command has the same effect on the unit as removing and re-applying power. Al l
data in data buffers and configuration are erased.
Note: Because the *R command performs a full power-on reset, 3 or 4 seconds are required before you c an
communicate with the unit. A total of at least 5 seconds is requi red bef ore normal operations can take
place.
Note: Issuing the Power-Up Default Settings (*S1) command and then power-cycling the unit, or i s suing the *R
command will cause any previously defined configuration to be irrevocably lost. The calibration factors for
the unit and its slaves, however, will remain intact.
EXAMPLE
PRINT#1,"*RX"
Restore power-on settings to the unit
SLEEP 4
Wait 4 seconds to restore communication
WHILE (S% and 4) = 0
PRINT #1, U1X"
INPUT#2,A$
S%=VAL(A$)
Keep checking the serial poll response of the unit until it is ready,
meaning that bit 4 is asserted
WEND
*S - Power-Up Settings
TYPE
System
EXECUTION
Immediate
SYNTAX
*Smode
Specify power-up configuration mode. Valid options for mode are: 0 - Power
up under last known configuration (default). 1 - Power up under factory
default configuration.
DESCRIPTION
With the Power-Up Settings (*S) command, specifying the m ode t o be 0 will cause the unit to load its last known
configuration when it is powered on or when the Power-On Reset (*R) command is issued. The last known
configuration will be exactly the same as the configuration it had when it was last powered down or a *R
command issued. Specifying this mode will insure that the unit will always come up with the configuration which
has most recently been defined. Using this mode is convenient if it i s undesirable to reconfigure the unit every
time it is powered up or a *R command is issued.
Specifying the mode to be 1 will cause the unit to load the factory default configuration when it is powered on or
when a *R command is issued. Using this mode is the same as power-cycli ng t he unit then issuing the *F
command. The factory defaults settings are defined in the Configuring Pow er-Up State section of Appendix D.
Note: Issuing the Power-Up Default Settings (*S1) command and then power-cycling the unit, or i s suing the *R
command will cause any previously defined configuration to be irrevocably lost. The calibration factors for
the unit and its slaves, however, will remain intact.
EXAMPLE
PRINT#1,"Q?T?Y?X"
Retrieve some current configuration settings
LINE INPUT#1,A$
Get the settings
PRINT A$
Screen shows Q1,7,7,7,0 T1,3,0,0 Y000100,
001000,000000
PRINT#1,"*S1X"
Configure to power up with factory defaults
PRINT#1, *RX
Reset the unit
SLEEP 5
Wait for the unit to reset
PRINT#1,"Q?T?Y?X"
Retrieve some current configuration settings
LINE INPUT#1,A$
Get the settings
PRINT A$
Screen shows Q1,0,0,0,0 T0,0,0,0 Y000000,
000000,000000