![Digi XGI-20CZ7-E00-W0 Скачать руководство пользователя страница 76](http://html1.mh-extra.com/html/digi/xgi-20cz7-e00-w0/xgi-20cz7-e00-w0_user-manual_2496341076.webp)
Program XBee Industrial Gateway using
Python
XBee Industrial Gateway Python application and Remote
Manager
Digi XBee Industrial Gateway
76
The
set_digital_output
command must follow this syntax:
<set_digital_output addr=”address” index=”index”>value</set_digital_output>
Command attributes
n
addr
l
Usage
: Required.
l
Description
: This attribute indicates the destination address of the node to which the
content indicated by the command body should be transmitted. This address is expressed
as the 64-bit IEEE address of the node.
l
Value
: The 64-bit IEEE address of the node following one of these patterns:
XX:XX:XX:XX:XX:XX:XX:XX
[XX:XX:XX:XX:XX:XX:XX:XX]!
XXXXXXXXXXXXXXXX
XX-XX-XX-XX-XX-XX-XX-XX
n
index
l
Usage
: Required if the name attribute is not specified.
l
Description
: This is the pin index for which settings are being changed.
l
Value
: The value for this attribute must represent a valid integer between 0 and 12.
Indices
0-9
map to DIO values. That is, they set the
Dx
AT parameter, where
x
is the index.
For example, index 8 is equivalent to setting D8; index 12 is equivalent to setting P2.
Indices
10-12
map to PWM values. That is, they set the
Px
AT parameter, where
x
is index-
10.
n
name
l
Usage
: Required if index attribute is not specified.
l
Description
: The name of the pin for which settings are being changed.
l
Value
: Specify either the AT parameter corresponding to that pin (from D0 to D9) or the
functional name of the pin (from DIO0 to DIO12) as the value for this attribute.
Note
Currently,
set_digital_output
supports setting pins on remote ZigBee nodes only. This means
that pin index 9 is invalid, because DIO9 is not user-configurable on such nodes. Future updates to this
command may open up the possibility to change this behavior; for example, for 802.15.4 nodes.
Command body (value)
The body of the
set_digital_output
command indicates whether to set the digital output pin low or
high. Legal values for the body to configure the pin are:
n
high
or
true
: Sets the pin high (ON). Other legal values include:
1, yes, y, on
Содержание XGI-20CZ7-E00-W0
Страница 1: ...Digi XBee Industrial Gateway User Guide...