Hardware Interfaces
FOX3-2G/3G/4G Series Hardware Manual
30
7.1.3.2.
How to use I/O pins (4, 5, 6) as digital Inputs
These pins are high active when used as digital inputs, so you can set
V
IN(LOW)
and
V
IN(HIGH)
to any
levels within the range from +0 to +32.0 VDC. The High and Low levels can be set with PFAL
command (e.g.
PFAL,IO
0[1,2]
.Config=DI,5,10
)
- where 0, 1 and 2 are indices corresponding to IO1 (pin 4), IO2
(pin 5) and IO3 (pin 6) respectively. The values 5 and 10 are min. and max. voltages that will be
used to generate Low and High events respectively.
Detailed information about PFAL commands
can be found in software manual “AVL_PFAL_Configuration_Command_Set.pdf“.
The figure below illustrates how these inputs can be used in practice. When the internal software
detects input changes from
High
to
Low
or vice versa, a
Falling
or
Rising
edge Event is respectively
generated. Therefore, depending on the alarm type, the FOX3-2G/3G/4G can react to the input
changes and release different alarms such as sending out SMS, email messages, TCP packets,
opening a CSD connection or activating output ports. The alarm type is configuration-dependent.
Figure 9:
Connection example when using it as digital input.
A completed circuit example for all inputs is attached in section 9.1.1.
7.1.3.3.
How to use I/O pins (4, 5, 6) as digital outputs
FOX3-2G/3G/4G devices support three IOs which can be used either as input or output. These
outputs are open collectors. They can be connected directly via resistors (R) to LEDs, Relays etc.,
which need no more power than
100 mA @ up to + 32.0 V DC
. The figures below show the
schematic of possible output connections. To activate these outputs use the command
$PFAL,IO4
[5,6]
.Set=high
[low,hpulse,lpulse,cyclic]
for
IO1, IO2
and
IO3
respectively or you can
configure one or more alarms that activate these outputs when specific events occur (e.g.
$
PFAL,Cnf.Set,AL0=IO.e8=redge:IO4.Set=cyclic,1000,2000
).
In order to evaluate this alarm, send firstly this alarm configuration to the FOX3-2G/3G/4G devices
and then trigger IGN-pin to High – as result the IO1 goes High for 1 sec and Low for 2 sec. To set IO1
to Low, just execute the command
PFAL,IO4.Set=Low.
For more details how to activate an output
and how to configure an alarm, refer to the manual “AVL_PFAL_Configuration_Command_Set.pdf“.
Both figures below show the schematic connections of how to use this output.
Please note that, the
power should not be applied directly to an output pin without having e.g. a resistor between them.