Module Data Types - 1794-ID2
The tables below describes the module-defined data types supplied with the 1794-ID2/B module. These tables include information on input (as indicated by an "I") and output (as indicated by an "O").
Module-defined Data Type: AB:1794_ID2:I:0
Member Name | Type | Default Display Style | Description |
Status | INT | Binary | |
Ch0InputA | When set, indicates a signal at A | ||
Ch0InputB | When set, indicates a signal at B | ||
Ch0InputZ | When set, indicates a signal at Z | ||
Ch0InputG | When set, indicates a signal at G | ||
Ch1InputA | When set, indicates a signal at A | ||
Ch1InputB | When set, indicates a signal at B | ||
Ch1InputZ | When set, indicates a signal at Z | ||
Ch1InputG | When set, indicates a signal at G | ||
Ch0Calibrated | When set, indicates that counter 0 has been calibrated | ||
Ch1Calibrated | When set, indicates that counter 1 has been calibrated | ||
Ch0CounterStored | When set, indicates a counter value is saved in store 0 | ||
Ch1CounterStored | When set, indicates a counter value is saved in store 1 | ||
Ch0PresetReached | When set, in all configuration modes, the counter 0 value equals the preset 0 value, either in a positive or negative direction. | ||
Ch1PresetReached | When set, in all configuration modes, the counter 1 value equals the preset 1 value, either in a positive or negative direction. | ||
Ch0CounterIncDec | |||
Ch1CounterIncDec | |||
Ch0StoredCounter | INT | Saved counter value on Channel 0 | |
Ch1StoredCounter | INT | Saved counter value on Channel 1 | |
Ch0Counter | INT | Current value in counter 0 | |
Ch1Counter | INT | Current value in counter 1 | |
Ch0CounterReadback | INT | Counter readback – last value written to Ch0Control | |
Ch1CounterReadback | INT | Counter readback – last value written to Ch1Control | |
FirmwareRevision | INT | Firmware ID code |
Module-defined Data Type: AB:1794_ID2:O:0
Member Name | Type | Default Display Style | Description |
Ch0Control | INT | Binary | |
Ch0ModeSelect0 | These three bits used as follows: 0 0 0 Counting on positive (rising) edge of input signal A. (Up/down counting determined by B) 0 0 1 Quadrature encoder X1 0 1 0 Quadrature encoder X2 0 1 1 Quadrature encoder X4 1 0 0 Counting up on the positive edge of input signal A, and down on the positive edge of input signal B. 1 0 1 No count function 1 1 0 No count function 1 1 1 No count function | ||
Ch0ModeSelect1 | |||
Ch0ModeSelect2 | |||
Ch0CounterPreset | A positive edge on this bit moves the value in Preset X to Counter X, independent of Preset Enable. | ||
Ch0ZpresetEn | When set to 1, a positive edge on Z preloads Counter X = Preset X, independent of CalEn | ||
Ch0CountEn | When set 1, the incremental encoder is enabled | ||
Ch0CalEn | When set 1, the counter can be calibrated | ||
Ch0CalDirection | When set 1, calibration is performed in a negative direction. When 0, calibration is performed in a positive direction. | ||
Ch0CalReset | Calibration is acknowledged and a new calibration is enabled on a positive edge on this bit. | ||
Ch0GateControl19 | Next 2 bits used as follows: 0 0 No gate function on input G 0 1 Counting only if G is high (active) 1 0 Counting only if G is low (inactive) 1 1 The counter can be calibrated when G is high (active) | ||
Ch0GateControl10 | These bits will trigger a store only if the channel store status bit (L0 or L1) is cleared (0). They are used as follows: 0 0 Save the counter value on the positive edge of Z (if stored X=0) 0 1 Save the counter value on the positive edge of G (if stored X=0) 1 0 Save the counter value on the negative edge of G (if stored X=0) 1 1 Save the counter value on the positive edge and negative edge of G (if stored X=0) | ||
Ch0StoreControl11 | |||
Ch0StoreControl12 | |||
Ch0Rollover | When set 1, the counter counts up to the preset and restarts at 0. If set 0, the rollover preset value=65535 | ||
Ch0StoreReset | A positive edge on this bit resets ChXCounterStored in the input image | ||
Ch0PresetReset | A positive edge on this bits resets ChXPresetReached in the input image | ||
Ch1Control | INT | Binary | |
Ch1ModeSelect0 | These three bits used as follows: 0 0 0 Counting on positive (rising) edge of input signal A. (Up/down counting determined by B) 0 0 1 Quadrature encoder X1 0 1 0 Quadrature encoder X2 0 1 1 Quadrature encoder X4 1 0 0 Counting up on the positive edge of input signal A, and down on the positive edge of input signal B. 1 0 1 No count function 1 1 0 No count function 1 1 1 No count function | ||
Ch1ModeSelect1 | |||
Ch1ModeSelect2 | |||
Ch1CounterPreset | A positive edge on this bit moves the value in Preset X to Counter X, independent of Preset Enable. | ||
Ch1ZpresetEn | When set to 1, a positive edge on Z preloads Counter X = Preset X, independent of CalEn | ||
Ch1CountEn | When set 1, the incremental encoder is enabled | ||
Ch1CalEn | When set 1, the counter can be calibrated | ||
Ch1CalDirection | When set 1, calibration is performed in a negative direction. When 0, calibration is performed in a positive direction. | ||
Ch1CalReset | Calibration is acknowledged and a new calibration is enabled on a positive edge on this bit. | ||
Ch1GateControl19 | Next 2 bits used as follows: 0 0 No gate function on input G 0 1 Counting only if G is high (active) 1 0 Counting only if G is low (inactive) 1 1 The counter can be calibrated when G is high (active) | ||
Ch1GateControl10 | These bits will trigger a store only if the channel store status bit (L0 or L1) is cleared (0). They are used as follows: 0 0 Save the counter value on the positive edge of Z (if stored X=0) 0 1 Save the counter value on the positive edge of G (if stored X=0) 1 0 Save the counter value on the negative edge of G (if stored X=0) 1 1 Save the counter value on the positive edge and negative edge of G (if stored X=0) | ||
Ch1StoreControl11 | |||
Ch1StoreControl12 | |||
Ch1Rollover | When set 1, the counter counts up to the preset and restarts at 0. If set 0, the rollover preset value=65535 | ||
Ch1StoreReset | A positive edge on this bit resets ChXCounterStored in the input image | ||
Ch1PresetReset | A positive edge on this bits resets ChXPresetReached in the input image | ||
Ch0Preset | INT | Value to load or compare with counter 0 | |
Ch1Preset | INT | Value to load or compare with counter 1 | |
FilterControl | INT | ||
Ch0FilterEn | When set 1 and Counter 0 is in mode 0 0 0, signal A0 is filtered by a digital lowpass filter with selectable filter constant (common with counter 1) | ||
Ch1FilterEn | When set 1 and Counter 1 is in mode 0 0 0, signal A1 is filtered by a digital lowpass filter with selectable filter constant (common with counter 0) | ||
Reserved (bits 2-7) | |||
Filter8 | Next 2 bits used to set the filter constant as follows: 0 0 73.5 kHz or min. .007 ms pulsewidth 0 1 37.8 kHz or min. .013 ms pulsewidth 1 0 12.8 kHz or min. .04 ms pulsewidth 1 1 1.2 kHz or min. .4 ms pulsewidth | ||
Filter9 | |||
Reserved (bits 10-15) |
Provide Feedback