S7Variable
Description
- › Inherits:
Overview
Properties
Methods
Signals
Enumerations
Properties
address
This property holds the address (byte offset).
- › Type:
SignedInteger
- › Default:
0- › Signal:
addressChanged()
- › Attributes:
Writable
bit
This property holds the bit number.
- › Type:
SignedInteger
- › Default:
0- › Signal:
bitChanged()
- › Attributes:
Writable
client
- › Type:
- › Signal:
clientChanged()
- › Attributes:
Writable
db
This property holds the data block number.
- › Type:
SignedInteger
- › Default:
0- › Signal:
dbChanged()
- › Attributes:
Writable
enabled
This property holds whether the variable is enabled. Poll will work only if enabled is true.
- › Type:
Boolean
- › Default:
true- › Signal:
enabledChanged()
- › Attributes:
Writable
error
This property holds the most recently occurred error or S7Variable.NoError if no error occurred. If the same error occurs multiple times this property does not change. Use the errorOccurred() signal to detect multiple occurrences of the same error.
- › Type:
- › Signal:
errorChanged()
- › Attributes:
Readonly
errorString
This property holds the current human readable error string corresponding to the current value in the error property. It may include additional information such as failure reasons or locations.
- › Type:
String
- › Signal:
errorStringChanged()
- › Attributes:
Readonly
type
This property holds the type of this variable. It’s set automatically if DataObject.name is set.
- › Type:
- › Default:
- › Signal:
typeChanged()
- › Attributes:
Writable
Methods
pollData()
Signals
errorOccurred()
This signal is emitted whenever an error has occurred, regardless of whether the error property has changed or not. In contrast to the change notification signal of the error property this signal is also emitted several times if a certain error occurs several times in succession.
Enumerations
Error
This enumeration describes all errors which can occur in S7Variable objects. The most recently occurred error is stored in the error property.
Name |
Value |
Description |
|---|---|---|
|
|
No error occurred or was detected. |
|
|
Can’t send requests without a S7Client parent. |
|
|
The variable name is malformed and could not be parsed. |
Type
Name |
Value |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|