![Digi S6B Скачать руководство пользователя страница 91](http://html.mh-extra.com/html/digi/s6b/s6b_user-manual_2496668091.webp)
Configure the XBee Wi-Fi RF Module using Digi Remote Manager
Output control
XBee Wi-Fi RF Module User Guide
91
Output control
You can find
Executable Commands
in
Device Management
. Select an XBee Wi-Fi RF Module and click
System Information
. The executable commands are the
IO
(Set Output Pins) and
OM
(Output Mask)
commands.
1. Log in to Remote Manager.
2. Click the
Device Management
tab.
3. Click the
XBee Networks
tab.
4. Double click the device you want to configure.
5. Click
System Information
. A list of AT command types displays.
6. Click
Executable commands
.
7. In the
(IO) Set output pins
field, configure the pins that you want to set the output to the
desired level. None of the pins are configured for output by default. The parameter given to the
IO command is a bit map that specifies which IO lines are set to which levels; see
for details on the bits.
8. In the
(OM) Set mask for IO command
field set the bits you want to control.
The
OM
command is an output mask that enables (1) or disables (0) the corresponding bit in
the
IO
command. To control the output level of a pin with an
IO
command, you set the
corresponding bit in the
OM
command and you configure the corresponding pin (for example
DIO2 for bit 2) as an output low (4) or output high (5).
9. Send the
IO
command to set the output to the desired level. (0 sets it low and 1 sets it high.)
Each pin also has an associated timer to be used in conjunction with the
IO
command. The timer
determines how long the
IO
command remains effective for each IO pin that is set to a level different
than its configured value. If the timer is set to a default value of 0, then the
IO
command remains in
effect until it is overridden by another
IO
command or you reset the module. Otherwise, the timer
specifies the number of tenth second (100 ms) units that the device stays at the selected level before
reverting to its configured level. The maximum value allowed is 6000 (0x1770), which allows for ten
minutes.
The AT commands for these timers are
T0
through
T9
for pins DIO0 through DIO9 and
Q0
through
Q9
for pins DIO10 through DIO19. To modify these commands, click
Configuration
>
Input and Output
Settings
and use the choice menu to modify the time.
IO command bits
The
IO
command sets the level of output pins to high or low. The parameter you give to the
IO
command is a bit map that specifies which I/O pins are set to which levels. The following table shows
the bits and the corresponding pin.
No pins are configured for output by default.
Bit
I/O pin
0
DIO0
1
DIO1