P1-04DAL-2

Voltage Output

This module can output four different signals with variable voltage.

This example sends the current to be output by the channel as an integer value in counts.

This example sends the current to be output by the channel 1 as an integer value in counts and channel 2 in V using reals.

int outputCounts = 0;    //variable outputCounts is the output value
				P1.writeAnalog(outputCounts, 1, 2); // Writes to slot 1 channel 2 of the P1-04DAL-1 
base[1][1].value = 2048   #set slot 1 channel 1 to output ~5V using counts
                    base[1][2].real = 3.3   #set slot 1 channel 2 to output ~3.3V using reals

Compatible Functions

Properties and Methods


import P1AM
                    base = P1AM.Base()
                    module = base[1] # Slot 1
                    ch = module[2] # Channel 2
                

Module Configuration and Status Tables

We recommend using the status functions. This table is provided as additional reference.

Module Status Data

Bytes (MSB) 7 6 5 4 3 2 1 0 (LSB) Description
Byte 0 x x x x x x x x bits 0-7 are undefined
Byte 1 x x x x x x x x bits 0-7 are undefined
Byte 2 x x x x x x x x bits 0-7 are undefined
Byte 3 x x x x x x 1 0 bit 1 - Lost 24V error
bit 0 - Module diagnostics failure

Module Configuration Data

This module does not require configuration.

Channels: 4
Voltage Range: 0-10 VDC
Resolution: 12 bit (0-4095)
Examples:
Arduino
CircuitPython

Additional Resources:
Data Sheet
P1-04DAL-2 on AutomationDirect.com