The following procedure describes how to configure an external event to activate a task:
Step |
Action |
---|---|
1 |
In the Applications tree tab, add a task. |
2 |
Double-click the task node to associate it with to an external event. |
3 |
In the Type dropdown menu, select External. |
4 |
In the External event dropdown menu, select the event to associate to the task (see the list below). |
This table provides a description of the possible external events to associate to a task:
Event Name |
Description |
---|---|
BLOCK0_I0 |
Task is activated when the input I0 of the block DM72F0 is set to 1. |
BLOCK0_I1 |
Task is activated when the input I1 of the block DM72F0 is set to 1. |
BLOCK0_I2 |
Task is activated when the input I2 of the block DM72F0 is set to 1. |
BLOCK0_I3 |
Task is activated when the input I3 of the block DM72F0 is set to 1. |
BLOCK1_I0I4 |
Task is activated when the input I0 of the block DM72F1 is set to 1. |
BLOCK1_I1I5 |
Task is activated when the input I1 of the block DM72F1 is set to 1. |
BLOCK1_I2I6 |
Task is activated when the input I2 of the block DM72F1 is set to 1. |
BLOCK1_I3I7 |
Task is activated when the input I3 of the block DM72F1 is set to 1. |
BLOCK0_TH0 |
Task is activated when the threshold TH0 of the HSC or the encoder of the block DM72F0 is set to 1. |
BLOCK0_TH1 |
Task is activated when the threshold TH1 of the HSC or the encoder of the block DM72F0 is set to 1. |
BLOCK0_TH2 |
Task is activated when the threshold TH2 of the HSC or the encoder of the block DM72F0 is set to 1. |
BLOCK0_TH3 |
Task is activated when the threshold TH3 of the HSC or the encoder of the block DM72F0 is set to 1. |
BLOCK1_TH0 |
Task is activated when the threshold TH0 of the HSC or the encoder of the block DM72F1 is set to 1. |
BLOCK1_TH1 |
Task is activated when the threshold TH1 of the HSC or the encoder of the block DM72F1 is set to 1. |
BLOCK1_TH2 |
Task is activated when the threshold TH2 of the HSC or the encoder of the block DM72F1 is set to 1. |
BLOCK1_TH3 |
Task is activated when the threshold TH3 of the HSC or the encoder of the block DM72F1 is set to 1. |
ENCODER_TH0 |
Task is activated when the threshold TH0 of an encoder of the Encoder interface is set to 1. |
ENCODER_TH1 |
Task is activated when the threshold TH1 of an encoder of the Encoder interface is set to 1. |
ENCODER_TH2 |
Task is activated when the threshold TH2 of an encoder of the Encoder interface is set to 1. |
ENCODER_TH3 |
Task is activated when the threshold TH3 of an encoder of the Encoder interface is set to 1. |
BLOCK0_HSCSTOP |
Task is activated when the value of the HSC related to the block DM72F0 reaches 0 in One-shot mode. |
BLOCK1_HSCSTOP |
Task is activated when the value of the HSC related to the block DM72F1 reaches 0 in One-shot mode. |
CAN0_SYNC |
Task is activated when the CANopen manager sends a Sync message (enabled when Enable Sync Producing is checked in the CANopen manager configuration window). |