|
|
| ProcessInterface ()=default |
| | Constructor.
|
| |
|
| ProcessInterface (const ProcessInterface &)=delete |
| | No copy constructor.
|
| |
|
ProcessInterface & | operator= (const ProcessInterface &)=delete |
| | No copy assignment.
|
| |
|
| ProcessInterface (ProcessInterface &&)=delete |
| | No move constructor.
|
| |
|
ProcessInterface & | operator= (ProcessInterface &&)=delete |
| | No move assignment.
|
| |
|
virtual | ~ProcessInterface ()=default |
| | Destructor.
|
| |
| virtual PifDeviceType | getDeviceType () const noexcept=0 |
| | Returns the PIF device type.
|
| |
| virtual int | getActualDeviceCount () const noexcept=0 |
| | Returns the count of actually connected PIFs.
|
| |
| virtual int | getConfigurableDeviceCount () const noexcept=0 |
| | Returns the count of configurable PIFs.
|
| |
| virtual bool | isActualConnected () const noexcept=0 |
| | Returns whether a PIF is actually connected.
|
| |
| virtual unsigned long | getDeviceSerialNumber (int deviceIndex) const =0 |
| | Returns the serial number of the PIF with the given device index.
|
| |
| virtual unsigned short | getDeviceFirmwareRevision (int deviceIndex) const =0 |
| | Returns the firmware revision of the PIF with the given device index.
|
| |
| virtual void | setConfig (const PifConfig &config)=0 |
| | Sets the given configuration for the entire process interface.
|
| |
| virtual PifConfig | getConfig () const noexcept=0 |
| | Returns the current configuration of the entire process interface.
|
| |
| virtual int | getActualAiCount () const noexcept=0 |
| | Returns the count of all analog input channels on actually connected PIFs.
|
| |
| virtual int | getConfigurableAiCount () const noexcept=0 |
| | Returns the count of all analog input channels on configurable PIFs.
|
| |
| virtual int | getAiCountPerDevice () const noexcept=0 |
| | Returns the count of all analog input channels on a single PIF.
|
| |
| virtual void | setAiConfig (const PifAiConfig &config)=0 |
| | Sets the configuration for a single analog input channel.
|
| |
| virtual PifAiConfig | getAiConfig (int deviceIndex, int pinIndex) const =0 |
| | Returns the current configuration of the specified analog input channel.
|
| |
| virtual int | getActualDiCount () const noexcept=0 |
| | Returns the count of all digital input channels on actually connected PIFs.
|
| |
| virtual int | getConfigurableDiCount () const noexcept=0 |
| | Returns the count of all digital input channels on configurable PIFs.
|
| |
| virtual int | getDiCountPerDevice () const noexcept=0 |
| | Returns the count of all digital input channels on a single PIF.
|
| |
| virtual void | setDiConfig (const PifDiConfig &config)=0 |
| | Sets the configuration for a single digital input channel.
|
| |
| virtual PifDiConfig | getDiConfig (int deviceIndex, int pinIndex)=0 |
| | Returns the current configuration of the specified digital input channel.
|
| |
| virtual int | getActualAoCount () const noexcept=0 |
| | Returns the count of all analog output channels on actually connected PIFs.
|
| |
| virtual int | getConfigurableAoCount () const noexcept=0 |
| | Returns the count of all analog output channels on configurable PIFs.
|
| |
| virtual int | getAoCountPerDevice () const noexcept=0 |
| | Returns the count of all analog output channels on a single PIF.
|
| |
| virtual PifAoOutputMode | getDefaultAoOutputMode () const noexcept=0 |
| | Returns the default analog output mode of the PIF.
|
| |
| virtual void | setAoConfig (const PifAoConfig &config)=0 |
| | Sets the configuration for a single analog output channel.
|
| |
| virtual PifAoConfig | getAoConfig (int deviceIndex, int pinIndex)=0 |
| | Returns the current configuration of the specified analog output channel.
|
| |
| virtual void | setAoValue (int deviceIndex, int pinIndex, float value)=0 |
| | Sets the output value of the specified analog output channel.
|
| |
| virtual int | getActualDoCount () const noexcept=0 |
| | Returns the count of all digital output channels on actually connected PIFs.
|
| |
| virtual int | getConfigurableDoCount () const noexcept=0 |
| | Returns the count of all digital output channels on configurable PIFs.
|
| |
| virtual int | getDoCountPerDevice () const noexcept=0 |
| | Returns the count of all digital output channels on a single PIF.
|
| |
| virtual void | setDoConfig (const PifDoConfig &config)=0 |
| | Sets the configuration for a single digital output channel.
|
| |
| virtual PifDoConfig | getDoConfig (int deviceIndex, int pinIndex)=0 |
| | Returns the current configuration of the specified digital output channel.
|
| |
| virtual void | setDoValue (int deviceIndex, int pinIndex, bool value)=0 |
| | Sets the output value of the specified digital output channel.
|
| |
| virtual bool | hasFs () const noexcept=0 |
| | Returns wether the PIF has a fail safe channel.
|
| |
| virtual void | setFsConfig (const PifFsConfig &config)=0 |
| | Sets the configuration for the fail safe channel.
|
| |
| virtual PifFsConfig | getFsConfig ()=0 |
| | Returns the current fail safe channel configuration.
|
| |
Interface defining the API for interacting with process interfaces (PIFs).
Each PIF can have up to five different channel type. The API uses the following abbreviations to mark resources specific to a channel type:
Ai - analog inputs
Di - digital inputs
Ao - analog outputs
Do - digital outputs
Fs - fail safe
In case of stackable PIFs the number of configurable PIFs can deviate from the number of actually connected PIFs. To reflect this the API features different count methods for PIF devices and PIF channels:
Devices
- Note
- On non-stackable PIFs these methods yield the same values.
Channels (XX denotes the channel type)
getActualXXCount() returns the count of all XX channels on actually connected devices.
getConfigurableXXCount() returns the count of all XX channels on configurable devices.
getXXCountPerDevice() returns the count of XX channels per individual device.
- Note
- The actual PIF device count can never exceed the configurable device count.
For more details and an overview of the process interface capabilities please refer to the Process Interface (PIF) chapter.