43 lines
990 B
C#
43 lines
990 B
C#
using MapoSDK;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace MoonProTablet.WebUserControls
|
|
{
|
|
public partial class mod_sendParameters : System.Web.UI.UserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
public static ICollection GetParameters()
|
|
{
|
|
//!!!FIXME !!!FARE recuperare VERI DATI da memoria REDIS dell'IOB...
|
|
|
|
ArrayList al = new ArrayList();
|
|
plcMemMap memoria = new plcMemMap();
|
|
|
|
for (int i = 0; i < 10; i++)
|
|
{
|
|
|
|
dataConf currConf = new dataConf()
|
|
{
|
|
name = $"Par_{i}",
|
|
description = $"Parametro {i}",
|
|
value = $"{i}"
|
|
};
|
|
memoria.mMapWrite.Add($"Parametro {i}", currConf);
|
|
}
|
|
foreach (var item in memoria.mMapWrite)
|
|
{
|
|
al.Add(item.Value);
|
|
}
|
|
return al;// memoria.mMapWrite;
|
|
}
|
|
}
|
|
} |