OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — legacy C++ API referencev12.0

These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.

optris::PifDoConfig

For a detailed overview of all available modes and parameters please refer to the corresponding section in the documentation of the configuration file.

Public attributes

index

PifIndex index = {0, 0}

Identifies the channel by the indices of its pin and the PIF device on which it is located.

mode

PifDoMode mode = PifDoMode::Off

Mode to be applied to the channel.

outputLowActive

bool outputLowActive = true

Indicates if the output is low active.

Public static functions

createOff

static OTC_SDK_API PifDoConfig createOff(int deviceIndex, int pinIndex) noexcept

Creates a configuration for the mode PifDoMode::Off.

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.

Returns: configuration for the mode PifDoMode::Off.

createAlarm

static OTC_SDK_API PifDoConfig createAlarm(int deviceIndex, int pinIndex, bool lowIfActive) noexcept

Creates a configuration for the mode PifDoMode::Alarm.

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.
lowIfActive if true, a low signal will be output, if the alarm is active.

Returns: configuration for the mode PifDoMode::Alarm.

createFlagStatus

static OTC_SDK_API PifDoConfig createFlagStatus(int deviceIndex, int pinIndex, bool lowIfOpen) noexcept

Creates a configuration for the mode PifDoMode::FlagStatus.

Attention: This mode is unique and can only be applied once for all channels.

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.
lowIfOpen if true, a low signal will be output, if the flag is open.

Returns: configuration for the mode PifDoMode::FlagStatus.

createFrameSync

static OTC_SDK_API PifDoConfig createFrameSync(int deviceIndex, int pinIndex) noexcept

Create a configuration for the mode PifDoMode::FrameSync.

Attention: This mode is unique and can only be applied once for all channels.

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.

Returns: configuration for the mode PifDoMode::FrameSync.

createExternalCommunication

static OTC_SDK_API PifDoConfig createExternalCommunication(int deviceIndex, int pinIndex) noexcept

Creates a configuration for the mode PifDoMode::ExternalCommunication. When set to external communication the output value of the channel can be set with ProcessInterface::setDoValue().

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.

Returns: configuration for the mode PifDoMode::ExternalCommunication.

createFailSafe

static OTC_SDK_API PifDoConfig createFailSafe(int deviceIndex, int pinIndex) noexcept

Creates a configuration for the mode PifDoMode::FailSafe. Refer to the Fail Safe chapter for more details.

Attention: This mode is unique and can only be applied once for all channels.

Parameters

Name Description
deviceIndex identifying the channel.
pinIndex identifying the channel.

Returns: configuration for the mode PifDoMode::FailSafe.