Module Data Types - 1794-IF2XOF2I
The table below lists and describes module-defined data types for the 1794-IF2XOF2I Combo module. It includes information for input (as indicated by an "I"), output (as indicated by an "O"), and configuration (as indicated by a "C").
TIP:
The OutputEnable configuration data type must be set to 1 in order for the Hold For Initialization feature to function. This value can be set in the Data Monitor from the Controller Tags window, or by using your own program. An example of the Hold For Initialization feature is outlined below.
When a communication fault or idle period is encountered, the module accepts the Safe State held by the adapter (in the SSSafeStateConfig0 and SSSafeStateConfig1 members). When communication is restored, the module’s output status is polled for each condition of output on each channel (in the Ch0OutputHeld and Ch1OutputHeld members) using the output data in the Ch0OutputReadBack and Ch1OutputReadBack members. When the output data matches the respective Ch0OutputReadBack and Ch1OutputReadBack values, the channel returns to normal operation and indicates this by clearing the Ch0OutputHeld and Ch1OutputHeld members. The members identified in this example are defined in the tables below.
TIP:
FLEX I/O is based on 16-bit INTs and not 32-bit DINTs. This may decrease performance with certain instructions.
Module-defined Data Type: AB:1794_IF2XOF2I:I:0
Member Name | Type | Default Display Style | Description |
Fault | DINT | Binary | Fault - Used for Input Data Validation 0 = Valid Data 1 = Invalid Data - if the connection to the module has been lost, or if the module has a severe hardware fault, the lower 8 bits are set to 1. |
Ch0InputData | INT | Decimal | Input data for channel 0. |
Ch1InputData | INT | Decimal | Input data for channel 1. |
Ch0OutputReadBack | INT | Decimal | Read back data for output channel 0. During a communication fault or idle period, it contains real time output data as well as any Safe State values sent by the adapter. |
Ch1OutputReadBack | INT | Decimal | Read back data for output channel 1. During a communication fault or idle period, it contains real time output data as well as any Safe State values sent by the adapter. |
RealTimeSample | INT | Decimal | Elapsed time in 5ms increments programmed by the Real Time Sample interval. |
CalibrationDone | BOOL | Decimal | Set to 1 after calibration cycle completed. |
CalibrationBad | BOOL | Decimal | Set to 1 if channel calibration coefficients cannot be saved or read properly. |
ConfigurationMode | BOOL | Decimal | Set to 1 when configuration mode is selected. The module status indicator flashes when set. |
FieldPowerOff | BOOL | Decimal | Set to 1 when the 24V field power fails. The module status indicator flashes when set. |
PowerUp | BOOL | Decimal | This member is set when the configuration word is all zeros due to reset or a cleared configuration word. The module status indicator flashes when set. |
Ch0InputUnderrange | BOOL | Decimal | This member is set when input channel 0 is below a preset limit defined by the selected configuration. |
Ch1InputUnderrange | BOOL | Decimal | This member is set when input channel 1 is below a preset limit defined by the selected configuration. |
Ch0InputOpenWire | BOOL | Decimal | This member is set when the output channel 0 current loop is open. |
Ch1InputOpenWire | BOOL | Decimal | This member is set when the output channel 1 current loop is open. |
Ch0InputOverrange | BOOL | Decimal | This member is set when input channel 0 is above a preset limit defined by the selected configuration. |
Ch1InputOverrange | BOOL | Decimal | This member is set when input channel 1 is above a preset limit defined by the selected configuration. |
Ch0OutputHeld Ch1OutputHeld | BOOL | Decimal | Indicates that the output is holding at the level in the readback data for the respective channel during output enable. These data types return to 0 when the output data matches the readback. |
Module-defined Data Type: AB:1794_IF2XOF2I:O:0
Member Name | Type | Default Display Style | Description |
SafeStateConfig0 SafeStateConfig1 | BOOL | Decimal | Designates the source of the Safe State data when output enable is 0. |
OutputEnable | BOOL | Decimal | Always keep this member set to 1. It must be a 1 in order for the Hold For Initialization feature to function. |
Ch0OutputData | INT | Decimal | Output data for channel 0. |
Ch1OutputData | INT | Decimal | Output data for channel 1. |
Module-defined Data Type: AB:1794_IF2XOF2I:C:0
Member Name | Type | Default Display Style | Description |
InputFilter | SINT | Binary | Encoded input filter. |
InputConfiguration | SINT | Binary | Encoded input configuration. |
OutputConfiguration | SINT | Binary | Encoded output configuration. |
RTSInterval | INT | Decimal | Real Time Sample programmed interval. Range 0-30000ms in multiples of 5. |
Ch0InputCalibrate | BOOL | Decimal | Include Input channel 0 in calibration. |
Ch1InputCalibrate | BOOL | Decimal | Include Input channel 1 in calibration. |
Ch0OutputCalibrate | BOOL | Decimal | Include Output channel 0 in calibration. |
Ch1OutputCalibrate | BOOL | Decimal | Include Output channel 1 in calibration. |
GainOffsetCalibration | BOOL | Decimal | If set, gain calibration. If clear, offset calibration. |
CalibrationClock | BOOL | Decimal | If set to 1, calibration mode starts and coefficients for selected channels are accepted. If clear, the accepted current calibration coefficients are stored to selected channels, applied and calibration mode is exited. |
QuickCalibration | BOOL | Decimal | If set to 1, calibration coefficient is stored to all related configurations for selected channels. |
Ch0OutputHold | BOOL | Decimal | If set, when a 1 to 0 to 1 transition of the Enable member, hold output level on channel 0 until the real time output data equals the level. |
Ch1OutputHold | BOOL | Decimal | If set, when a 1 to 0 to 1 transition of the Enable member, hold output level on channel 1 until the real time output data equals the level. |
InterleaveInterrupts | BOOL | Decimal | If set, ensures exchange of time critical data when channels are configured for the fastest update times. Do not check the Interleave Module Interrupts check box unless you know you have a specific use for this option. The Interleave Module Interrupts feature is useful only in limited circumstances and can only be enabled when you configured a module’s Conversion Rate to 1200 Hz , Low Pass Time Constant to None, and Real Time Sampling period to 0 for ALL channels on the module. |
Transparent | BOOL | Decimal | If set, permits configuration to be changed without using the InitiateConfiguration data type. |
InitiateConfiguration | BOOL | Decimal | If set, instructs the module to enter configuration mode. When transition to 0 occurs, configuration is applied and any subsequent configuration is ignored until this member is toggled. |
SSSafeStateConfig0 | BOOL | Decimal | Safe state value to use for SafeStateConfig0. |
SSSafeStateConfig1 | BOOL | Decimal | Safe state value to use for SafeStateConfig1. |
SSOutputEnable | BOOL | Decimal | Safe state value to use for OutputEnable. |
SSCh0OutputData | INT | Decimal | Safe State value to use for Ch0OutputData. |
SSCh1OutputData | INT | Decimal | Safe State value to use for Ch1OutputData. |
Provide Feedback