P1-08SIM

Discrete Input Simulator

This function returns the state of a single channel.

bool point = P1.readDiscrete(1,2); // Read state of slot 1 channel 2
point = base[1][2].value # Read state of slot 1 channel 2

This function returns the state of all 8 channels. It would return 0x7F if channels 1-7 are on.

uint8_t allPoints = P1.readDiscrete(1); // Read state of all channels for slot 1
allPoints = base[1].di_bitmapped() # Read 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: 8
Discrete Input Type: Toggle Switch Examples:
Arduino
CircuitPython

Additional Resources:
Data Sheet
P1-08SIM on AutomationDirect.com