P1-04DAL-1

Current Output

This module can output four different signals with variable current.

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 mA 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 = 1536   #set slot 1 channel 1 to output ~10mA using counts
                    base[1][2].real = 15.0   #set slot 1 channel 2 to output ~15.0mA 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
Current Range: 4-20 mA
Resolution: 12 bit (0-4095)
Examples:
Arduino
CircuitPython

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