Operation
Creating a PLC sample program
Build up CAN communication with distributed I/O module
8
60
LDCDS−EL100 EN 8.0
14. Right−click the upper, left window pane and select
Additional Library
from the
context menu to load the libraries.
Load the following libraries one after the other:
– 3S_CanDrv.lib
– 3S_CANopenManager.lib
– 3S_CANopenMaster.lib
For adding a module to the network, its device−specific configuration file must be
added to the project. The settings possible for a CAN module are described in an EDS
file. The EDS files can be found under http://www.lenze.de
15. Go to the
Resources
registry in the Project Explorer and double−click the entry
PLC
Configuration
to add the configuration file to your project.
The "PLC Configuration" window will be opened.
16. Click the menu item
Extras
Add configuration file
and select the EDS file for your
CAN module in the following dialogue.
In the next step, we will add a subelement to the PLC configuration; in our example,
"CanMaster" is the PLC.
17. For this, right−click the Explorer area of the "PLC Configuration" window and select
Append Subelement
CANMaster
from the context menu.