I have an Anybus Communicator ABC3013-A.
I can write bytes from the PLC to the Anybus device and from the Anybus device to a serial device. This works. I have a working blinky example where I can toggle an IO.
I’m now trying to modify the GSDML file but I run into issues.
I’ve modified ID_SUBMODULE_OUT_0004, but I canot see the TextId or Description field in CODESYS.
<VirtualSubmoduleItem ID="ID_SUBMODULE_OUT_0004" SubmoduleIdentNumber="0x10000004" MayIssueProcessAlarm="false">
<IOData>
<Output Consistency="All items consistency">
<DataItem DataType="Unsigned32" TextId="T_ID_DATAITEM_BLOB" UseAsBits="true">
<BitDataItem BitOffset="0" TextId="LED0" Description="LED 0"/>
<BitDataItem BitOffset="2" TextId="LED1"/>
</DataItem>
</Output>
</IOData>
<ModuleInfo>
<Name TextId="T_ID_SUBMODULE_NAME"/>
<InfoText TextId="T_ID_INFO_TEXT_SUBMODULE"/>
</ModuleInfo>
</VirtualSubmoduleItem>
In CODESYS the two bitfields show up, but the description field doesn’t show up.
I would like to do the following:
- Add descriptive names to certain bitfields that will show up in CODESYS
- add a float32 so the PLC can send 2 variables (the bitfields and some floats)
- add a unit to the float field, in my case degrees Celsius
- do the same for inputs