Module Data Types - 1794-VHSC

The table below lists and describes module-defined data types for the 1794-VHSC module. It includes information for input (as indicated by an "I"), and for configuration (as indicated by a "C") in the module Tag Type name shown on the Controller Tags window in the
Logix Designer
application.
Tip:
FLEX I/O and FLEX Ex are based on 16-bit INTs and not-32-bit DINTs. This may decrease performance with certain instructions.
Module-defined Data Type: AB:1794_VHSC: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.
Ch0CurrentCount
DINT
Decimal
Current count of 24-member counter or the frequency for Channel 0.
Ch1CurrentCount
DINT
Decimal
Current count of 24- member counter or the frequency for Channel 1.
Ch0StoredCount
DINT
Decimal
Stored counter value for Channel 0.
Ch1StoredCount
DINT
Decimal
Stored counter value for Channel 1.
Status (Bit Definitions)
During Normal Operation
INT
Binary
Status data. The meaning of these members change depending on the:
  • Overall Status - see
    Configuration Errors (1794-VHSC)
    for more information.
  • Self-test status - see
    Hardware Power up Self-Tests Errors (1974-VHSC)
    for more information.
Ch0Zinput
BOOL
Decimal
Present status of Z input for Channel 0. When incomplete, incorrect, or conflicting configuration data are encountered, the ConfigurationError member, discussed below, is set.
Z input represents the present status of the Z input.
0 = Off
1 = Input on
This member is unaffected by Z invert in the configuration data type. In period/rate and continuous/rate, counts are acquired during On state of the Z input. At very low frequencies, the counter saturates, indicating a zero frequency detect. (The time it takes to determine a zero frequency in these 2 configurations can be as long as 6.7s or 16,777,215 counts X 1/5MHz X 2 half cycles of Z.)
In rate measurement, pulses on Z input are counted over a sample interval specified by the product of time base X gate interval. (The time to detect a zero frequency is determined by the sample interval, for example, if time base = 0.100s and gate interval = 3, 300ms is used to determine ZeroFrequencyDetect).
Ch0ZeroFrequencyDetect
BOOL
Decimal
In rate measurement, pulses on Z input are counted over a sample interval specified by the product of time base X gate interval. (The time to detect a zero frequency is determined by the sample interval, for example, if time base = 0.100s and gate interval = 3, 300ms is used to determine ZeroFrequencyDetect).
This member is used only when frequency configurations are selected.
Ch0StoredData2
Ch0StoredData3
BOOL
Decimal
A rotating counter (along with the Ch0StoredData3 member) which increments each time the Stored Count members are updated, resetting to zero on the next count after 3 is reached in the Ch0StoredData3 member. The controller sample rate, including network delay and program scan, must be as fast or faster than the frequency of the event which updates.
Ch1Zinput
BOOL
Decimal
The indicated present status of Z input for Channel 1.
Ch1ZeroFrequencyDetect
BOOL
Decimal
Used only when frequency configurations are selected.
Ch1StoredData6
Ch1StoredData7
BOOL
Decimal
A rotating counter (along with the Ch0StoredData7 member) which increments each time the Stored Count members are updated, resetting to zero on the next count after 3 is reached in the Ch0StoredData7 member. The controller sample rate, including network delay and program scan, must be as fast or faster than the frequency of the event which updates.
Output0
Output1
Output2
Output3
BOOL
Decimal
Output status indicator: 1=ON and 0=OFF.
TestFail
BOOL
Decimal
Hardware self-test fatal fault conditions.
NotReady
BOOL
Decimal
Indicates a status of "unconfigured" for the module.
FieldPowerFault
BOOL
Decimal
Module's 24V DC power fault indication.
ConfigurationError
BOOL
Decimal
When set, this member indicates that incomplete, incorrect, or conflicting configuration data was sent to the module causing the module’s status indicators to flash.
Module-defined Data Type:AB:1794_VHSC:O:0
 Member Name
 Type
