From 6701f3ab84285a729f8ab39cd0726878aab1650c Mon Sep 17 00:00:00 2001 From: moritzortmeier1 Date: Mon, 1 Jul 2024 23:49:53 +0200 Subject: [PATCH 01/13] Added LWORD_TO_BOOLS.fct in splitting directory to utils-1.0.0 --- .../typelib/splitting/LWORD_TO_BOOLS.fct | 295 ++++++++++++++++++ 1 file changed, 295 insertions(+) create mode 100644 data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_BOOLS.fct diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_BOOLS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_BOOLS.fct new file mode 100644 index 0000000000..e1d3a7a015 --- /dev/null +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_BOOLS.fct @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 2960dff96524c144f0314047e1468efe264d53b2 Mon Sep 17 00:00:00 2001 From: moritzortmeier1 Date: Mon, 1 Jul 2024 23:51:35 +0200 Subject: [PATCH 02/13] Added LWORD_TO_QUARTERS.fct in splitting directory to utils-1.0.0 --- .../typelib/splitting/LWORD_TO_QUARTERS.fct | 168 ++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_QUARTERS.fct diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_QUARTERS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_QUARTERS.fct new file mode 100644 index 0000000000..c775830848 --- /dev/null +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_QUARTERS.fct @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From c0252a7df34818cc2d7da7a80b4f39294f020edd Mon Sep 17 00:00:00 2001 From: Moritz Ortmeier Date: Mon, 8 Jul 2024 21:58:30 +0200 Subject: [PATCH 03/13] rename LWORD_TO_BOOLS.fct --- .../{LWORD_TO_BOOLS.fct => SPLITTING_LWORD_TO_BOOLS.fct} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename data/typelibrary/utils-1.0.0/typelib/splitting/{LWORD_TO_BOOLS.fct => SPLITTING_LWORD_TO_BOOLS.fct} (98%) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_BOOLS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_TO_BOOLS.fct similarity index 98% rename from data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_BOOLS.fct rename to data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_TO_BOOLS.fct index e1d3a7a015..4b4c2beee4 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_BOOLS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_TO_BOOLS.fct @@ -1,5 +1,5 @@ - + @@ -151,7 +151,7 @@ - Date: Mon, 8 Jul 2024 22:01:49 +0200 Subject: [PATCH 04/13] rename LWORD_TO_QUARTERS.fct --- ...{LWORD_TO_QUARTERS.fct => SPLITTING_LWORD_TO_QUARTERS.fct} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename data/typelibrary/utils-1.0.0/typelib/splitting/{LWORD_TO_QUARTERS.fct => SPLITTING_LWORD_TO_QUARTERS.fct} (98%) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_QUARTERS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_TO_QUARTERS.fct similarity index 98% rename from data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_QUARTERS.fct rename to data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_TO_QUARTERS.fct index c775830848..02c61247c8 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/LWORD_TO_QUARTERS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_TO_QUARTERS.fct @@ -1,5 +1,5 @@ - + @@ -87,7 +87,7 @@ - Date: Tue, 9 Jul 2024 21:52:23 +0200 Subject: [PATCH 05/13] change _TO_ to _INTO_ --- ...TING_LWORD_TO_BOOLS.fct => SPLITTING_LWORD_INTO_BOOLS.fct} | 4 ++-- ...WORD_TO_QUARTERS.fct => SPLITTING_LWORD_INTO_QUARTERS.fct} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename data/typelibrary/utils-1.0.0/typelib/splitting/{SPLITTING_LWORD_TO_BOOLS.fct => SPLITTING_LWORD_INTO_BOOLS.fct} (98%) rename data/typelibrary/utils-1.0.0/typelib/splitting/{SPLITTING_LWORD_TO_QUARTERS.fct => SPLITTING_LWORD_INTO_QUARTERS.fct} (98%) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_TO_BOOLS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_INTO_BOOLS.fct similarity index 98% rename from data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_TO_BOOLS.fct rename to data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_INTO_BOOLS.fct index 4b4c2beee4..76e0be95cd 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_TO_BOOLS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_INTO_BOOLS.fct @@ -1,5 +1,5 @@ - + @@ -151,7 +151,7 @@ - - + @@ -87,7 +87,7 @@ - Date: Tue, 9 Jul 2024 22:01:28 +0200 Subject: [PATCH 06/13] change SPLITTING to SPLIT --- ...ITTING_LWORD_INTO_BOOLS.fct => SPLIT_LWORD_INTO_BOOLS.fct} | 4 ++-- ..._LWORD_INTO_QUARTERS.fct => SPLIT_LWORD_INTO_QUARTERS.fct} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename data/typelibrary/utils-1.0.0/typelib/splitting/{SPLITTING_LWORD_INTO_BOOLS.fct => SPLIT_LWORD_INTO_BOOLS.fct} (98%) rename data/typelibrary/utils-1.0.0/typelib/splitting/{SPLITTING_LWORD_INTO_QUARTERS.fct => SPLIT_LWORD_INTO_QUARTERS.fct} (98%) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_INTO_BOOLS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct similarity index 98% rename from data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_INTO_BOOLS.fct rename to data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct index 76e0be95cd..07f33ba016 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLITTING_LWORD_INTO_BOOLS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct @@ -1,5 +1,5 @@ - + @@ -151,7 +151,7 @@ - - + @@ -87,7 +87,7 @@ - Date: Mon, 15 Jul 2024 20:29:30 +0200 Subject: [PATCH 07/13] function comment at the top, use bitwise access --- .../splitting/SPLIT_LWORD_INTO_BOOLS.fct | 130 +++++++++--------- .../splitting/SPLIT_LWORD_INTO_QUARTERS.fct | 2 +- 2 files changed, 66 insertions(+), 66 deletions(-) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct index 07f33ba016..c9ba12fe17 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct @@ -152,6 +152,7 @@ diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct index 7f6a374067..9a0054e007 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct @@ -88,6 +88,7 @@ Date: Wed, 17 Jul 2024 22:24:16 +0200 Subject: [PATCH 08/13] delete var_input comment --- .../utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct | 4 ++-- .../typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct index c9ba12fe17..4cfcbd60d9 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct @@ -81,7 +81,7 @@ - + @@ -155,7 +155,7 @@ (* this Function extracts the 64 BOOLS from a lword *) VAR_INPUT - IN : LWORD; // LWORD Input + IN : LWORD; END_VAR VAR_OUTPUT diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct index 9a0054e007..bcd6345760 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct @@ -49,7 +49,7 @@ - + @@ -91,7 +91,7 @@ (* this Function extracts the 32 QUARTER BYTE from a lword *) VAR_INPUT - IN : LWORD; // LWORD Input + IN : LWORD; END_VAR VAR_OUTPUT From 4f8ebf1ccb75029d548f33953362b0ee2ce8cffc Mon Sep 17 00:00:00 2001 From: Moritz Ortmeier Date: Sun, 21 Jul 2024 22:48:46 +0200 Subject: [PATCH 09/13] description comment above FUNCTION --- .../typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct | 6 +++--- .../typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct index 4cfcbd60d9..5bdef7cc13 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct @@ -1,5 +1,5 @@ - + @@ -151,8 +151,8 @@ - - + @@ -87,8 +87,8 @@ - Date: Wed, 24 Jul 2024 07:55:36 +0200 Subject: [PATCH 10/13] change SHFT to SHIFT --- .../splitting/SPLIT_LWORD_INTO_QUARTERS.fct | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct index 4ab3c57e9a..dc89ac4f01 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct @@ -8,12 +8,13 @@ - + - + + @@ -52,6 +53,7 @@ + @@ -129,14 +131,14 @@ VAR_OUTPUT OUT_31 : BYTE; // QUARTER BYTE 31 END_VAR -OUT_00 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_00, SHFT_QUARTER_00)); -OUT_01 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_01, SHFT_QUARTER_01)); -OUT_02 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_02, SHFT_QUARTER_02)); -OUT_03 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_03, SHFT_QUARTER_03)); -OUT_04 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_04, SHFT_QUARTER_04)); -OUT_05 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_05, SHFT_QUARTER_05)); -OUT_06 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_06, SHFT_QUARTER_06)); -OUT_07 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_07, SHFT_QUARTER_07)); +OUT_00 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_00, SHIFT_QUARTER_00)); +OUT_01 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_01, SHIFT_QUARTER_01)); +OUT_02 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_02, SHIFT_QUARTER_02)); +OUT_03 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_03, SHIFT_QUARTER_03)); +OUT_04 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_04, SHIFT_QUARTER_04)); +OUT_05 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_05, SHIFT_QUARTER_05)); +OUT_06 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_06, SHIFT_QUARTER_06)); +OUT_07 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_07, SHIFT_QUARTER_07)); OUT_08 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_08, SHIFT_QUARTER_08)); OUT_09 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_09, SHIFT_QUARTER_09)); OUT_10 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_10, SHIFT_QUARTER_10)); From 93bd180599b8c5f66cdde030d864545646d6a959 Mon Sep 17 00:00:00 2001 From: Moritz Ortmeier Date: Wed, 24 Jul 2024 08:00:00 +0200 Subject: [PATCH 11/13] added quartercont.gcf --- .../typelib/const/quarterconst.gcf | 250 ++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 data/typelibrary/utils-1.0.0/typelib/const/quarterconst.gcf diff --git a/data/typelibrary/utils-1.0.0/typelib/const/quarterconst.gcf b/data/typelibrary/utils-1.0.0/typelib/const/quarterconst.gcf new file mode 100644 index 0000000000..3dae4198c3 --- /dev/null +++ b/data/typelibrary/utils-1.0.0/typelib/const/quarterconst.gcf @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 23f463dcc69878f934bd4c2b37e5e9c011ef30eb Mon Sep 17 00:00:00 2001 From: Moritz Ortmeier Date: Wed, 24 Jul 2024 08:16:00 +0200 Subject: [PATCH 12/13] readd EventInputs/Outputs comments --- .../typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct index dc89ac4f01..f1cb9bef33 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct @@ -8,13 +8,12 @@ - + - - + @@ -53,7 +52,6 @@ - From 53140f6920f2c7fe78b0255dd18cfc98e64d5b3d Mon Sep 17 00:00:00 2001 From: Moritz Ortmeier Date: Wed, 24 Jul 2024 21:23:04 +0200 Subject: [PATCH 13/13] change OUT Variables to BIT and QUARTER_BYTE --- .../splitting/SPLIT_LWORD_INTO_BOOLS.fct | 512 +++++++++--------- .../splitting/SPLIT_LWORD_INTO_QUARTERS.fct | 256 ++++----- 2 files changed, 384 insertions(+), 384 deletions(-) diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct index 5bdef7cc13..2faecc79ac 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_BOOLS.fct @@ -14,140 +14,140 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -159,136 +159,136 @@ VAR_INPUT END_VAR VAR_OUTPUT - OUT_00 : BOOL; // BIT 00 - OUT_01 : BOOL; // BIT 01 - OUT_02 : BOOL; // BIT 02 - OUT_03 : BOOL; // BIT 03 - OUT_04 : BOOL; // BIT 04 - OUT_05 : BOOL; // BIT 05 - OUT_06 : BOOL; // BIT 06 - OUT_07 : BOOL; // BIT 07 - OUT_08 : BOOL; // BIT 08 - OUT_09 : BOOL; // BIT 09 - OUT_10 : BOOL; // BIT 10 - OUT_11 : BOOL; // BIT 11 - OUT_12 : BOOL; // BIT 12 - OUT_13 : BOOL; // BIT 13 - OUT_14 : BOOL; // BIT 14 - OUT_15 : BOOL; // BIT 15 - OUT_16 : BOOL; // BIT 16 - OUT_17 : BOOL; // BIT 17 - OUT_18 : BOOL; // BIT 18 - OUT_19 : BOOL; // BIT 19 - OUT_20 : BOOL; // BIT 20 - OUT_21 : BOOL; // BIT 21 - OUT_22 : BOOL; // BIT 22 - OUT_23 : BOOL; // BIT 23 - OUT_24 : BOOL; // BIT 24 - OUT_25 : BOOL; // BIT 25 - OUT_26 : BOOL; // BIT 26 - OUT_27 : BOOL; // BIT 27 - OUT_28 : BOOL; // BIT 28 - OUT_29 : BOOL; // BIT 29 - OUT_30 : BOOL; // BIT 30 - OUT_31 : BOOL; // BIT 31 - OUT_32 : BOOL; // BIT 32 - OUT_33 : BOOL; // BIT 33 - OUT_34 : BOOL; // BIT 34 - OUT_35 : BOOL; // BIT 35 - OUT_36 : BOOL; // BIT 36 - OUT_37 : BOOL; // BIT 37 - OUT_38 : BOOL; // BIT 38 - OUT_39 : BOOL; // BIT 39 - OUT_40 : BOOL; // BIT 40 - OUT_41 : BOOL; // BIT 41 - OUT_42 : BOOL; // BIT 42 - OUT_43 : BOOL; // BIT 43 - OUT_44 : BOOL; // BIT 44 - OUT_45 : BOOL; // BIT 45 - OUT_46 : BOOL; // BIT 46 - OUT_47 : BOOL; // BIT 47 - OUT_48 : BOOL; // BIT 48 - OUT_49 : BOOL; // BIT 49 - OUT_50 : BOOL; // BIT 50 - OUT_51 : BOOL; // BIT 51 - OUT_52 : BOOL; // BIT 52 - OUT_53 : BOOL; // BIT 53 - OUT_54 : BOOL; // BIT 54 - OUT_55 : BOOL; // BIT 55 - OUT_56 : BOOL; // BIT 56 - OUT_57 : BOOL; // BIT 57 - OUT_58 : BOOL; // BIT 58 - OUT_59 : BOOL; // BIT 59 - OUT_60 : BOOL; // BIT 60 - OUT_61 : BOOL; // BIT 61 - OUT_62 : BOOL; // BIT 62 - OUT_63 : BOOL; // BIT 63 + BIT_00 : BOOL; + BIT_01 : BOOL; + BIT_02 : BOOL; + BIT_03 : BOOL; + BIT_04 : BOOL; + BIT_05 : BOOL; + BIT_06 : BOOL; + BIT_07 : BOOL; + BIT_08 : BOOL; + BIT_09 : BOOL; + BIT_10 : BOOL; + BIT_11 : BOOL; + BIT_12 : BOOL; + BIT_13 : BOOL; + BIT_14 : BOOL; + BIT_15 : BOOL; + BIT_16 : BOOL; + BIT_17 : BOOL; + BIT_18 : BOOL; + BIT_19 : BOOL; + BIT_20 : BOOL; + BIT_21 : BOOL; + BIT_22 : BOOL; + BIT_23 : BOOL; + BIT_24 : BOOL; + BIT_25 : BOOL; + BIT_26 : BOOL; + BIT_27 : BOOL; + BIT_28 : BOOL; + BIT_29 : BOOL; + BIT_30 : BOOL; + BIT_31 : BOOL; + BIT_32 : BOOL; + BIT_33 : BOOL; + BIT_34 : BOOL; + BIT_35 : BOOL; + BIT_36 : BOOL; + BIT_37 : BOOL; + BIT_38 : BOOL; + BIT_39 : BOOL; + BIT_40 : BOOL; + BIT_41 : BOOL; + BIT_42 : BOOL; + BIT_43 : BOOL; + BIT_44 : BOOL; + BIT_45 : BOOL; + BIT_46 : BOOL; + BIT_47 : BOOL; + BIT_48 : BOOL; + BIT_49 : BOOL; + BIT_50 : BOOL; + BIT_51 : BOOL; + BIT_52 : BOOL; + BIT_53 : BOOL; + BIT_54 : BOOL; + BIT_55 : BOOL; + BIT_56 : BOOL; + BIT_57 : BOOL; + BIT_58 : BOOL; + BIT_59 : BOOL; + BIT_60 : BOOL; + BIT_61 : BOOL; + BIT_62 : BOOL; + BIT_63 : BOOL; END_VAR -OUT_00 := IN.%X0; -OUT_01 := IN.%X1; -OUT_02 := IN.%X2; -OUT_03 := IN.%X3; -OUT_04 := IN.%X4; -OUT_05 := IN.%X5; -OUT_06 := IN.%X6; -OUT_07 := IN.%X7; -OUT_08 := IN.%X8; -OUT_09 := IN.%X9; -OUT_10 := IN.%X10; -OUT_11 := IN.%X11; -OUT_12 := IN.%X12; -OUT_13 := IN.%X13; -OUT_14 := IN.%X14; -OUT_15 := IN.%X15; -OUT_16 := IN.%X16; -OUT_17 := IN.%X17; -OUT_18 := IN.%X18; -OUT_19 := IN.%X19; -OUT_20 := IN.%X20; -OUT_21 := IN.%X21; -OUT_22 := IN.%X22; -OUT_23 := IN.%X23; -OUT_24 := IN.%X24; -OUT_25 := IN.%X25; -OUT_26 := IN.%X26; -OUT_27 := IN.%X27; -OUT_28 := IN.%X28; -OUT_29 := IN.%X29; -OUT_30 := IN.%X30; -OUT_31 := IN.%X31; -OUT_32 := IN.%X32; -OUT_33 := IN.%X33; -OUT_34 := IN.%X34; -OUT_35 := IN.%X35; -OUT_36 := IN.%X36; -OUT_37 := IN.%X37; -OUT_38 := IN.%X38; -OUT_39 := IN.%X39; -OUT_40 := IN.%X40; -OUT_41 := IN.%X41; -OUT_42 := IN.%X42; -OUT_43 := IN.%X43; -OUT_44 := IN.%X44; -OUT_45 := IN.%X45; -OUT_46 := IN.%X46; -OUT_47 := IN.%X47; -OUT_48 := IN.%X48; -OUT_49 := IN.%X49; -OUT_50 := IN.%X50; -OUT_51 := IN.%X51; -OUT_52 := IN.%X52; -OUT_53 := IN.%X53; -OUT_54 := IN.%X54; -OUT_55 := IN.%X55; -OUT_56 := IN.%X56; -OUT_57 := IN.%X57; -OUT_58 := IN.%X58; -OUT_59 := IN.%X59; -OUT_60 := IN.%X60; -OUT_61 := IN.%X61; -OUT_62 := IN.%X62; -OUT_63 := IN.%X63; +BIT_00 := IN.%X0; +BIT_01 := IN.%X1; +BIT_02 := IN.%X2; +BIT_03 := IN.%X3; +BIT_04 := IN.%X4; +BIT_05 := IN.%X5; +BIT_06 := IN.%X6; +BIT_07 := IN.%X7; +BIT_08 := IN.%X8; +BIT_09 := IN.%X9; +BIT_10 := IN.%X10; +BIT_11 := IN.%X11; +BIT_12 := IN.%X12; +BIT_13 := IN.%X13; +BIT_14 := IN.%X14; +BIT_15 := IN.%X15; +BIT_16 := IN.%X16; +BIT_17 := IN.%X17; +BIT_18 := IN.%X18; +BIT_19 := IN.%X19; +BIT_20 := IN.%X20; +BIT_21 := IN.%X21; +BIT_22 := IN.%X22; +BIT_23 := IN.%X23; +BIT_24 := IN.%X24; +BIT_25 := IN.%X25; +BIT_26 := IN.%X26; +BIT_27 := IN.%X27; +BIT_28 := IN.%X28; +BIT_29 := IN.%X29; +BIT_30 := IN.%X30; +BIT_31 := IN.%X31; +BIT_32 := IN.%X32; +BIT_33 := IN.%X33; +BIT_34 := IN.%X34; +BIT_35 := IN.%X35; +BIT_36 := IN.%X36; +BIT_37 := IN.%X37; +BIT_38 := IN.%X38; +BIT_39 := IN.%X39; +BIT_40 := IN.%X40; +BIT_41 := IN.%X41; +BIT_42 := IN.%X42; +BIT_43 := IN.%X43; +BIT_44 := IN.%X44; +BIT_45 := IN.%X45; +BIT_46 := IN.%X46; +BIT_47 := IN.%X47; +BIT_48 := IN.%X48; +BIT_49 := IN.%X49; +BIT_50 := IN.%X50; +BIT_51 := IN.%X51; +BIT_52 := IN.%X52; +BIT_53 := IN.%X53; +BIT_54 := IN.%X54; +BIT_55 := IN.%X55; +BIT_56 := IN.%X56; +BIT_57 := IN.%X57; +BIT_58 := IN.%X58; +BIT_59 := IN.%X59; +BIT_60 := IN.%X60; +BIT_61 := IN.%X61; +BIT_62 := IN.%X62; +BIT_63 := IN.%X63; END_FUNCTION ]]> diff --git a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct index f1cb9bef33..76281f2309 100644 --- a/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct +++ b/data/typelibrary/utils-1.0.0/typelib/splitting/SPLIT_LWORD_INTO_QUARTERS.fct @@ -14,76 +14,76 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -95,72 +95,72 @@ VAR_INPUT END_VAR VAR_OUTPUT - OUT_00 : BYTE; // QUARTER BYTE 00 - OUT_01 : BYTE; // QUARTER BYTE 01 - OUT_02 : BYTE; // QUARTER BYTE 02 - OUT_03 : BYTE; // QUARTER BYTE 03 - OUT_04 : BYTE; // QUARTER BYTE 04 - OUT_05 : BYTE; // QUARTER BYTE 05 - OUT_06 : BYTE; // QUARTER BYTE 06 - OUT_07 : BYTE; // QUARTER BYTE 07 - OUT_08 : BYTE; // QUARTER BYTE 08 - OUT_09 : BYTE; // QUARTER BYTE 09 - OUT_10 : BYTE; // QUARTER BYTE 10 - OUT_11 : BYTE; // QUARTER BYTE 11 - OUT_12 : BYTE; // QUARTER BYTE 12 - OUT_13 : BYTE; // QUARTER BYTE 13 - OUT_14 : BYTE; // QUARTER BYTE 14 - OUT_15 : BYTE; // QUARTER BYTE 15 - OUT_16 : BYTE; // QUARTER BYTE 16 - OUT_17 : BYTE; // QUARTER BYTE 17 - OUT_18 : BYTE; // QUARTER BYTE 18 - OUT_19 : BYTE; // QUARTER BYTE 19 - OUT_20 : BYTE; // QUARTER BYTE 20 - OUT_21 : BYTE; // QUARTER BYTE 21 - OUT_22 : BYTE; // QUARTER BYTE 22 - OUT_23 : BYTE; // QUARTER BYTE 23 - OUT_24 : BYTE; // QUARTER BYTE 24 - OUT_25 : BYTE; // QUARTER BYTE 25 - OUT_26 : BYTE; // QUARTER BYTE 26 - OUT_27 : BYTE; // QUARTER BYTE 27 - OUT_28 : BYTE; // QUARTER BYTE 28 - OUT_29 : BYTE; // QUARTER BYTE 29 - OUT_30 : BYTE; // QUARTER BYTE 30 - OUT_31 : BYTE; // QUARTER BYTE 31 + QUARTER_BYTE_00 : BYTE; + QUARTER_BYTE_01 : BYTE; + QUARTER_BYTE_02 : BYTE; + QUARTER_BYTE_03 : BYTE; + QUARTER_BYTE_04 : BYTE; + QUARTER_BYTE_05 : BYTE; + QUARTER_BYTE_06 : BYTE; + QUARTER_BYTE_07 : BYTE; + QUARTER_BYTE_08 : BYTE; + QUARTER_BYTE_09 : BYTE; + QUARTER_BYTE_10 : BYTE; + QUARTER_BYTE_11 : BYTE; + QUARTER_BYTE_12 : BYTE; + QUARTER_BYTE_13 : BYTE; + QUARTER_BYTE_14 : BYTE; + QUARTER_BYTE_15 : BYTE; + QUARTER_BYTE_16 : BYTE; + QUARTER_BYTE_17 : BYTE; + QUARTER_BYTE_18 : BYTE; + QUARTER_BYTE_19 : BYTE; + QUARTER_BYTE_20 : BYTE; + QUARTER_BYTE_21 : BYTE; + QUARTER_BYTE_22 : BYTE; + QUARTER_BYTE_23 : BYTE; + QUARTER_BYTE_24 : BYTE; + QUARTER_BYTE_25 : BYTE; + QUARTER_BYTE_26 : BYTE; + QUARTER_BYTE_27 : BYTE; + QUARTER_BYTE_28 : BYTE; + QUARTER_BYTE_29 : BYTE; + QUARTER_BYTE_30 : BYTE; + QUARTER_BYTE_31 : BYTE; END_VAR -OUT_00 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_00, SHIFT_QUARTER_00)); -OUT_01 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_01, SHIFT_QUARTER_01)); -OUT_02 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_02, SHIFT_QUARTER_02)); -OUT_03 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_03, SHIFT_QUARTER_03)); -OUT_04 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_04, SHIFT_QUARTER_04)); -OUT_05 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_05, SHIFT_QUARTER_05)); -OUT_06 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_06, SHIFT_QUARTER_06)); -OUT_07 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_07, SHIFT_QUARTER_07)); -OUT_08 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_08, SHIFT_QUARTER_08)); -OUT_09 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_09, SHIFT_QUARTER_09)); -OUT_10 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_10, SHIFT_QUARTER_10)); -OUT_11 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_11, SHIFT_QUARTER_11)); -OUT_12 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_12, SHIFT_QUARTER_12)); -OUT_13 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_13, SHIFT_QUARTER_13)); -OUT_14 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_14, SHIFT_QUARTER_14)); -OUT_15 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_15, SHIFT_QUARTER_15)); -OUT_16 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_16, SHIFT_QUARTER_16)); -OUT_17 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_17, SHIFT_QUARTER_17)); -OUT_18 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_18, SHIFT_QUARTER_18)); -OUT_19 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_19, SHIFT_QUARTER_19)); -OUT_20 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_20, SHIFT_QUARTER_20)); -OUT_21 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_21, SHIFT_QUARTER_21)); -OUT_22 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_22, SHIFT_QUARTER_22)); -OUT_23 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_23, SHIFT_QUARTER_23)); -OUT_24 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_24, SHIFT_QUARTER_24)); -OUT_25 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_25, SHIFT_QUARTER_25)); -OUT_26 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_26, SHIFT_QUARTER_26)); -OUT_27 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_27, SHIFT_QUARTER_27)); -OUT_28 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_28, SHIFT_QUARTER_28)); -OUT_29 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_29, SHIFT_QUARTER_29)); -OUT_30 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_30, SHIFT_QUARTER_30)); -OUT_31 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_31, SHIFT_QUARTER_31)); +QUARTER_BYTE_00 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_00, SHIFT_QUARTER_00)); +QUARTER_BYTE_01 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_01, SHIFT_QUARTER_01)); +QUARTER_BYTE_02 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_02, SHIFT_QUARTER_02)); +QUARTER_BYTE_03 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_03, SHIFT_QUARTER_03)); +QUARTER_BYTE_04 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_04, SHIFT_QUARTER_04)); +QUARTER_BYTE_05 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_05, SHIFT_QUARTER_05)); +QUARTER_BYTE_06 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_06, SHIFT_QUARTER_06)); +QUARTER_BYTE_07 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_07, SHIFT_QUARTER_07)); +QUARTER_BYTE_08 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_08, SHIFT_QUARTER_08)); +QUARTER_BYTE_09 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_09, SHIFT_QUARTER_09)); +QUARTER_BYTE_10 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_10, SHIFT_QUARTER_10)); +QUARTER_BYTE_11 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_11, SHIFT_QUARTER_11)); +QUARTER_BYTE_12 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_12, SHIFT_QUARTER_12)); +QUARTER_BYTE_13 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_13, SHIFT_QUARTER_13)); +QUARTER_BYTE_14 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_14, SHIFT_QUARTER_14)); +QUARTER_BYTE_15 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_15, SHIFT_QUARTER_15)); +QUARTER_BYTE_16 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_16, SHIFT_QUARTER_16)); +QUARTER_BYTE_17 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_17, SHIFT_QUARTER_17)); +QUARTER_BYTE_18 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_18, SHIFT_QUARTER_18)); +QUARTER_BYTE_19 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_19, SHIFT_QUARTER_19)); +QUARTER_BYTE_20 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_20, SHIFT_QUARTER_20)); +QUARTER_BYTE_21 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_21, SHIFT_QUARTER_21)); +QUARTER_BYTE_22 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_22, SHIFT_QUARTER_22)); +QUARTER_BYTE_23 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_23, SHIFT_QUARTER_23)); +QUARTER_BYTE_24 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_24, SHIFT_QUARTER_24)); +QUARTER_BYTE_25 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_25, SHIFT_QUARTER_25)); +QUARTER_BYTE_26 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_26, SHIFT_QUARTER_26)); +QUARTER_BYTE_27 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_27, SHIFT_QUARTER_27)); +QUARTER_BYTE_28 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_28, SHIFT_QUARTER_28)); +QUARTER_BYTE_29 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_29, SHIFT_QUARTER_29)); +QUARTER_BYTE_30 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_30, SHIFT_QUARTER_30)); +QUARTER_BYTE_31 := LWORD_TO_BYTE(SHR(IN AND LWORD_QUARTER_31, SHIFT_QUARTER_31)); END_FUNCTION ]]>