Module Data Types - 1794-OF4I
The table below lists and describes module-defined data types for the 1794-OF4I analog output 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_OF4I:I:0
Member Name | Type | Default Display Style | Description |
Ch0ReadBack Ch1ReadBack Ch2ReadBack Ch3ReadBack | INT | Decimal | Read back data for output on a channel. During a communication fault or idle period, it contains real time output data as well as any Safe State values sent by the adapter. |
InputData1 | INT | Binary | Contains input status. |
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 data in the configuration tag is all zeros due to reset or a cleared data type in the configuration tag. The module status indicator flashes when set. |
InputData2 | INT | Binary | Contains input status. |
Ch0OpenWire Ch1OpenWire Ch2OpenWire Ch3OpenWire | BOOL | Decimal | Indicates the corresponding current output channel is open. |
Ch0Held Ch1Held Ch2Held Ch3Held | 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_OF4I: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 Outputs feature to function. |
Ch0Data | INT | Decimal | Output data for channel 0. The output data is real time data formatted to the selected configuration. |
Ch1Data | INT | Decimal | Output data for channel 1. The output data is real time data formatted to the selected configuration. |
Ch2Data | INT | Decimal | Output data for channel 2. The output data is real time data formatted to the selected configuration. |
Ch3Data | INT | Decimal | Output data for channel 3. The output data is real time data formatted to the selected configuration. |
Module-defined Data Type: AB:1794_OF4I:C:0
Member Name | Type | Default Display Style | Description |
OutputConfiguration | INT | Binary | |
Ch0Calibrate Ch1Calibrate Ch2Calibrate Ch3Calibrate | BOOL | Decimal | Includes a channel in calibration when selected. |
GainOffsetCalibration | BOOL | Decimal | Holds the High or Low Reference settings you selected on the Input Configuration tab from the Module Properties dialog box. |
CalibrationClock | BOOL | Decimal | If selected, calibration mode starts and calibration settings for the 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. |
Ch0Hold Ch1Hold Ch2Hold Ch3Hold | BOOL | Decimal | If set, when a 1 to 0 to 1 transition of the OutputEnable member, hold output level on a channel 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 SSSafeStateConfig0. |
SSSafeStateConfig1 | BOOL | Decimal | Safe state value to use for SSSafeStateConfig1. |
SSOutputEnable | BOOL | Decimal | Safe state value to use for SSOutputEnable. |
SSCh0Data SSCh1Data SSCh2Data SSCh3Data | INT | Decimal | Safe State value to use for selected channel. |
Provide Feedback