To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The attached example shows how to dynamically read EtherCAT slaves and modules. This type of setup is commonly used for scenarios where modules may be hot-swapped on a chassis or new EtherCAT slaves added to the system. A KnowledgeBase on the topic can be found here.
Note the NI-Industrial Communications for EtherCAT uses the NI Scan Engine for data access.
To use this example you must have the following software installed:
This example requires the following hardware.
This add-on is provided as open-source software. If it does not meet your exact specification, you are encouraged to modify the source code to meet your needs. It is not officially supported by National Instruments.
National Instruments does not support this code or guarantee its quality in any way. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.