QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
ElementData::PlcIO Struct Reference

The PlcIO struct Represents a single IO entry in a PLC master element. More...

#include <elementdata.h>

Collaboration diagram for ElementData::PlcIO:
Collaboration graph

Public Member Functions

QStringList effectiveTerminals () const
 Return terminal labels, generating defaults (T1, T2...) if empty.
bool operator== (const PlcIO &other) const
bool operator!= (const PlcIO &other) const

Public Attributes

PlcIOType type = EntreeDigitale
QString address
 e.g. "1.0", "1.1"
QString functionText
 e.g. "Motor K1"
QString comment
 Optional comment.
QString crossRef
 Auto-filled: slave reference.
int terminalCount = 1
 Number of terminals for this IO (1-4).
QStringList terminals
 Terminal values T1, T2, ... (size = terminalCount).

Detailed Description

The PlcIO struct Represents a single IO entry in a PLC master element.

Member Function Documentation

◆ effectiveTerminals()

QStringList ElementData::PlcIO::effectiveTerminals ( ) const
inline

Return terminal labels, generating defaults (T1, T2...) if empty.

◆ operator!=()

bool ElementData::PlcIO::operator!= ( const PlcIO & other) const
inline

◆ operator==()

bool ElementData::PlcIO::operator== ( const PlcIO & other) const
inline

Member Data Documentation

◆ address

QString ElementData::PlcIO::address

e.g. "1.0", "1.1"

◆ comment

QString ElementData::PlcIO::comment

Optional comment.

◆ crossRef

QString ElementData::PlcIO::crossRef

Auto-filled: slave reference.

◆ functionText

QString ElementData::PlcIO::functionText

e.g. "Motor K1"

◆ terminalCount

int ElementData::PlcIO::terminalCount = 1

Number of terminals for this IO (1-4).

◆ terminals

QStringList ElementData::PlcIO::terminals

Terminal values T1, T2, ... (size = terminalCount).

◆ type

PlcIOType ElementData::PlcIO::type = EntreeDigitale

The documentation for this struct was generated from the following file: