Ask our Experts
Didn't find what you are looking for? Ask our experts!
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-04-15 01:48 PM
Hello
I would need to know if there is a simple way to manually assign names to the Device DDT type I/O variables on M580.
For example, exporting the I/O names from Eplan or similar to a file and somehow importing them into the Control Expert Data Editor list (in this case to the data xxxxCanalxxxx.VALUE)
Five or six variables can be write down well by hand, but 500 or 1000 are a little more work...
Thank you
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-04-17 02:49 PM
Hi Aqui,
The attached has not been moderated yet so I can't see exactly what you are trying to do and with what devices types, but I am assuming you are trying to alias a variable to a channel using the Device DDT. You can write a script to generate the following:
<VariablesExchangeFile>
<dataBlock>
<variables name="LH001" typeName="T_U_DIS_STD_CH_IN">
<comment>Canal Level Switch 1 Field Input</comment>
<attribute name="AliasOf" value="PLC0_D00_R01_S04_DDI_3232.DIS_CH_IN[0]" />
</variables>
<variables name="LH002" typeName="T_U_DIS_STD_CH_IN">
<comment>Canal Level Switch 2 Field Input</comment>
<attribute name="AliasOf" value="PLC0_D00_R01_S04_DDI_3232.DIS_CH_IN[1]" />
</variables>
</dataBlock>
</VariablesExchangeFile>
Then:
LH001.VALUE is equivalent to PLC0_D00_R01_S04_DDI_3232.DIS_CH_IN[0].VALUE
LH002.VALUE is equivalent to PLC0_D00_R01_S04_DDI_3232.DIS_CH_IN[1].VALUE
Hopefully that helps. The structures and types will vary with different I/O card types.
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.