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
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
Compatible Functions
- ch.value
- module.values
- module.do_bitmapped()
- base.writeDiscrete()
Properties and Methods
Module Configuration and Status Tables
This module does not provide any status data and does not require configuration.
![](P1-15TD2_STRAIGHTON.png)
Channels: 15
Discrete Output Type: Sourcing
Rated Output Voltage: 12–24 VDC
Example:
Arduino
CircuitPython
Additional Resources:
Data Sheet
P1-15TD2 on AutomationDirect.com