Model { Name "TotalHours_counter_with_preset" Version 3.00 #RexVersion "2.50.10 rev. 12237, Date 2020-05-16" SavedCharacterEncoding "UTF-8" BlockDefaults { ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on Orientation "right" } AnnotationDefaults { HorizontalAlignment "left" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Arial" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "TotalHours_counter_with_preset" Location [36, 59, 550, 220] #GUID 8320ca57-baa5-4144-ab0a-92334f94969d Block { BlockType Display Name "Display" Position [320, 73, 425, 97] ShowName off Format "Best fit" Decimation 1 Suffix "" DispValue "" #GUID 56555d04-4edd-45c4-a039-759d845df0a7 } Block { BlockType Reference Name "Preset number of hours" Ports [0, 1, 0, 0, 0] Position [40, 112, 95, 128] SourceBlock "mathlib/CNI" icn 10 FontSize 10 #GUID 0b54b8b5-668a-48b7-95be-1d379cd1cde5 } Block { BlockType Reference Name "RESET" Ports [0, 1, 0, 0, 0] Position [115, 78, 130, 92] SourceBlock "genlib/MP" BSTATE off pwidth 1 RPTF off FontSize 10 #GUID efd7fc72-e89c-416e-8036-bb2e8b3998ac } Block { BlockType Reference Name "RUN" Ports [0, 1, 0, 0, 0] Position [50, 43, 70, 57] SourceBlock "mathlib/CNB" YCN on FontSize 10 #GUID 1d722faf-e764-448d-afe8-5ebc3963a67f } Block { BlockType SubSystem Name "SubSystem" Ports [3, 1, 0, 0, 0] Position [180, 57, 285, 113] ShowPortLabels on BackgroundColor "orange" FontSize 10 #RTFlags 4097 MaskType "REX sequence" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" #GUID 2e1c3e8d-1017-4141-8793-162f3bb83200 System { Name "SubSystem" Location [114, 137, 1235, 562] #GUID 2e1c3e8d-1017-4141-8793-162f3bb83200 Block { BlockType Inport Name "RUN" Position [10, 78, 40, 92] Port 1 OutDataTypeStr "Inherit: auto" FontSize 10 #GUID e52fb074-51b7-48a7-95c8-dbbb1291e8d3 } Block { BlockType Inport Name "RESET" Position [10, 108, 40, 122] Port 2 OutDataTypeStr "Inherit: auto" FontSize 10 #GUID 8e0976b6-afe0-4132-838f-f332f0348282 } Block { BlockType Inport Name "Preset" Position [10, 143, 40, 157] Port 3 OutDataTypeStr "Inherit: auto" FontSize 10 #GUID 1cd21d48-248b-462e-b341-3cf138961f14 } Block { BlockType Reference Name "CNI_periodunit" Ports [0, 1, 0, 0, 0] Position [220, 150, 250, 160] SourceBlock "mathlib/CNI" icn 3600 BackgroundColor "white" #RTFlags 4097 #GUID 48b936b4-bcb9-4cbf-b0ad-5d87931e1cb3 } Block { BlockType Reference Name "CNR" Ports [0, 1, 0, 0, 0] Position [205, 74, 225, 86] SourceBlock "mathlib/CNR" ycn 1 ShowName off BackgroundColor "magenta" #GUID ee3b241b-8386-4af5-a2f4-23f35b033d8b } Block { BlockType Reference Name "CNR2" Ports [0, 1, 0, 0, 0] Position [205, 114, 225, 126] SourceBlock "mathlib/CNR" ycn 1 ShowName off BackgroundColor "magenta" #GUID ec4ec0df-583b-4a8f-a0b7-52fa6367d648 } Block { BlockType Reference Name "DIV" Ports [2, 2, 0, 0, 0] Position [365, 138, 390, 162] SourceBlock "mathlib/DIV" yerr "1.0000000E+000" #GUID 22cb394e-c3bb-4eb9-8cc3-7d1204f1ed99 } Block { BlockType Reference Name "INTE" Ports [5, 4, 0, 0, 0] Position [240, 68, 280, 132] SourceBlock "analoglib/INTE" ymin -1000000000 ymax 1000000000 FontSize 10 #RTFlags 4097 #GUID 153a329c-e956-4cb7-a4c0-62878a48ec17 } Block { BlockType Reference Name "MUL" Ports [2, 1, 0, 0, 0] Position [160, 123, 185, 147] SourceBlock "mathlib/MUL" #GUID 1d987044-f784-49e9-9220-95d214fc62f4 } Block { BlockType SubSystem Name "TrimmNumber" Ports [1, 1, 0, 0, 0] Position [420, 137, 515, 153] ShowPortLabels on FontSize 10 #LibraryFile "\\\\Nas718\\NJIC\\Test Release NJICDAQ\\Rev" #"2.02 (2020-07-01)\\NJICDAQ_V202_package\\NJICDAQ02_library.mdl" MaskType "REX sequence" MaskPromptString "Number of decimals" MaskStyleString "edit" MaskTunableValueString on MaskEnableString on MaskVisibilityString on MaskVariables "decimals=@1" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString 1 #GUID ddafd785-5cc0-4578-9d35-99daad978a24 System { Name "TrimmNumber" Location [114, 137, 522, 279] #GUID ddafd785-5cc0-4578-9d35-99daad978a24 Block { BlockType Inport Name "decimal" Position [15, 23, 45, 37] Port 1 FontSize 10 #GUID 0c8ae7eb-0e7f-4c00-81c9-64eb2587e383 } Block { BlockType Reference Name "CNI_decimals" Ports [0, 1, 0, 0, 0] Position [45, 83, 65, 97] SourceBlock "mathlib/CNI" icn "decimals" FontSize 10 #GUID 4334c368-59bc-455f-9136-4f912ca54f16 } Block { BlockType Reference Name "DIV" Ports [2, 2, 0, 0, 0] Position [265, 28, 290, 52] SourceBlock "mathlib/DIV" yerr 1 FontSize 10 #GUID 02412ca6-5589-4d13-a0f6-83999bc9843c } Block { BlockType Reference Name "FNX" Ports [1, 2, 0, 0, 0] Position [100, 78, 125, 102] SourceBlock "mathlib/FNX" ifn "8: exp10" yerr 0 FontSize 10 #GUID 14131a0d-8341-40ab-b683-bcfd3a205eef } Block { BlockType Reference Name "MUL" Ports [2, 1, 0, 0, 0] Position [155, 23, 180, 47] SourceBlock "mathlib/MUL" #GUID 44619952-cc64-4068-8f45-f2c38297ab7c } Block { BlockType Reference Name "RTOI" Ports [1, 1, 0, 0, 0] Position [205, 28, 230, 42] SourceBlock "mathlib/RTOI" #GUID 5965f132-48b9-444c-afb5-d7f27f35361e } Block { BlockType Outport Name "trimmed" Position [340, 28, 370, 42] Port 1 FontSize 10 #GUID bf024b01-1da8-4ce7-a4be-d4925dfffd67 } Line { SrcBlock "CNI_decimals" SrcPort 1 DstBlock "FNX" DstPort 1 #GUID f50a99c9-6096-45de-92d1-d09bbda4e3fc } Line { SrcBlock "DIV" SrcPort 1 DstBlock "trimmed" DstPort 1 #GUID 78902040-ab50-4523-86d3-b6fdd0c6b7d4 } Line { SrcBlock "FNX" SrcPort 1 Points [5, 0] #GUID 7b293080-9b60-4e74-a1ab-879967815005 Branch { Points [115, 0] DstBlock "DIV" DstPort 2 #GUID 7581a70d-1025-4d26-a759-1d238cf8070e } Branch { Points [0, -45] DstBlock "MUL" DstPort 2 #GUID 690de74e-1b88-4045-9e8a-370ea997ae38 } } Line { SrcBlock "MUL" SrcPort 1 DstBlock "RTOI" DstPort 1 #GUID d4a8476b-3539-483a-acc7-2861aca23ba5 } Line { SrcBlock "RTOI" SrcPort 1 DstBlock "DIV" DstPort 1 #GUID 4319d7fc-e125-4e16-a65d-62fd14dd21b4 } Line { SrcBlock "decimal" SrcPort 1 DstBlock "MUL" DstPort 1 #GUID 7ba52078-a581-42ba-a2d3-8bf938367f2f } } } Block { BlockType Outport Name "TotalHours" Position [555, 138, 585, 152] Port 1 BackgroundColor [1.000000, 1.000000, 0.000000] FontSize 10 #GUID f5109916-6025-4099-a718-be9582625cbf } Line { SrcBlock "CNI_periodunit" SrcPort 1 Points [85, 0] #GUID f7f6d297-80cf-4fdf-9409-7759252bda8c Branch { DstBlock "DIV" DstPort 2 #GUID 21703ae2-0bc1-4c3a-8cef-c01238c25ef8 } Branch { Points [0, 30; -195, 0] DstBlock "MUL" DstPort 2 #GUID 2d03809a-6ff2-4134-8c86-619da20fca14 } } Line { SrcBlock "CNR" SrcPort 1 DstBlock "INTE" DstPort 1 #GUID 074e392e-7842-47fc-936c-c58cded91396 } Line { SrcBlock "CNR2" SrcPort 1 DstBlock "INTE" DstPort 5 #GUID 0dc63ff4-a275-4b8d-864f-6eb9bf7b0ecf } Line { SrcBlock "DIV" SrcPort 1 DstBlock "TrimmNumber" DstPort 1 #GUID b2f67ff2-5e56-4ea9-a868-58f76dfd3b7c } Line { SrcBlock "INTE" SrcPort 1 Points [15, 0; 0, 65] DstBlock "DIV" DstPort 1 #GUID 3dc7917e-72af-416c-aa82-170a4e0f3f9d } Line { SrcBlock "MUL" SrcPort 1 Points [0, -25] DstBlock "INTE" DstPort 4 #GUID 2e6d1ea8-15ca-4aa1-8004-58fbae76a4ed } Line { SrcBlock "Preset" SrcPort 1 Points [25, 0; 0, -20] DstBlock "MUL" DstPort 1 #GUID aaa7ae3c-1a75-4d73-87bf-a7a9a47842fc } Line { SrcBlock "RESET" SrcPort 1 Points [10, 0; 0, -15] DstBlock "INTE" DstPort 3 #GUID 5ba5b6f5-86d8-4d61-a1c7-62d5a617dc30 } Line { SrcBlock "RUN" SrcPort 1 Points [0, 5] DstBlock "INTE" DstPort 2 #GUID 9b55f3f6-7f7a-458e-858a-a806153705a2 } Line { SrcBlock "TrimmNumber" SrcPort 1 DstBlock "TotalHours" DstPort 1 #GUID d67ca717-16e6-4a62-8d71-36f4f3f08864 } } } Line { SrcBlock "Preset number of hours" SrcPort 1 Points [0, -15] DstBlock "SubSystem" DstPort 3 #GUID 92ba8400-d74e-4ef4-b346-ef0d7c5f3836 } Line { SrcBlock "RESET" SrcPort 1 DstBlock "SubSystem" DstPort 2 #GUID 26bc4980-ed1f-4d6d-8ef5-b0de99ea96fa } Line { SrcBlock "RUN" SrcPort 1 Points [0, 15] DstBlock "SubSystem" DstPort 1 #GUID 1b022964-5188-44ce-9bec-69fb1347e7d2 } Line { SrcBlock "SubSystem" SrcPort 1 DstBlock "Display" DstPort 1 #GUID 238973ea-abf2-44c3-8779-82859eb69bd5 } Annotation { Position [155, 30] Text "(Pre-setable) Total Hours counter" HorizontalAlignment "left" VerticalAlignment "top" FontSize 10 #GUID 2c0c3e78-c79d-44ca-98aa-96003f90c2e1 } } }