DIN
The DIN function block is used for processing digital input signals in industrial automation and other applications. It takes inputs CH (Channel) and MODE (Mode), and based on the specified mode of operation, it provides outputs Q (Output) and STAT (Status) which represent the processed digital output signal and the status or condition of the digital input signal processing, respectively. It allows for handling digital input signals in different modes of operation, such as normal or inverted, and provides flexibility in processing digital input signals according to the application requirements.
INPUTS
CH (Channel): This input specifies the channel or source of the digital input signal to be processed. It can be a binary value (0 or 1) or a boolean value (true or false), representing the state of the digital input.
MODE (Mode): This input determines the mode of operation for processing the digital input signal. It can be a binary value (0 or 1) or a boolean value (true or false), where 0/false represents “Normal” mode and 1/true represents “Inverted” mode.
OUTPUTS
Q (Output): This output provides the processed digital output signal based on the input signals CH and MODE. It can be a binary value (0 or 1) or a boolean value (true or false), representing the resulting state of the processed digital output.
STAT (Status): This output indicates the status or condition of the digital input signal processing. It can be a binary value (0 or 1) or a boolean value (true or false), where 0/false represents “OK” status and 1/true represents “Error” status.