B&B Electronics Zlinx ZP Series User Manual
Page 58
![background image](/manuals/53809/58/background.png)
54
Manual Documentation Number: ZP24D-250RM-SR-2508
B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 – www.bb-elec.com
B&B Electronics – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445 – www.bb-europe.com
PR (Pull-up Resistor Enable)
Command
command is used to set and read
the bit field that is used to
configure internal the pull-up
resistor status for I/O lines.
“1” specifies the pull-up resistor is
enabled. “0” specifies no pull up.
bit 0 - AD4/DIO4 (pin 11)
bit 1 - AD3/DIO3 (pin 17)
bit 2 - AD2/DIO2 (pin 18)
bit 3 - AD1/DIO1 (pin 19)
bit 4 - AD0/DIO0 (pin 20)
bit 5 - AD6/DIO6 (pin 16)
bit 6 - DI8 (pin 9)
bit 7 - DIN/CONFIG (pin 3)
For example: Sending the command “ATPR 6F” will turn bits 0, 1, 2, 3, 5 and 6 ON;
and bits 4 & 7 will be turned OFF. (The binary equivalent of “0x6F” is “01101111”.
Note that ‘bit 0’ is the last digit in the bitfield.
PT (PWM Output Timeout)
Command
The PT command is used to
set/read the output timeout
value for both PWM outputs.
When PWM is set to a non-zero value: Due to I/O line passing, a time is started which
when expired will set the PWM output to zero. The timer is reset when a valid I/O
packet is received.
RE (Restore Defaults) Command
<(Special)> The RE command is
used to restore all configurable parameters to their factory default settings. The RE
command does not write restored values to non-volatile (persistent) memory. Issue
the WR (Write) command subsequent to issuing the RE command to save restored
parameter values to non-volatile memory.
RN (Random Delay Slots)
Command
command is used to set and read
the minimum value of the back-off
exponent in the CSMA-CA algorithm. The CSMA-CA algorithm was engineered for
collision avoidance (random delays are inserted to prevent data loss caused by data
collisions).
If RN = 0, collision avoidance is disabled during the first iteration of the algorithm
(802.15.4 - macMinBE).
AT Command: ATPR
Parameter Range: 0 - 0xFF
Default Parameter Value: 0xFF _ (all pull-up
resistors are enabled)
Minimum Firmware Version Required: v1.x80
AT Command: ATPT
Parameter Range: 0 - 0xFF [x 100 msec]
Default Parameter Value: 0xFF
Minimum Firmware Version Required: 1.xA0
AT Command: ATRE
AT Command: ATRN
Parameter Range: 0 - 3 [exponent]
Default Parameter Value: 0