Movensys.AlarmHelper.Core
1.0.3
dotnet add package Movensys.AlarmHelper.Core --version 1.0.3
NuGet\Install-Package Movensys.AlarmHelper.Core -Version 1.0.3
<PackageReference Include="Movensys.AlarmHelper.Core" Version="1.0.3" />
<PackageVersion Include="Movensys.AlarmHelper.Core" Version="1.0.3" />
<PackageReference Include="Movensys.AlarmHelper.Core" />
paket add Movensys.AlarmHelper.Core --version 1.0.3
#r "nuget: Movensys.AlarmHelper.Core, 1.0.3"
#:package Movensys.AlarmHelper.Core@1.0.3
#addin nuget:?package=Movensys.AlarmHelper.Core&version=1.0.3
#tool nuget:?package=Movensys.AlarmHelper.Core&version=1.0.3
Movensys.AlarmHelper.Core
This is a function for alarm developed by the Movensys Application Team.
Features
- Enum-based API – strongly-typed, zero magic strings
- Two operating modes (Manage each alarm code individually, Pack active alarms into a 16-bit word array for fast PLC transfer)
- CRUD helpers – Insert, Clear, AllClear, Contains, GetActiveAlarms, GetHistory
- Real-time events – AlarmInserted / AlarmCleared for UI binding or logging
- Json file support – manage alarm parameters and troubleshooting via external
.jsonfiles
Quick Start
1 Define your enums
using Movensys.AlarmHelper.Core.Definitions;
enum AlarmCode
{
OverHeat = 0,
ServoError,
LimitExceeded,
SensorFail
}
enum AlarmLevel
{
Warning,
Error,
Critical
}
2 Per‑code tracking with CodeAlarm
using Movensys.AlarmHelper.Core.AlarmTypes;
var alarm = new CodeAlarm<AlarmCode, AlarmLevel>();
// raise an alarm
alarm.Insert(AlarmCode.OverHeat);
// query
if (alarm.Contains(AlarmCode.OverHeat))
Console.WriteLine("🔥 OverHeat active");
// clear
alarm.Clear(AlarmCode.OverHeat);
3 PLC‑friendly bitmap with WordAlarm
using Movensys.AlarmHelper.Core.AlarmTypes;
var plcAlarm = new WordAlarm<AlarmCode, AlarmLevel>();
plcAlarm.Insert(AlarmCode.SensorFail);
// build 16‑bit word array → send to PLC
ushort[] words = plcAlarm.GetWordArray();
PlcApi.WriteWords(0x1000, words);
4 Generic handling via BaseAlarm
BaseAlarm<AlarmCode, AlarmLevel> generic = new WordAlarm<AlarmCode, AlarmLevel>();
generic.Insert(AlarmCode.LimitExceeded);
// WordAlarm‑specific API when you really need it
if (generic is WordAlarm<AlarmCode, AlarmLevel> wa)
{
ushort[] buf = wa.GetWordArray();
/* … */
}
Tip
- Batch operations – call
AllClear()before system start‑up to guarantee a clean slate. - Cleared alarm history – After the application starts, call
GetHistory()to review cleared alarm records. - UI binding – subscribe to
AlarmInserted/AlarmClearedand push updates to your MVVMObservableCollection. - Option strings – Use the
Optionstring inAlarmParamto tag alarms with device‑specific directives (e.g.,LED RED Blink) so your controller can run LED patterns when that option text appears in an active alarm.
Release History
Jul 16, 2026 - 1.0.3 ver<br> Hardened file I/O: fallback settings path when the install folder is read-only, corrupted json recovery, unknown enum keys no longer discard valid settings.
dec 30, 2025 - 1.0.2 ver<br> Enhanced color setting and parameter editing features for each AlarmLevel.<br>
may 30, 2025 - 1.0.1 ver<br> initial public release: CodeAlarm, WordAlarm, troubleshooting localization.<br>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net45 is compatible. net451 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 is compatible. |
-
.NETFramework 4.5
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.5.1
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.5.2
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.6
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.6.1
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.6.2
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.7
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.7.1
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.8.1
- Newtonsoft.Json (>= 13.0.3)
-
net5.0
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Movensys.AlarmHelper.Core:
| Package | Downloads |
|---|---|
|
Movensys.AlarmHelper.Winforms
Created by Movensys Application Team with alarm functionality |
GitHub repositories
This package is not used by any popular GitHub repositories.