I need to add some new CAN messages to my program but I can't change the ID's on them. The PDO's are greyed out for some reason.
Any help is appreciated!
Could you add the EDS file?
Here you go. I have two messages that aren't greyed out and those are the first ones I added.
Subindices of indices 1600h - 1603h, that store RPDOs mappings (and for what is worth their cousins 1A00 - 1A01 for TPDOs), all have AccessType const.
The EDS says "you can change the IDs (140x and 180x), but not the mappings", and Codesys respects that.
How can I fix that or is it a fixed thing that those are not changeable?
Since it was created by Codesys a couple of hours ago:
CreatedBy=CODESYS V3.X, DeviceEditorCANbusDevice.plugin, V184.108.40.206
ModifiedBy=CODESYS V3.X, DeviceEditorCANbusDevice.plugin, V220.127.116.11
I assume that you can change the PDOs in the CANopen slave editor and then reexport and reimport the EDS.
I had never heard of a EDS file to be honest.... I edited them with add i/o area and the mapped them to the GVL...
Well, you have imported an EDS to have PDO mappings locked.
So how do I change it? Was my original question.
If I understand correctly, you are locked up now.
I'd bet you did the following:
1) Created a CANopen local (slave) device in your Codesys project.
2) Did the mapping.
3) Exported its EDS.
4) Installed the EDS as a device into the Codesys device repository.
5) Added a CANopen Manager (master) in the tree.
6) Added the just installed device underneath the CANopen Manager.
7) Maybe deleted the local device (wrong thing)
Just redo points 2, 3, 4, and 6 and you will be fine.
I had not heard of a EDS file till yesterday so I didn't do anything with exporting or importing...
sgronchi, could you elaborate on that some more? I did the following:
1. added the CANbus device
2. added CAN local device
3. edit I/O area, add area and then the variables
4. mapping to gvl variables
That's all I did and the first ones I did aren't locked.... When you asked for the EDS file, I had to look it up.
Could you post your project?
I don't know which files you need so I uploaded a bunch
if you are using your plc as Canopen Device - no need to change the EDS file,
just add additional PDOs here:
eschwellinger that's exactly what I did but now I can't change the ID's
If you add data through the I/O area, the PDOs in your project result locked, whereas if you manually add indices into the Object Dictionary and then proceed to mapping onto your GVL, then they are editable. Though I do not know why.
P.S.: the .project file is enough ;-)
Log in to post a comment.