Use the I/O

This page has been updated on the 27 April 2011.

I/O specifications

Input Color Voltage range Type Activation threshold
1 Green 0-32V GND 0 to 2V
Output Color Voltage range
1 Purple 0-32V
2 Blue 0-32V

Note: The bias voltage is about 3.3V.

Connect a buzzer or a led

Wiring

A buzzer or a led can be managed via one of the 2 available digital outputs.

Output Wire color DB variable
1 purple MDI_DIO_OUT_TOR or MDI_DIO_OUT1
2 Blue MDI_DIO_OUT_TOR or MDI_DIO_OUT2
  • Connect the buzzer/led negative wire to one of the digital outputs.
  • Connect the buzzer/led positive wire to the permanent positive (+VBAT).

Configuration

To record the outputs state you need to enable the parameters dataRecorder.fieldPeriod[68].

  1. Type #SWITCH# to open the basics console.
  2. Type s dataRecorer fieldPeriod 68 0 to activate the field and record changes on event.
  3. Type reboot to reset the device.

Note: A user module (SDK) is required to dynamically control the outputs. However, as a test you can enable or disable the outputs from the commands console.

Connect an alarm button

Wiring

An alarm button must be managed via the digital input 2.

Input Wire color Type DB variable
Alarm Orange Ground MDI_DIO_ALARM
  • Connect the first plug of the ON/OFF button to alarm input (orange wire).
  • Connect the second plug of the ON/OFF button to the ground.

Note: The wiring can be inverted functions of the button type and the expected behavior.

Configuration

To record the alarm state you need to enable the parameters dataRecorder.fieldPeriod[26].

  1. Type #SWITCH# to open the basics console.
  2. Type s dataRecorer fieldPeriod 26 0 to activate the field and record changes on event.
  3. Type reboot to reset the device.

To record the input 1 state you need to enable the parameters dataRecorder.fieldPeriod[38].

  1. Type #SWITCH# to open the basics console.
  2. Type s dataRecorer fieldPeriod 38 0 to activate the field and record changes on event.
  3. Type reboot to reset the device.

Get the I/O state

From the console

  1. Type #SWITCH# to open the basics console.
  2. Type iostate.

From the Cloud Connect

Read this page if you never used the Cloud Connect.

1. Log on the Cloud Connect.
2. On the top frame select Site index > Tracking and History.
3. Select Toggle.
4. In RET add id, unitid, time, fieldid and data.
5. In Fieldids add 38 to get the fieldPeriod[38] values.
6. In Unitids add the id of your unit(s).
7. Browse the page then select Filter.

Here is a sample.

On the picture we can see the all data are empty, the reason is that the values are stored in hexadecimal. To access to the data you need to use the API output format xml, json or ext_json. The following sample is in ext_json.

In this example we have three records. The values stored in the line “value” are in hexadecimal and must be converted in decimal.

Hexadecimal Decimal Comment
%01 1 The input is active
%00 0 The input is inactive
%01 1 The input is active