It is not recommended to use CANOpen-related variables in other tasks but MAST because it can create instabilities.
For example here is a typical PDO mapping from an ATV71:
“_” is added at the end of each variable to clearly mark that they come from CANOpen.
Now to be able to use these variables in other tasks (like Freewheel_Task) global variables have to be created. These global variables act as an interface between MAST and Freewheel_Task.
For example it can be:
CMD_Eject : UINT;
LFRD_Eject : INT;
ETA_Eject : UINT;
RFRD_Eject : INT;
LCR_Eject : UINT;
Code has to be added in MAST task to copy from/to these variables:
CMD_Eject_ := CMD_Eject; // RPDO
LFRD_Eject_ := LFRD_Eject; // RPDO
ETA_Eject := ETA_Eject_; // TPDO
RFRD_Eject := RFRD_Eject_; // TPDO
LCR_Eject := LCR_Eject_; // TPDO
Now CANOpen-related variables are used in MAST task only and the machine should run without trouble.
For example here is a typical PDO mapping from an ATV71:
“_” is added at the end of each variable to clearly mark that they come from CANOpen.
Now to be able to use these variables in other tasks (like Freewheel_Task) global variables have to be created. These global variables act as an interface between MAST and Freewheel_Task.
For example it can be:
CMD_Eject : UINT;
LFRD_Eject : INT;
ETA_Eject : UINT;
RFRD_Eject : INT;
LCR_Eject : UINT;
Code has to be added in MAST task to copy from/to these variables:
CMD_Eject_ := CMD_Eject; // RPDO
LFRD_Eject_ := LFRD_Eject; // RPDO
ETA_Eject := ETA_Eject_; // TPDO
RFRD_Eject := RFRD_Eject_; // TPDO
LCR_Eject := LCR_Eject_; // TPDO
Now CANOpen-related variables are used in MAST task only and the machine should run without trouble.
Publikováno pro: Schneider Electric Česká republika


Potřebujete pomoc?
Nástroj pro výběr produktů
Rychle a snadno vyhledávejte správné produkty a příslušenství pro vaše aplikace.
Získejte nabídku
Poptejte nás online a náš lokální specialista se s vámi spojí!
Kde nakoupit?
Jednoduše najděte nejbližšího distributora výrobků Schneider Electric ve vašem okolí.
Centrum nápovědy
Zdroje podpory pro všechny své potřeby najdete na jednom místě.