Default Display Style
 Description
CounterControl
INT
Counter data.
Ch0CounterReset
Ch1CounterReset
BOOL
When one of these members are set to 1, the associated counter is reset to zero and begins counting. The module can also be reset with the Gate Interval member of the configuration data type. Outputs are adjusted according to the window compare values.
Ch0CounterPreset
Ch1CounterPreset
BOOL
In encoder or counter modes, this member represents a reference point (or count) from which the module begins counting. The module can count either up or down from the preset value. Values can range from 0 to 16,777,215. Outputs are adjusted according to the window compare values.
Ch0ValueReset
Ch1ValueReset
BOOL
A 0 to 1 transition of this member clears the stored/accumulated count data in the Stored Data members of the input data type.
OutputControl
INT
Output control data.
Out0Force
Out1Force
Out2Force
Out3Force
BOOL
When set to 1, output is turned on if the associated Output Enable member is 1. When set to 0, output can be controlled by a compare window match, or as directed by the Pulse Width Modulation (PWM) settings.
Out0Enable
Out1Enable
Out2Enable
Out3Enable
BOOL
When set to 1, output can be turned on from a force on, compare window match, or as directed by the PWM settings. When set to 0, the associated output is turned off.
Out0Local
Out1Local
Out2Local
Out3Local
BOOL
When set to 1, output is controlled by the counter if the Flexbus power is lost. (i.e. the module detects a Flexbus reset signal)
Tip:
When Flexbus power is lost, communication to the controller is lost.
When set to 0 and loss of Flexbus power, the module clears its Output Enable members.
Set this member as appropriate in the Safe State Output Endable member of the configuration data type, in response to a communication fault occurring after adapter power is lost.
Ch0PWMOutput
Ch1PWMOutput
INT
When the module is configured for PWM, the time base is enabled, the counter for the respective channel, its gate interval, rollover, and 1st on and 1st off value are used. Ties can be used to direct the PWM signal to any or all outputs. The range of the PWM values is 0 < value < 9500 decimal (i.e. 0.00% < value < 95.00%). The actual duty cycle at the output depends on the turn on and turn off times of the MOSFET, energy storage capability of the cable/load and the resistance from output to return.
Module-defined Data Type:AB:1794_VHSC:C:0
Member Name
Type
Default Display Style
Description
Config
INT
Binary
Counter Configuration data. The following table shows distribution of Counter data and Mode selection data.
Counter Configuration – The following members are for counter configuration.
Counter0Config3
Counter0Config2
Counter0Config1
Counter0Config0
Counter Configuration
Counter1Config11
Counter1Config10
Counter1Config9
Counter1Config8
0
0
0
0
Counter
0
0
0
1
Encoder
0
0
1
0
Encoder X2
0
0
1
1
PWM
0
1
0
0
Encoder X4
0
1
0
1
Period/Rate
0
1
1
0
Continuous/Rate
0
1
1
1
Rate Measurement
Mode Selection – The following members are for operational mode selection.
Counter0Mode6
Counter0Mode5
Counter0Mode4
Mode Selection
Counter1Mode14
Counter1Mode13
Counter1Mode12
0
0
0
Store count disabled
0
0
1
Mode 1 – store/continue
0
1
0
Mode 2 – store/wait/resume
0
1
1
Mode 3 – store;reset/wait/start
1
0
0
Mode 4 – store;reset/start
Counter0Zinvert
Counter1Zinvert
BOOL
Decimal
Invert the gate/reset logic. If your gate/reset input (i.e. the Z input) is normally high and goes low when some event happens, you'll want this member set so the 1794-VHSC will see the gate/reset low until the event happens.
0 = do not invert Z value
1 = invert Z value
FilterConfig
INT
Binary
Filter configuration data.
Filter Configuration – The following members are for filter rate configuration.
Counter0Filter3
Counter0Filter2
Counter0Filter1
Counter0Filter0
Filter Configuration
Counter1Filter11
Counter1Filter10
Counter1Filter9
Counter1Filter8
0
0
0
0
No filter
0
0
0
1
50kHz (10ms + 0ms/–1.6ms)
0
0
1
0
5kHz (100ms + 0ms/–13.2ms)
0
1
0
0
500Hz (1.0ms + 0ms/–1.25ms)
1
0
0
0
50Hz (10.0ms + 0ms/–1.25ms)
Counter0Afilter
Counter1Afilter
BOOL
Decimal
Input A filter - 0 = not filtered; 1 = apply filter to input for Counter0Afilter and/or Counter1Afilter.
Counter0Bfilter
Counter1Bfilter
BOOL
Decimal
Input B filter - 0 = not filtered; 1 = apply filter to input for either Counter0Bfilter or Counter1Bfilter.
Counter0Zfilter
Counter1Zfilter
BOOL
Decimal
Input Z filter - 0 = not filtered; 1 = apply filter to input for either Counter0Zfilter or Counter1Zfilter.
TimeBase
INT
Decimal
Sets the fundamental time base for both counters. Resolution in ms, with a minimum of 10ms intervals
(10ms = 10; 1s = 1000).
Time base must be entered when PWM and rate measurement are configured. The maximum programmed value is 3000.
Ch0GateInterval
Ch1GateInterval
INT
Decimal
Sets the individual counter gate interval using the time base setting as its time unit for either Ch0GateInterval or Ch1GateInterval. Actual gate interval is time base X gate interval
(i.e. time base of 10 X gate interval of 5 = 50ms).
Maximum value is 0 < GateInterval < 200. Gate interval must be entered when PWM and rate measurement are configured.
Ch0Rollover
Ch1Rollover
DINT
Decimal
Set the number of counts the counter accumulates before rolling over (for channels 0 or 1). For example, a setting of 1000 produces a count sequence of 998, 999, 0, 1, 2... while incrementing; and 2, 1, 0, 999, 998... while decrementing. Rollover is a 32–bit number with a usable range of 16,777,216. In PWM, this value is zero; in count, X1 encoder, X2 encoder and X4 encoder configurations, it must be some specified nonzero number. The value doesn’t matter in period/rate, continuous/rate and rate measurement configurations.
Ch0Preset
Ch1Preset
DINT
Decimal
These members set the preset value the counter is loaded with when either Ch0Preset or Ch1Preset is asserted. This number has a range of 0 < value < 16,777,215.
Ch0Scalar
Ch1Scalar
INT
Decimal
These members scale the Z signal in period/rate and continuous/rate modes only. If the filter is applied, the filtered Z signal is scaled. Set only 1 member of the Ch0Scalar and/or Ch1Scalar.
Selecting a Scalar causes accumulated counts to be adjusted accordingly (i.e., selecting a Scalar of 128 increases the accumulated count by 128 after 128 Z pulses have been received). We recommend using the filter to reduce erroneous frequency readings any time you use the Scalar on the Z input.
Calculated values are shown in the table below.
1
2
4
8
16
32
64
128
Fmins = 0.149Hz
Fmins = 0.298Hz
Fmins = 0.596Hz
Fmins = 1.192Hz
Fmins = 2.384Hz
Fmins = 4.768Hz
Fmins = 9.537Hz
Fmins = 19.073Hz
OutputTies1
SINT
Binary
These members connect the first specified output to the appropriate compare window. There are 8 windows, 4 per counter. Each output can be connected to any number of windows, from 1 to 8 listed below.
OP1Counter1Window1
BOOL
Decimal
F1 = Tie output to First counter 1st window.
OP1Counter1Window2
BOOL
Decimal
F2 = Tie output to First counter 2nd window.
OP1Counter1Window3
BOOL
Decimal
F3 = Tie output to First counter 3rd window.
OP1Counter1Window4
BOOL
Decimal
F4 = Tie output to First counter 4th window.
OP1Counter2Window1
BOOL
Decimal
S1 = Tie output to Second counter 1st window.
OP1Counter2Window2
BOOL
Decimal
S2 = Tie output to Second counter 2nd window.
OP1Counter2Window3
BOOL
Decimal
S3 = Tie output to Second counter 3rd window.
OP1Counter2Window4
BOOL
Decimal
S4 = Tie output to Second counter 4th window.
OutputTies2
SINT
Binary
These members connect the second specified output to the appropriate compare window. There are 8 windows, 4 per counter. Each output can be connected to any number of windows, from 1 to 8 listed below.
OP2Counter1Window1
BOOL
Decimal
F1 = Tie output to First counter 1st window.
OP2Counter1Window2
BOOL
Decimal
F2 = Tie output to First counter 2nd window.
OP2Counter1Window3
BOOL
Decimal
F3 = Tie output to First counter 3rd window.
OP2Counter1Window4
BOOL
Decimal
F4 = Tie output to First counter 4th window.
OP2Counter2Window1
BOOL
Decimal
S1 = Tie output to Second counter 1st window.
OP2Counter2Window2
BOOL
Decimal
S2 = Tie output to Second counter 2nd window.
OP2Counter2Window3
BOOL
Decimal
S3 = Tie output to Second counter 3rd window.
OP2Counter2Window4
BOOL
Decimal
S4 = Tie output to Second counter 4th window.
OutputTies3
SINT
Binary
These members connect the third specified output to the appropriate compare window. There are 8 windows, 4 per counter. Each output can be connected to any number of windows, from 1 to 8 listed below.
OP3Counter1Window0
BOOL
Decimal
F1 = Tie output to First counter 1st window.
OP3Counter1Window1
BOOL
Decimal
F2 = Tie output to First counter 2nd window.
OP3Counter1Window2
BOOL
Decimal
F3 = Tie output to First counter 3rd window.
OP3Counter1Window3
BOOL
Decimal
F4 = Tie output to First counter 4th window.
OP3Counter2Window0
BOOL
Decimal
S1 = Tie output to Second counter 1st window.
OP3Counter2Window1
BOOL
Decimal
S2 = Tie output to Second counter 2nd window.
OP3Counter2Window2
BOOL
Decimal
S3 = Tie output to Second counter 3rd window.
OP3Counter2Window3
BOOL
Decimal
S4 = Tie output to Second counter 4th window.
OutputTies4
SINT
Binary
These members connect the fourth specified output to the appropriate compare window. There are 8 windows, 4 per counter. Each output can be connected to any number of windows, from 1 to 8 listed below.
OP4Counter1Window1
BOOL
Decimal
F1 = Tie output to First counter 1st window.
OP4Counter1Window2
BOOL
Decimal
F2 = Tie output to First counter 2nd window.
OP4Counter1Window3
BOOL
Decimal
F3 = Tie output to First counter 3rd window.
OP4Counter1Window4
BOOL
Decimal
F4 = Tie output to First counter 4th window.
OP4Counter2Window1
BOOL
Decimal
S1 = Tie output to Second counter 1st window.
OP4Counter2Window2
BOOL
Decimal
S2 = Tie output to Second counter 2nd window.
OP4Counter2Window3
BOOL
Decimal
S3 = Tie output to Second counter 3rd window.
OP4Counter2Window4
BOOL
Decimal
S4 = Tie output to Second counter 4th window.
Counter0ON1
Counter0OFF1
Counter0ON2
Counter0OFF2
Counter0ON3
Counter0OFF3
Counter0ON4
Counter0OFF4
DINT
Decimal
(Counter 1) There are eight compare windows (four per counter and four sourcing outputs) which may be tied in any mix to the four sourcing outputs. Each counter has an on and off value. The first compare window for each counter is used in PWM, and when programmed for PWM, the associated compare window should remain at 0. The range of each entry is 0 < value < 16,777,215. When a tie is connected to a window comparator, that window must be specified. These windows are always interpreted as counts, regardless of the configuration setting, and can be computed as follows:
counts = (Scalar X 2500000)/desired frequency (for period/rate and continuous/rate)
counts = time base X gate interval X desired frequency (for rate measurement)
Counter1ON1
Counter1OFF1
Counter1ON2
Counter1OFF2
Counter1ON3
Counter1OFF3
Counter1ON4
Counter1OFF4
DINT
Decimal
(Counter 2) There are eight compare windows (four per counter and four sourcing outputs) which may be tied in any mix to the four sourcing outputs. Each counter has an on and off value. The first compare window for each counter is used in PWM, and when programmed for PWM, the associated compare window should remain at 0. The range of each entry is 0 < value < 16,777,215. When a tie is connected to a window comparator, that window must be specified. These windows are always interpreted as counts, regardless of the configuration setting, and can be computed as follows:
counts = (Scalar X 2500000)/desired frequency (for period/rate and continuous/rate)
counts = time base X gate interval X desired frequency (for rate measurement)
SSCounterControl
INT
Binary
Counter Control Safe State - When the controller transitions to Program Mode behavior or a communication fault occurs, the module copies the safe state data members into its real time working buffer. These members are identical to the those in the counter control members of the output data type, except that entering a PWM safe state value outside the range 0–9500 results in a Hold Last State.
The following members are identical to the output module-defined data types with the exception of the SSPWM members.
SSCh0CounterReset
SSCh1CounterReset
BOOL
Decimal
Counter Control Reset Safe State - When one of these members are set to 1, the associated CounterReset member of the output data type is reset to zero and begins counting. The module can also be reset with the Gate Interval member of the configuration data type. Outputs are adjusted according to the window compare values.
SSCh0CounterPreset
SSCh1CounterPreset
BOOL
Decimal
Counter Control Preset Safe State - In encoder or counter modes, this member represents a reference point (or count) from which the module begins counting. The module can count either up or down from the preset value. Values can range from 0 to 16,777,215. Outputs are adjusted according to the window compare values.
SSCh0ValueReset
SSCh1ValueReset
BOOL
Decimal
A 0 to 1 transition of this member clears the stored/accumulated count data in the Stored Data members of the input data type.
SSOutputControl
INT
Binary
Output Control Safe State data - When the controller transitions to Program Mode or a communication fault occurs, the module copies the safe state data into its real time working buffer. The definitions are identical to the those in the counter control members, except entering a PWM safe state value outside the range 0–9500 results in a Hold Last State.
SSOut0Force
SSOut1Force
SSOut2Force
SSOut3Force
BOOL
Decimal
When set to 1, output is turned on if any of the Output Enable Safe State members are 1. When set to 0, output can be controlled by a compare window match, or as directed by the PWM settings.
SSOut0Enable
SSOut1Enable
SSOut2Enable
SSOut3Enable
BOOL
Decimal
When set to 1, output can be turned on from a force on, compare window match, or as directed by the PWM settings. When set to 0, the associated output is turned off.
SSOut0Local
SSOut1Local
SSOut2Local
SSOut3Local
BOOL
Decimal
When set to 1, output is controlled by the counter if the Flexbus power is lost. (i.e. the module detects a Flexbus reset signal)
Tip:
When Flexbus power is lost, communication to the controller is lost.
When set to 0 and loss of Flexbus power, the module clears its Output Enable members.
Set this member as appropriate in the safe state word, since a communication fault occurs after adapter power is lost.
SSCh0PWM
INT
Decimal
Channel 0 PWM Safe State. Any PWM Safe State % value outside the range 0 to 95%, i.e., 9501 (95.01%) signals the 1794-VHSC to use Hold Last State for its PWM Safe State % value.
SSCh1PWM
INT
Decimal
Channel 1 PWM Safe State. Any PWM Safe State % value outside the range 0 to 95%, i.e., 9501 (95.01%) signals the 1794-VHSC to use Hold Last State for its PWM Safe State % value.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.