[RMP 10.4.3]
I’m trying to add support for a Beckhoff analog input card, EL3612.
This card has a number of “meta” inputs that describe whether the analog input is meaningful (under range, over range, error, …). Some of these inputs are actually a 2-bit words.
Here are the default PDO entries.
Index Size/Off Type Value F/W Addr Name
102 1/1928 BOOL 0 0x031469b0 Term 15 (Beckhoff - AI2).AI Inputs Channel 1.Underrange
103 1/1929 BOOL 0 0x03146bc8 Term 15 (Beckhoff - AI2).AI Inputs Channel 1.Overrange
104 2/1930 BIT2 0 0x03146de0 Term 15 (Beckhoff - AI2).AI Inputs Channel 1.Limit 1
105 2/1932 BIT2 0 0x03146ff8 Term 15 (Beckhoff - AI2).AI Inputs Channel 1.Limit 2
106 1/1934 BOOL 0 0x03147210 Term 15 (Beckhoff - AI2).AI Inputs Channel 1.Error
107 1/1942 BOOL 0 0x03147428 Term 15 (Beckhoff - AI2).AI Inputs Channel 1.TxPDO State
108 1/1943 BOOL 1 0x03147640 Term 15 (Beckhoff - AI2).AI Inputs Channel 1.TxPDO Toggle
109 32/1944 DINT 24576 0x03147858 Term 15 (Beckhoff - AI2).AI Inputs Channel 1.Value
110 1/1976 BOOL 0 0x03147a70 Term 15 (Beckhoff - AI2).AI Inputs Channel 2.Underrange
111 1/1977 BOOL 0 0x03147c88 Term 15 (Beckhoff - AI2).AI Inputs Channel 2.Overrange
112 2/1978 BIT2 0 0x03147ea0 Term 15 (Beckhoff - AI2).AI Inputs Channel 2.Limit 1
113 2/1980 BIT2 0 0x031480b8 Term 15 (Beckhoff - AI2).AI Inputs Channel 2.Limit 2
114 1/1982 BOOL 0 0x031482d0 Term 15 (Beckhoff - AI2).AI Inputs Channel 2.Error
115 1/1990 BOOL 0 0x031484e8 Term 15 (Beckhoff - AI2).AI Inputs Channel 2.TxPDO State
116 1/1991 BOOL 1 0x03148700 Term 15 (Beckhoff - AI2).AI Inputs Channel 2.TxPDO Toggle
117 32/1992 DINT 67072 0x03148918 Term 15 (Beckhoff - AI2).AI Inputs Channel 2.Value
The item(s) in question are of type BIT2
.
How do I make these items analog inputs for this device type only? The normal behavior in NodeInfo involves pattern matching, which means it will apply to all/most devices.
For example, this addition will match the BIT2 items for this device.
<AnalogInputItems>
...
<AnalogInput Size="2" Has="(Beckhoff - AI">.Limit</AnalogInput>
...
</AnalogInputItems>
I would prefer not to do it this way since this hardly seems generic enough.
Are there elements I can add to the product element that will accomplish what I want?
<Product Code="0x0E1C3052">
<ProductName>EL3612 2Ch. Ana. Input, current, 0…20 mA, 24 bit</ProductName>
<ShortName>Beckhoff - AI2</ShortName>
<ItemSubType>Term</ItemSubType>
</Product>