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 8 channels. It turns channels 1-7 on and turns channel 8 off.
P1.writeDiscrete(0x7F, 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.
Channels: 8
Discrete Output Type: 6 Relays - FORM A (SPST), 2 Relays - FORM C (SPDT)
Rated Voltage: 6–24 VDC, 6–120 VAC
Example:
Arduino
CircuitPython
Additional Resources:
Data Sheet
P1-08TRS on AutomationDirect.com