Compare a User Defined Datatyp with a value

Erema

Member
Join Date
Apr 2015
Location
Linz
Posts
2
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
 
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)
 
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

You have to create your own user defined function for your user defined data type.
 

Similar Topics

Help please. Im new to Omron and have a machine down. I have a compare = for barcode label scan. I've attached two pics. On the Mnemonics you can...
Replies
4
Views
622
Hi everyone! Accidentally closed it and it wont appear again. Checked and unchecked the option and seem to make no difference. Running v7.10.00...
Replies
16
Views
1,905
I'm working on an array that contains a UDT of 5 Items Array[4] DataType[0] - Part 1 - Part 2 - Part 3 - Part 4...
Replies
1
Views
839
Hi. I have 2 files where I would like to see the ladder logic differences (similar to the Rockwell compare function). I am using TISoft Siemens...
Replies
1
Views
1,263
Hello experts, I am just starting with AB programing, I have a questions regarding a compare done in an old RSlogix500 and causing me issues when...
Replies
5
Views
1,937
Back
Top Bottom