Erema Member E Join Date Apr 2015 Location Linz Posts 2 Apr 22, 2015 #1 Hello, is it posible to copmpare a user defined datatyp with a value for example 0. In the manual i find only compare the datatyps int, sint.dint. Thanks for your help best regards from austria Markus Arbeithuber
Hello, is it posible to copmpare a user defined datatyp with a value for example 0. In the manual i find only compare the datatyps int, sint.dint. Thanks for your help best regards from austria Markus Arbeithuber
rdrast Lifetime Supporting Member Join Date Apr 2003 Location South Carolina Lowcountry Posts 5,544 Apr 22, 2015 #2 You can compare an element of a UDT with a value, but you can't compare whole UDT's.
shooter Member S Join Date Sep 2002 Location duketown Posts 2,711 Apr 22, 2015 #3 depending on type of PLC In Codesys not possible, as a structure is stored differently from a simple VAR. However you can compare a complete structure, like var1 EQ var2 (both having same structure)
depending on type of PLC In Codesys not possible, as a structure is stored differently from a simple VAR. However you can compare a complete structure, like var1 EQ var2 (both having same structure)
L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,694 Apr 22, 2015 #4 Erema said: Hello, is it posible to copmpare a user defined datatyp with a value for example 0. In the manual i find only compare the datatyps int, sint.dint. Thanks for your help best regards from austria Markus Arbeithuber Click to expand... You have to create your own user defined function for your user defined data type.
Erema said: Hello, is it posible to copmpare a user defined datatyp with a value for example 0. In the manual i find only compare the datatyps int, sint.dint. Thanks for your help best regards from austria Markus Arbeithuber Click to expand... You have to create your own user defined function for your user defined data type.