Indralogix (CoDeSys) ANY data type

Sinc_green

Member
Join Date
Jan 2008
Location
Grimsby, ON
Posts
71
I'm using IndraWorks LOGIC 11V04.0022, trying to write a multiple move FB in ST. The editor is CoDeSys based, 3.x if I'm not mistaken.

FUNCTION_BLOCK Move3
VAR_INPUT
In1 : ANY;
In2 : ANY;
In3 : ANY;
END_VAR

VAR_OUTPUT
Out1 : ANY;
Out2 : ANY;
Out3 : ANY;
END_VAR

VAR
END_VAR

Out1 := In1;
Out2 := In2;
Out3 := In3;

I can type in the above or use the Auto declare function to create the ANY variables (it's one of the available selections). When I build it tells me I haven't declared Out1-3 and In1-3. Likewise the function block shows no I/O pins. The ANY datatype is not mentioned anywhere in the help files - so why is it selectable and highlighted as a key word in ST? If it isn't for usage similar to above then what is it for?
Thanks!
Bill
 
It is used when you do not know what type it will be in the future but you can not use it in real programming.
there are more words you can use here.
it has to do with type of variable so the syntax is not limiting you in typing.
 

Similar Topics

I've a project using Bosch Rexroth MLCs and Indraworks 11.10 I've had trouble in the past getting a successful connection test while trying to...
Replies
0
Views
1,732
Hello, I am using a Hitachi Micro EHV+ for a small project, and I wanted to have a Web visu, done with Codesys V3.5 SP13 Patch 2. I test the...
Replies
6
Views
286
Hello, I have a requirement to manage the text alignment dynamically. So, for example: 1. English Texts should be displayed from Left in...
Replies
0
Views
90
Hello, I am new to Codesys, and am trying to learn about it for a project we're developing. I've got a couple questions, but first a little...
Replies
1
Views
139
Hi everyone, as this is my first experience with Rockwell Software i would like to know what's the best way to make Enumerations?
Replies
10
Views
499
Back
Top Bottom