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 | 0x80n0:02 | 0x80n0:11 | 0x80n0:12 |
---|---|---|---|---|
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 - 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
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. |
Use the corresponding CoE parameters for the respective mode see chapter Operating mode selection .
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: