P1-15TD2

Discrete DC Output

Note: While this module only has 15 output channels, you can still write to channel 16. However, it will have no functional purpose.

This function writes the state of a single channel.

P1.writeDiscrete(HIGH,1,2); // Turn on slot 1 channel 2
base[1][2].value = 1 # Turn on slot 1 channel 2

This function writes the state of all 15 channels. It turns channels 1-14 on and turns channel 15 off.

P1.writeDiscrete(0x3FFF, 1); // Write state of all channels for slot 1
base[1].do_bitmapped(0x3FFF) # Write state of all channels for slot 1

Module Configuration and Status Tables

This module does not provide any status data and does not require configuration.

Channels: 15
Discrete Output Type: Sourcing
Rated Output Voltage: 12–24 VDC
Example:
Arduino
CircuitPython

Additional Resources:
Data Sheet
P1-15TD2 on AutomationDirect.com