Comments (7)
Thanks @trojanobelix . I can confirm that this commit fixes the problem. Although user should note that a variable without default value might have any random values if they use them before assigning a value first.
from canopeneditor.
Can not reproduce. Can you provide the xdd and the object index that is missing.
from canopeneditor.
Here is a sample. Object x2000 does not add subobject 0x02 to the generated files.
MissingValuesXdd.zip
from canopeneditor.
Do you expect more than this (from your file)?
.x2000_testrecord = {
.highestSub_indexSupported = 0x02, <===========
.testsubwithvalue = 0x00000000
}
OD_obj_record_t o_2000_testrecord[3]; <================== SUM(Subs 0,1,2) =3
.o_2000_testrecord = {
{
.dataOrig = &OD_RAM.x2000_testrecord.highestSub_indexSupported,
.subIndex = 0,
.attribute = ODA_SDO_R,
.dataLength = 1
},
{
.dataOrig = &OD_RAM.x2000_testrecord.testsubwithvalue,
.subIndex = 1,
.attribute = ODA_SDO_RW | ODA_MB,
.dataLength = 4
},
{
.dataOrig = NULL,
.subIndex = 2, <===================
.attribute = ODA_SDO_RW | ODA_MB,
.dataLength = 4
}
}
from canopeneditor.
Thanks for your response.
According these sub objects, should we see .testsubwithoutvalue
somewhere ? and be able to access it like OD_RAM.testrecord.testsubwithoutvalue ?
from canopeneditor.
Try bugfix branch c121291
from canopeneditor.
Sorry, I missed that issue.
CANopenNode V4 actually does not require data storage for a variable. Instead application may define own callbacks for reading or writing OD entry.
See also #73 (comment)
from canopeneditor.
Related Issues (20)
- refactor CanopenEditor HOT 3
- Remove CanOpenNodeXML (inc bridge)
- Move import & export part of eds away from eds.cs
- Can't add item into OD HOT 6
- CanopenEditor: Exporting to XDD v1.0 format sets wrong type on "Highest sub-index supported" HOT 2
- System.ArgumentException with grid columns HOT 2
- Question: are the generated C files subject to (L)GPL? HOT 5
- Build and run instructions? HOT 2
- LSS Master/Slave parameters does not export to OD.c/h HOT 5
- Concrete Node Id does not propagate to proper value of $NODEID HOT 1
- Impossible to import .eds file from Weidmueller UR20-FBC-CAN HOT 5
- Column span out of the range of valid values (INT32) HOT 2
- Layout of PDO tab oversize out of window. HOT 3
- "not specified" type for Domain objects HOT 14
- Hello, about using CANopenEditor configuration SRDO problem HOT 3
- An error occurred while I was editing PDO obiect dictionary, such that I lose my modification. HOT 2
- Unsigned32 Variable in TPDO doesn't have proper data length in bits HOT 7
- EDS file seems to generate wrong access type for PLC TPDO and RPDO HOT 3
- PDO Mapping 'Invalid' not work while 'Export CanOpenNode' HOT 2
- TPDO and RPDO Assigned COB IDs HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canopeneditor.