Dynamic Push Button
Operator Menu Location:
Generic Hardware Operators->Dynamic Config Hardware
Operator Bitmap:
Functional Description:
This operator accepts structure compositions as an input, and outputs a structure to configure it's operation. It must be linked to a hardware resource to complete its functionality.
Pin x accepts an input structure which configures the button's characteristics. Refer to the Configuration Inputs section of the table below for the structure components and the accepted values.
Pin x accepts a boolean input which indicates when to assign the output, on a signal's rising or falling edge.
Pin x accepts an input structure containing the reset and direction of counting for button presses. Refer to the Data Inputs section of the table below for the structure components and the accepted values.
Pin y outputs a structure containing status information. Refer to the Data Outputs section of the table below for the structure components and the expected values.
Dynamic Configuration Push Button Inputs| Configuration Inputs |
ID |
Type |
Name |
Relevant Modes |
Comments / Notes |
1 |
int8 |
Button Mode |
All |
0 = Disabled / Off |
2 |
int8 |
Binary Type |
Binary |
0xA1 = Momentary |
3 |
bool |
Initial State |
Binary |
 |
4 |
float |
Minimum Count |
Counting |
 |
5 |
float |
Maximum Count |
Counting |
 |
6 |
float |
Initial Count |
Counting |
 |
7 |
float |
Increment Magnitude |
Counting |
 |
8 |
int32 |
Delay Before Repeat |
Counting |
value in milliseconds |
9 |
int32 |
Key Repeat Time |
Counting |
value in milliseconds |
10 |
int8 |
Overload Action |
Counting |
0 = Saturate |
11 |
float |
Reserved1 |
All |
This member is reserved for future expansion. To ensure compatibility with future Fairmount Automation software, this member should be set to zero (0.0). |
Data Inputs |
||||
ID |
Type |
Name |
Relevant Modes |
Comments / Notes |
1 |
bool |
Reset |
All |
 |
2 |
bool |
Count Direction |
Counting |
0 = Increment |
3 |
float |
Reserved1 |
All |
This member is reserved for future expansion. To ensure compatibility with future Fairmount Automation software, this member should be set to zero (0.0). |
Data Outputs |
||||
ID |
Type |
Name |
Relevant Modes |
Comments / Notes |
1 |
int8 |
Status Code |
All |
Basic status information for the hardware. See "Status Codes" table on "Defines" worksheet. |
2 |
int8 |
Mode |
All |
The button mode is echoed back to the data output block. This is intended mainly for networked operation, allowing the receiver to verify that the input is in the expected mode before interpreting data. Also useful when transitioning from one mode to another. |
3 |
bool |
Button State |
Binary |
 |
4 |
float |
Count Value |
Counting |
 |
5 |
float |
Reserved1 |
All |
This member is reserved for future expansion. Until its meaning is defined by Fairmount Automation, applications should assume that its value is undefined. |
User-Defined Properties:
Object Name.A string label that identifies the operator
Enable On. Defines at what segment of a signal the input sould be read.
Comments: The following table defines the status codes in the Data Output structure
.
Status Codes for Dynamic Configuration Generic Hardware Operators |
||
Value |
Name |
Description |
0 |
DYN_HW_STATUS_OK |
Operator is behaving normally. No errors. Readings are safe to use. |
1 |
DYN_HW_STATUS_CIRCUIT_WARNING |
A fault has been detected in the circuit. For inputs, this may indicate an out-of-range reading. For outputs, this may indicate an overload condition. Readings returned (if any) may be "failsafe" values. |
2 |
DYN_HW_STATUS_INITIALIZING |
The hardware is initializing, and has not yet acquired valid readings. This can happen after the configuration has changed. |
3 |
DYN_HW_STATUS_DISABLED |
The hardware is set to an inactive mode, or has not yet been configured. Readings not valid. |
4 |
DYN_HW_STATUS_USUPPORTED_CONFIG |
The requested hardware configuration is unknown or is not supported by this hardware. Readings not valid. |
5 |
DYN_HW_STATUS_RESOURCE_IN_USE |
Some or all of the resources needed for the requested HW configuration are in use by other operators. |
6 |
DYN_HW_STATUS_HW_FAULT |
A major fault has been detected with the hardware resource. Readings not valid. |
See Also:
: