EtherCAT Get Notifications
Libraries:
Simulink Real-Time /
EtherCAT
Description
The EtherCAT Get Notifications block collects notifications from the
EtherCAT® stack and presents them to the output as a 21-element vector of
int32
. At each time step, the block outputs what it has
accumulated and clears itself for the next time step.
The vector contains the number of notifications in element 1
,
followed by up to 20
notification codes. The maximum number of
notifications is 20
. If the bus presents more than
20
notifications to the output, the block discards the newest
notifications and presents the first 20
that were received.
Examples
Ports
Output
Parameters
Tips
To collect notifications:
Add the EtherCAT Get Notifications block to your model.
Connect the EtherCAT Get Notifications block to a File Log block.
Use exported data log data from signal data displayed in the Simulation Data Inspector. See example Get Time and Data Log from EtherCAT Get Notifications Block for the
slrealtime.EtherCAT.filterNotifications
function.
Extended Capabilities
Version History
Introduced in R2020b