Added register builder for booleans and numerics

This commit is contained in:
Felix Weiß
2023-06-25 22:45:07 +02:00
parent f5f1e3bea9
commit b48f86d23d
23 changed files with 821 additions and 132 deletions

View File

@@ -4,6 +4,8 @@ using System;
using System.Reflection;
using System.Threading.Tasks;
using System.Collections;
using MewtocolNet.RegisterBuilding;
using System.Collections.Generic;
namespace Examples;

View File

@@ -1,4 +1,6 @@
using System;
using MewtocolNet.RegisterBuilding;
using MewtocolNet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
@@ -12,6 +14,9 @@ class Program {
static void Main(string[] args) {
RegBuilder.FromPlcRegName("DT303").AsPlcType(PlcVarType.INT).Build();
var res = RegBuilder.FromPlcRegName("DT100").AsPlcType(PlcVarType.INT).Build();
AppDomain.CurrentDomain.UnhandledException += (s,e) => {
Console.WriteLine(e.ExceptionObject.ToString());
};