pritesh07
Hi,

Is there a way to alias vars, I want to alias A and make B : A, or B OF A (see below in the VAR section)

example:

TYPE
datatype0 : STRUCT
start_real : REAL := 0.00000000e+000;
start_dint : DINT := 65536;
start_sint : SINT := -128;
start_int : INT := 32767;
finish : BOOL := 2#0;
start_time : TIME := T#500MS;
start_byte : BYTE := 2#1010111;
start_byte0 : BOOL := 2#0000001;
start_string : STRING := 'HELLO';
start_tod : TOD := TOD#12:05:14.56;
start_timer : TIME;
start_array_dint : ARRAY [1..50] OF DINT := [0];
END_STRUCT
END_TYPE

VAR
A : ARRAY [1..20] OF datatype0;
B OF A;
END_VAR
Quote 0 0