Hi,
I am using COMX-CA-RE/PLS.
I want to define a domain (sub)objects for asynchronous data transfer and am running into problems.
A. for an object that the MN will write: I create object 0x2101 with parameters: access type = 8 (indexed), code = 9 (record), data type = 0xF (domain, not sure if this is right)
Then I create subobject 0x01 with parameters: mode = 0 (storage), direction = 1 (input), access rights = 0x00ff (readable and writeable always), type = 0xF (domain), length = 11 ( I want 11 bytes of data, not sure how to specify that for a domain).
When the MN tries to write to 0x2101/0x01 the CN responds with abort/0x06010002 = attempt to write a read-only object. Why?
B. for the object that the MN will read: I create object 0x3101 and subobject 0x01 with the same parameters as above except that the subobject has direction = 2 (output).
When the MN reads the object, the CN sends only one byte. Why? or: How do I specify the size of a domain?
Thank you
- Tom
Andreas Jacob
Hilscher Gesellschaft fuer Systemautomation mbH
Hi Tom,
the object must be a SimpleVariable. It makes no sense to generate that as object with subindexes.
So the create object would be
access type = 0, code = 7 (simple var), data type = 0xF
It does respond, so because it tries to write subindex 0 which is the number of subelements then. (which is write-protected depending on the parameters).
Regards
AJ