If you are looking for information on the **Extension xS51**, please see [[.:04-extensions:description-of-io:04-description-of-ai|Analog inputs - type 1]]
Analog inputs **type 2** are available in the **Extension xS52, xS53 and xS54**. To measure voltage or current, the negative pole of the external device being measured is connected to the **AGND** terminal of the connector and its positive pole (signal) to the **AIx** (or **AIy.x**) terminal. When measuring resistance, polarity does not matter and one connector is always reserved for one sensor.
{{ :files:img_warning-line_b.png?nolink |}}
{{:en:hw:08_safety-instructions_pseudo-ISO-7010-info.png?nolink |(i)}}
**Please note:** \\
For devices that support voltage measurement, this mode is factory set as default to avoid possible damage.
{{ :files:img_warning-line_b.png?nolink |}}
{{:en:hw:09_safety-instructions_pseudo-ISO-7010-attention.png?nolink |(!)}}
**Attention:** \\
Before connecting the measured device, it is necessary to check the measurement settings first by the prefered software and according to the type of connected device - see measurement description below.
====== Connection ======
The following images illustrate the connection and measurement of the voltage and current source to the **AI** and **AGND** terminals.
;#;
//Voltage measurement//
;#;
{{ :en:hw:024_connection_of_io.png?direct&200 |}}
;#;
//Current measurement//
;#;
{{ :en:hw:025_connection_of_io.png?direct&200 |}}
Connection of resistive sensors to analog inputs is realized by two-wire method. The terminal names are different for some Extension model, but the wiring is identical.
;#;
//Extension xS54//
;#;
{{ :en:hw:026_connection_of_io.png?direct&200 |}}
;#;
//Extension xS52//
;#;
{{ :en:hw:027_connection_of_io.png?direct&200 |}}
====== Mode description ======
Analog inputs on the **Extension xS52, xS53 and xS54** support current, voltage and resistance measurements. The selected measurement mode must first be set in the control software. For voltage and resistance measurement modes, two precision modes are available. The read value is of data type **float32** (real) and corresponds to the measured value at the input (V DC, mA, Ω).
This analog input supports the following modes:
* Voltage 0–10 V DC
* Voltage 0–2 V DC
* Current 4–20 mA
* Resistance 75–2000 Ω
* Resistance 1–20 kΩ
----
 
|< 100% 16% 28% 28% 28% >|
^ Extension ^ Voltage ^ Current ^ Resistance ^
| xS52 | | | ☑ |
| xS53 | ☑ | ☑ | |
| xS54 | ☑ | ☑ | ☑ |