Functions

Switching the outputs

Depending on the counter value, output 1 and output 2 can be set automatically by the EL1502.

To switch the output allocated to the respective counter on or off

  • use the following CoE settings:
    • 0x80n0:01 = TRUE, if the output is to be switched on when the counter value (incremental counting) reaches 0x80n0:11
    • 0x80n0:02 = TRUE, if the output is to be switched off when the counter value (incremental counting) reaches 0x80n0:12
  • set Control.EnableOutputFunctions to TRUE

The output switches when the counter value is reached.

Setting of a single switching threshold value

In general the output remains FALSE when:

  • 0x80n0:11 „Switch on threshold value“ > 0x80n0:12 „Switch off threshold value“ or
  • 0x80n0:12 „Switch off threshold value“ = 0.

If only one switching threshold value is to be specified, the CoE parameters can be specified according to the following table.

Mode

0x80n0:01
Enable function to
set output

0x80n0:02
Enable function to
reset output

0x80n0:11
Switch on
threshold value

0x80n0:12
Switch off
threshold value

Switching on threshold value

TRUE

FALSE

threshold value

-

Switching off threshold value

TRUE

TRUE

0

threshold value

  • With switching on threshold value:
    • Until the switch on threshold value is reached (Counter value < Switch on threshold value):
      the output remains FALSE
    • From reaching the switch on threshold value (Counter value ≥ Switch on threshold value):
      the output becomes TRUE
  • Functions 1:
    Status of the output with switch on threshold value
  • With switching off threshold value:
    • Until the switch off threshold value is reached (Counter value < Switch off threshold value):
      the output remains TRUE
    • From reaching the switch off value (Counter value ≥ Switch off threshold value):
      the output becomes FALSE
Functions 2:
Status of the output with switch off threshold value

Counting direction inverted

With decremental counting the reverse switching action occurs when the value falls below the parameterized switching counter value from 0x80n0:11/12, i.e. output 1 is switched off if 0x80n0:01 = TRUE and the value falls below 0x80n0:11.

Activating the output circuit

If the parameterized switching counter value from 0x80n0:11/12 has already been reached/exceeded and Control.EnableOutputFunctions (0x70n0:01) is not set to TRUE, the switching task is not executed. If Control.EnableOutputFunctions (0x70n0:01) is then set to TRUE, the output is switched immediately.
Similarly, retrospective enabling of 0x80n0:01/02 immediately affects the output if the switching condition is met.
Example of the logical "On" condition for output 1:
Output 1 = (Counter value >= 0x80n0:11) and (0x80n0:01 = TRUE) and (Control.EnableOutputFunctions (0x70n0:01) = TRUE)

Use the corresponding CoE parameters for the respective mode see chapter Operating mode selection .

Functions 3:
Parameters for the output functions, using the example of 0x8020

Counter Reload

If the internal counter should only count up to (and including) a limit value and automatically reset itself to 0 when the value is exceeded, this can be parameterized as follows:

Functions 4:
Counter Reload parameterized to 30