Cloud-electronics DCM1 Manual de usuario Pagina 68

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 79
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 67
DCM1 & DCM1e Installation and User Guide v1.068
The Congure Access Connector menu function permits
a slightly restricted set of I/O congurations of the eight pins:
inputs and outputs must be in consecutive “blocks”, e.g., pins
1 to 4 may be inputs with pins 5 to 8 as outputs. However,
using serial commands allows any combination of inputs and
outputs (up to a total of eight) to be set up. Examples are
given below.
Inputs:
In Input mode, the logic level present at a pin will be evaluated
as “high” (>2.55 V) or “low” (<0.75 V), and logic “active” =
“low”. The most common use of the GPIO port in Input
mode is to connect a pin to an external SPST push-button or
other type of N/O switch, with 0 V being applied to the other
contact. In Input mode, the pins are pulled-up internally to
+12 V, so an external switch closure will register as a low level
on interrogation, and this is interpreted as “active”.
Outputs:
In Output mode, the pins may be assigned to be “high”
(nominally +12 V) or low (nominally 0 V). External equipment
requiring a logic input may be connected to output pins,
provided the inputs are rated at not more than 24 V and do
not draw more than 60 mA.
Using Serial commands with the GPIO port:
RS-232 serial commands via either the RS232 INTERFACE
(DCM1 or DCM1e) or ETHERNET INTERFACE
(DCM1e only) may be used to set the conguration of the
PAGING ACCESS connector.
GENERAL FORMAT
FUNCTION COMMAND (ASCII)
Congure Connector for paging
<PM,x/>
Congure Connector as GPIO port
<SY.AC,Dxm/>
Set GPO(s) active
<SY.AC,BSy/>
Clear all GPOs
<SY.AC,BPy/>
The results of these commands broadly correspond to the
options provided by the Congure Access Connector
menu function: the connector can be set for use with a paging
system, either as an input (Paging Zone Select) or output
(zone tallies), or as a GPIO port.
1. Congure for use with Paging mics
The value of x in the general format command <PM,x/> is
either ASCII “I” or “O”, conguring the connector for paging
zone selection or as a set of eight zone tallies respectively.
2. Congure as GPIO port
The value of x in the general format command
<SY.AC,Dxm/> is again either ASCII “I” or “O”, with m
dening a number of pins on the connector to be GPI(s) or
GPO(s) respectively (where 1 m 8). In this mode, note
that pins set as inputs will always form a consecutive block
numbered ‘up’ from pin 1; likewise pins set as outputs will
always form a consecutive block numbered ‘down’ from pin
8. Thus in the third example below, pins 1 to 3 will be set
as GPIs, while pins 4 to 8 will remain as GPOs. A command
setting a pin to the same I/O state as its current state will
have no effect.
3. Set GPOs active
Once pins have been dened as outputs in GPIO mode, each
may be set “active” or reset “inactive” at will, using the general
format command <SY.AC,BSy/>. Here, y is an 8-bit string
consisting of either ASCII “X”s or “O”s. An “X” will set an
output “active”, and its in-string position refers to the the pin
number, as shown in fourth example below.
EXAMPLE COMMAND
Congure
Access
Connector for
paging zone
selection
ASCII
<PM,O/>
HEX 3C 50 4D 2C 4F 2F 3E
Congure
Access
Connector as
zone tallies
ASCII
<PM,I/>
HEX 3C 50 4D 2C 49 2F 3E
Congure
Access
Connector
as GPIO port
with 3 inputs
ASCII
<SY.AC,DI3/>
HEX 3C 53 59 2E 41 43 2C 44 49 33 2F 3E
Congure
Access
Connector
as GPIO port
with 3 outputs
ASCII
<SY.AC,DO3/>
HEX 3C 53 59 2E 41 43 2C 44 4F 33 2F 3E
Set GPO 3
(pin 3) as
active
ASCII
<SY.AC,BSOOXOOOOO/>
HEX
3C 53 59 2E 41 43 2C 41 53 51 51 58
51 51 51 51 51 2F 3E
Clear all
outputs
ASCII
<SY.AC,BPXXXXXXXX/>
HEX
3C 53 59 2E 41 43 2C 41 50 58 58 58
58 58 58 58 58 2F 3E
Vista de pagina 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 78 79

Comentarios a estos manuales

Sin comentarios