Controlling Inputs/Outputs using piControl

Cycle Time

Unlike the RevPi Core and Connect, the RevPi Compact has a fix cycle time.

The digital inputs and outputs as well as the analog outputs and the LEDs are synchronized in the process image every 250 µs.

The analog inputs as well as the processor frequency and temperature are synchronized in the process image once per second.

Input Values in the Process Image

  • Core_Temperature: temperature of the ARM processor. A
  • Core_Frequency: frequency of the ARM processor. Ü
  • DIn: eight digital inputs (1 bit per input). D
  • AIn_1…AIn_8: eight analog inputs (16 bits per input, in mV for voltage measurement or in 1/10 °C for temperature measurement). If nothing is connected, the value is 0 mV for voltage measurement or 850 °C for temperature measurement. The latter is because the measured resistance is infinite and is therefore assigned to the highest possible temperature according to EN 60751. A
  • DIn_Status: if this byte has a value not equal to zero, the value in DIn is invalid. Bit 7 indicates CRC error, bit 4 overheating (135 °C). As soon as the digital inputs are read without errors, DIn_Status goes back to zero. D
  • DOut_Status: if this byte has a value not equal to zero, the digital outputs were cutout due to emergency. Bit 5 indicates overheating (150 °C). As soon as the error state is over, DOut_Status goes back to zero. D
  • AIn_Status: if this byte has a value not equal to zero, the value in AIN_1 … AIN_8 is invalid. Bit 7 indicates transmission errors. As soon as the error state is over, AIn_Status goes back to zero. A
  • AOut_Status: if this byte has a value not equal to zero, the analog outputs could not be updated. Bit 7 indicates transmission errors. As soon as the error state is over, AOut_Status goes back to zero. A

Output Values in the Process Image

  • RevPiLED: LEDs on the front of the device:
    • Bit 0 = A1 green
    • Bit 1 = A1 red
    • Bit 2 = A2 green
    • Bit 3 = A2 red
  • DOut: Eight digital outputs (1 bit per output).
  • AOut_1…AOut_2: two analog outputs (16 bits per output, in mV).

Configuration

In PiCtory you can select the following settings of your RevPi Compact:

  • Debouncing of the digital inputs (adjustable jointly for all inputs only):
    • switched off
    • 25 µs
    • 750 µs
    • 3 ms
  • Mode of the analog inputs (adjustable individually for each input):
    • switched off
    • voltage measurement 0 – 10 V
    • RTD measurement according to PT100
    • RTD measurement according to PT1000