API Command Reference
Appendix A
A-14
NetScan User’s 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. All
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 can
communicate with the unit. A total of at least 5 seconds is required before normal operations can take
place.
Note: Issuing the Power-Up Default Settings (
*S1
) command and then power-cycling the unit, or issuing 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 mode to 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 is 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-cycling the unit then issuing the
*F
command. The factory defaults settings are defined in the
Configuring Power-Up State section of Appendix D.
Note: Issuing the Power-Up Default Settings (
*S1
) command and then power-cycling the unit, or issuing 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
Summary of Contents for OMB-NETSCAN
Page 6: ...iv NetScan User s Manual...
Page 18: ...1 12 Configuring and Starting NetScan NetScan User s Manual Notes...
Page 38: ...3 8 General Information and Specifications NetScan User s Manual Notes...
Page 82: ...4 44 ChartView Software Reference NetScan User s Manual Notes...
Page 118: ...6 20 Calibration NetScan User s Manual...
Page 140: ...A ii NetScan User s Manual...
Page 192: ...API Command Reference Appendix A A 52 NetScan User s Manual Notes...
Page 237: ...Appendix D Registers Data Formats Queries NetScan User s Manual D 13...
Page 244: ...NetScan Program Examples Appendix E E 2 NetScan User s Manual...
Page 248: ...ASCII Code Summary Appendix F F 4 NetScan User s Manual Notes...
Page 250: ...NetScan Error Messages Appendix G G 2 NetScan User s Manual Notes...
Page 252: ...Abbreviations Appendix H H 2 NetScan User s Manual Notes...
Page 254: ...NetScan User s Manual...