74 lines
1.5 KiB
Plaintext
74 lines
1.5 KiB
Plaintext
TYPE "UDT Complicada"
|
|
VERSION : 0.1
|
|
STRUCT
|
|
"String" : String;
|
|
String_1 : String[60];
|
|
"Bool" : Bool;
|
|
Bool_1 : Array[0..1] of Bool;
|
|
Bool_2 : Array[0..51] of Bool;
|
|
"Int" : Int;
|
|
"Hola como Estas" : Int;
|
|
"No se" : Int;
|
|
"Real" : Array[0..10] of Real;
|
|
Bool_3 : Bool;
|
|
Bool_4 : Bool;
|
|
Bool_5 : Array[0..7] of Bool;
|
|
Bool_6 : Array[0..15] of Bool;
|
|
Int_1 : Int;
|
|
"Time" : Time;
|
|
Time_of : Time_Of_Day;
|
|
"Word" : Word;
|
|
END_STRUCT;
|
|
|
|
END_TYPE
|
|
|
|
TYPE "UDTComp"
|
|
VERSION : 0.1
|
|
STRUCT
|
|
"String" : String;
|
|
String_1 : String[60];
|
|
"Bool" : Bool;
|
|
Bool_1 : Array[0..1] of Bool;
|
|
Bool_2 : Array[0..51] of Bool;
|
|
"Int" : Int;
|
|
"Hola como Estas" : Int;
|
|
"No se" : Int;
|
|
"Real" : Array[0..10] of Real;
|
|
Bool_3 : Bool;
|
|
Bool_4 : Bool;
|
|
Bool_5 : Array[0..7] of Bool;
|
|
Bool_6 : Array[0..15] of Bool;
|
|
Int_1 : Int;
|
|
"Time" : Time;
|
|
Time_of : Time_Of_Day;
|
|
"Word" : Word;
|
|
END_STRUCT;
|
|
|
|
END_TYPE
|
|
|
|
DATA_BLOCK "Data_block_1"
|
|
{ S7_Optimized_Access := 'FALSE' }
|
|
VERSION : 0.1
|
|
NON_RETAIN
|
|
STRUCT
|
|
asa : Array[1..8] of Byte;
|
|
b0 : Bool;
|
|
b1 : Bool;
|
|
s5 : S5Time;
|
|
s : LInt;
|
|
s_1 : WString;
|
|
s_2 : UInt;
|
|
ss : LReal;
|
|
b2 : Int;
|
|
b3 : Array[0..15] of Bool;
|
|
b4 : Array[0..11] of Bool;
|
|
"Udt" { S7_SetPoint := 'False'} : "UDTd Complicada";
|
|
udt_1 : "UDTComp";
|
|
END_STRUCT;
|
|
|
|
|
|
BEGIN
|
|
|
|
END_DATA_BLOCK
|
|
|