#include <wait_node.h>
|
enum | ConfigType : int {
NO_TYPE,
NO_WAIT,
TIME,
DIGITAL_INPUT,
ANALOG_INPUT_CURRENT,
ANALOG_INPUT_VOLTAGE,
FLOAT_REGISTER_INPUT,
EXPRESSION_INPUT
} |
| The configuration type used to determine which type of configuration this instance is. More...
|
|
enum | CompareOperator : int { LESS_THAN,
GREATER_THAN
} |
| Compare operator types LESS_THAN and GREATER_THAN used when waiting for an analog input to go lower or higher, respectively, than a threshold. More...
|
|
Definition at line 16 of file wait_node.h.
Compare operator types LESS_THAN and GREATER_THAN used when waiting for an analog input to go lower or higher, respectively, than a threshold.
Enumerator |
---|
LESS_THAN |
|
GREATER_THAN |
|
Definition at line 101 of file wait_node.h.
The configuration type used to determine which type of configuration this instance is.
Definition at line 23 of file wait_node.h.
arcs::aubo_scope::WaitNode::WaitNode |
( |
WaitNode & |
f | ) |
|
arcs::aubo_scope::WaitNode::WaitNode |
( |
WaitNode && |
f | ) |
|
virtual arcs::aubo_scope::WaitNode::~WaitNode |
( |
| ) |
|
|
virtual |
arcs::aubo_scope::WaitNode::WaitNode |
( |
| ) |
|
|
private |
AnalogIoPtr arcs::aubo_scope::WaitNode::getAnalogInput |
( |
| ) |
|
BoolRegisterPtr arcs::aubo_scope::WaitNode::getBoolRegister |
( |
| ) |
|
bool arcs::aubo_scope::WaitNode::getBoolValueToWaitFor |
( |
| ) |
|
Depending on the type of input this is interpreted in different ways.
For digital inputs and MODBUS inputs, true
means the input to wait for must be HIGH, false
means the input to wait for must be LOW. For boolean registers the value is interpreted literally.
- Returns
- the input value to wait for.
ConfigType arcs::aubo_scope::WaitNode::getConfigType |
( |
| ) |
|
This method returns the type of configuration.
Cast this instance appropriately to have access to specific getters.
- Returns
- the type of this config.
DigitalIoPtr arcs::aubo_scope::WaitNode::getDigitalInput |
( |
| ) |
|
DoubleRegisterPtr arcs::aubo_scope::WaitNode::getDoubleRegisterInput |
( |
| ) |
|
ExpressionPtr arcs::aubo_scope::WaitNode::getExpressionInputConfig |
( |
| ) |
|
float arcs::aubo_scope::WaitNode::getFloatValueToWaitFor |
( |
| ) |
|
ModbusIoPtr arcs::aubo_scope::WaitNode::getModbusInput |
( |
| ) |
|
double arcs::aubo_scope::WaitNode::getWaitTime |
( |
| ) |
|
- Returns
- the time to wait for. second
void arcs::aubo_scope::WaitNode::setAnalogInput |
( |
AnalogIoPtr |
input | ) |
|
Creates a configuration for waiting for an analog input to go past an electric current threshold.
- Parameters
-
input | on which to wait, not null . |
compareOperator | the operator to use when comparing input to value, not null . Available options are "less than" ({ <}) or "greater than" ({ >}). |
current | the electric current threshold to wait for, not null . |
errorHandler | the error handler for validation errors. If using ErrorHandler#AUTO_CORRECT this will clamp the value to the nearest valid current value. |
- Returns
- the configuration.
- Exceptions
-
IllegalArgumentException | if input is an output (does not support reading of values). See IO#isInput(). |
void arcs::aubo_scope::WaitNode::setBoolRegister |
( |
BoolRegisterPtr |
input | ) |
|
Creates a configuration for waiting for a boolean register to go true
or false
.
- Parameters
-
input | the boolean register input on which to wait, not null . |
value_to_wait_for | true , if waiting for the register to be true}, false} otherwise. |
- Returns
the configuration.
- Exceptions
-
IllegalArgumentException | if input is an output (does not support reading of values). See IO#isInput().
|
void arcs::aubo_scope::WaitNode::setBoolValueToWaitFor |
( |
bool |
value | ) |
|
void arcs::aubo_scope::WaitNode::setCompareOperator |
( |
CompareOperator |
compareOperator | ) |
|
void arcs::aubo_scope::WaitNode::setConfigType |
( |
ConfigType |
type | ) |
|
void arcs::aubo_scope::WaitNode::setDigitalInput |
( |
DigitalIoPtr |
input | ) |
|
Creates a configuration for waiting for a digital input to go high or low.
- Parameters
-
input | the digital input on which to wait, not null . |
value_to_wait_for | true , if waiting for the input signal value/level to go HIGH, false otherwise (waiting for LOW signal value/level). |
- Returns
- the configuration.
- Exceptions
-
IllegalArgumentException | if input is an output (does not support reading of values). See IO#isInput(). |
void arcs::aubo_scope::WaitNode::setDoubleRegisterInput |
( |
DoubleRegisterPtr |
input | ) |
|
Creates a configuration for waiting for a register to go past a float threshold.
- Parameters
-
input | the float register input on which to wait, not null . |
compareOperator | the operator to use when comparing register to value, not null . Available options are "less than" ({ <}) or "greater than" ({ >}). |
value_to_wait_for | the float threshold to wait for. |
- Returns
- the configuration.
- Exceptions
-
IllegalArgumentException | if input is an output (does not support reading of values). See IO#isInput(). |
void arcs::aubo_scope::WaitNode::setExpressionInputConfig |
( |
ExpressionPtr |
expression | ) |
|
Create a configuration for waiting for an expression to be evaluated to true.
- Parameters
-
expression | the expression to evaluate, not null . |
- Returns
- the configuration.
void arcs::aubo_scope::WaitNode::setFloatValueToWaitFor |
( |
float |
value | ) |
|
void arcs::aubo_scope::WaitNode::setModbusInput |
( |
ModbusIoPtr |
input | ) |
|
Creates a configuration for waiting for a digital MODBUS input to go high or low.
- Parameters
-
input | the digital MODBUS input on which to wait, not null . |
value_to_wait_for | true , if waiting for the input signal value/level to go HIGH, false otherwise (waiting for LOW signal value/level). |
- Returns
- the configuration.
- Exceptions
-
IllegalArgumentException | if input is an output (does not support reading of values) or if output is not a digital output. See IO#isInput() and IO#getType(). |
void arcs::aubo_scope::WaitNode::setWaitTime |
( |
double |
time | ) |
|
void* arcs::aubo_scope::WaitNode::d_ { nullptr } |
|
private |
The documentation for this class was generated from the following file:
- include/aubo_caps/domain/program/nodes/builtin/wait_node.h