44
Raveon Technologies Corp.
TRIGBITS x
This command enables or disables individual bits for use as
input triggers. If a bit is designated a Trigger Bit, then its state is
latched until it is transmitted.
TRIGPOL x
Sets the polarity of the input trigger bit. 0=active high,
1=inverted, active low. Setting TRIGPOL 0 will mean all trigger
bits are active high, and their state will be latched as a high (1) if
the bit ever goes high.
TRIGEX x
Sets which bits are used to report on exception. Exception
reporting is when a position/status report is generated when an
input changes either low-to-high or high-to-low. A Trigger Bit
that is set to trigger by exception with the TRIGEX command will
report 0 if it does not change, or 1 if it changed since the last
time the M6 reported position.
The xx parameter is the hex binary representation of the bits. Refer to the
following table to see the value for
x
.
IN 2
(TXD)
IN 1
(RTS)
IN 0
(DTR)
Hexadecimal
Representation
0
0
0
0
0
0
1
1
0
1
0
2
0
1
1
3
1
0
0
4
1
0
1
5
1
1
0
6
1
1
1
7
For example, to enable bits 0 and 2 (DTR and TxD pins) to be used as digital
input, issue the following commend:
TRIGBITS 5
If the bits are to be normally active high, then the polarity must be set to 0
(
TRIGPOL 0
command). To set bit 0 so that it is inverted (active low), use the
following command:
TRIGPOL 1
This will cause the unit to transmit when bit 0 (DTR pin) is low.
To enable exception reporting, that is transmit when a pin changes from low-to-
high or high-to-low, use the
TRIGEX
command. When
TRIGEX is 0
, all inputs
are active either high or low. When a bit is set to 1 in
TRIGEX
, then that bit will
cause the unit to transmit position/status anytime it changes state. The M6 will
report the bit as a 1 if it changes state, or 0 if it did not change state.
For example, to configure the unit to transmit position when bit 0 changes state,
issue these commands: