Hello,
I am using a B40 card on the ST platform and am running into an issue when trying to have the ESI generator grab the PDO/ADI subindex names from the B40.
B40 FW is 1.11
ESI Generator is 1.8.0
Driver is ABP 7.59.01 (2018-05-17) ABCC Driver 5.05.02 (2018-08-30)
In my code I have an example ADI set up as:
{ ECT_ADDRESS(0x7006), "EXAMPLE SLOT 1", ABP_UINT8, 3, APPL_WRITE_MAP_READ_ACCESS_DESC, { { NULL, NULL } }, appl_ExampleStruct, NULL, NULL },
the example struct is as follows:
static const AD_StructDataType appl_ExampleStruct[] =
{
{ "Setpoint Type A", ABP_FLOAT, 1, ACYC_RW | CYC_R, 0, { { &arrayslot[0], NULL } } },
{ "Setpoint Type B", ABP_FLOAT, 1, ACYC_RW | CYC_R, 0, { { &arrayslot[1], NULL } } },
{ "Setpoint Type C", ABP_FLOAT, 1, ACYC_RW | CYC_R, 0, { { &arrayslot[2], NULL } } },
};
When I generate the esi file I get the top level name but not the sub name:
<Object>
<Index>#x7006</Index>
<Name>EXAMPLE SLOT 1</Name>
<Type>DT7006</Type>
<BitSize>112</BitSize>
<Info>
<SubItem>
<Name>Highest sub-index supported</Name>
<Info />
</SubItem>
<SubItem>
<Name>EXAMPLE SLOT 1.SubIndex 001</Name>
<Info />
</SubItem>
<SubItem>
<Name>EXAMPLE SLOT 1.SubIndex 002</Name>
<Info />
</SubItem>
<SubItem>
<Name>EXAMPLE SLOT 1.SubIndex 003</Name>
<Info />
</SubItem>
</Info>
</Object>
I would expect “Setpoint Type A” “Setpoint Type B” “Setpoint Type C” to be in the object name.
I can manually edit the file but wondering if this is a restriction in the B40 or do I need to turn on a specific feature?