Free Large Counter Mode Configuration
Original instructions
At a Glance
The configuration of a counting module is stored in the configuration constants (%KW).
The parameters r,m and c shown in the following tables represent the topologic addressing of the module. Each parameter had the following signification:
Configuration Objects
The table below presents the free large counter mode configurable elements.
Label
Address in the configuration
Configurable values
Counting mode
%KWr.m.c.2
(least significant byte)
Free large counter mode. The value of the least significant byte of this word is 8.
IN_A input filter
%KWr.m.c.3
(least significant byte)
The least significant byte can take the following values:
  • 0: none,
  • 1: low,
  • 2: medium,
  • 3: high.
IN_B input filter
%KWr.m.c.3
(most significant byte)
The most significant byte can take the following values:
  • 0: none,
  • 1: low,
  • 2: medium,
  • 3: high.
IN_SYNC input filter
%KWr.m.c.4
(least significant byte)
The least significant byte can take the following values:
  • 0: none,
  • 1: low,
  • 2: medium,
  • 3: high.
IN_EN input filter
%KWr.m.c.4
(most significant byte)
The most significant byte can take the following values:
  • 0: none,
  • 1: low,
  • 2: medium,
  • 3: high.
IN_REF input filter
%KWr.m.c.5
(least significant byte)
The least significant byte can take the following values:
  • 0: none,
  • 1: low,
  • 2: medium,
  • 3: high.
IN_CAP input filter
%KWr.m.c.5
(most significant byte)
The most significant byte can take the following values:
  • 0: none,
  • 1: low,
  • 2: medium,
  • 3: high.
Input power supply fault
%KWr.m.c.2.8
General input/output fault (bit set to 0)
Local (bit set to 1)
Input mode
%KWr.m.c.9
This word can take the following values:
  • 0: A = High, B = Low
  • 1: A = Pulse, B = Direction
  • 2: normal quadrature 1
  • 3: normal quadrature 2
  • 4: normal quadrature 4
  • 5: inverse quadrature 1
  • 6: inverse quadrature 2
  • 7: inverse quadrature 4
Scale factor
%KWr.m.c.6
(least significant byte)
Edit (value in the range 1...255)
Preset mode
%KWr.m.c.10
(least significant byte)
The least significant byte can take the following values:
  • 0: rising edge at IN_SYNC
  • 1: rising edge at IN_REF
  • 2: rising edge at IN_SYNC and IN_REF
  • 3: first rising edge at IN_SYNC and IN_REF at 1
  • 4: first rising edge at IN_SYNC and IN_REF at 0
Capture 0 settings
%KWr.m.c.16.1
Preset condition (bit set to 0)
Falling edge at the IN_CAP input (bit set to 1)
Output block 0
%KWr.m.c.17
This word can take the following values:
  • 0: off,
  • 1: low counter,
  • 2: counter in a window,
  • 3: High counter,
  • 4: pulse = less than the lower threshold (LT),
  • 5: pulse = greater than the lower threshold (LT),
  • 6: pulse = less than the upper threshold (UT),
  • 7: pulse = greater than the upper threshold (UT).
Output block 1
%KWr.m.c.19
This word can take the following values:
  • 0: off,
  • 1: low counter,
  • 2: counter in a window,
  • 3: High counter,
  • 4: pulse = less than the lower threshold (LT),
  • 5: pulse = greater than the lower threshold (LT),
  • 6: pulse = less than the upper threshold (UT),
  • 7: pulse = greater than the upper threshold (UT).
Polarity 0
%KWr.m.c.21.1
Polarity + (bit set to 0)
Polarity - (bit set to 1)
Polarity 1
%KWr.m.c.21.2
Polarity + (bit set to 0)
Polarity - (bit set to 1)
Fault recovery
%KWr.m.c.21.0
Automatic reaction (bit set to 1)
Activated (bit set to 0)
Fallback 0
%KWr.m.c.21.3
None (bit set to 0)
With (bit set to 1)
Fallback 1
%KWr.m.c.21.4
None (bit set to 0)
With (bit set to 1)
Fallback value 0
%KWr.m.c.21.5
0 (bit set to 0)
1 (bit set to 1)
Fallback value 1
%KWr.m.c.21.6
0 (bit set to 0)
1 (bit set to 1)
Output power supply fault
%KWr.m.c.2.9
General input/output fault (bit set to 0)
Offline (bit set to 1)
Pulse width 0
%KWr.m.c.18
Edit (value in the range 1...65535)
Pulse width 1
%KWr.m.c.20
Edit (value in the range 1...65535)
Event
Event number
%KWr.m.c.0
Activated (if activated is selected, the entered event number is coded on the most significant byte of this word)
Deactivated (all bits of the most significant byte of this word are set to 1)