1
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
<appSettings>
|
||||
|
||||
|
||||
<add key="GlobalPaletteMode" value="Professionaloffice2003"/>
|
||||
<!--<add key="LanguageCode" value="Chinese"/>-->
|
||||
<add key="LanguageCode" value="English"/>
|
||||
<!--<add key="GlobalPaletteMode" value="Professionaloffice2003"/>-->
|
||||
<add key="LanguageCode" value="Chinese"/>
|
||||
<!--<add key="LanguageCode" value="English"/>-->
|
||||
<add key="sqlmapConfigPath" value="Config/sqlmap.config"/>
|
||||
<!--MySql数据库连接字符串-->
|
||||
<add key="LeadMySql" value="Data Source = localhost; Port=3306;Initial Catalog = testasrs; Persist Security Info=True;User ID = root; Password=sa1234567;"/>
|
||||
|
||||
@@ -163,8 +163,8 @@ namespace CleanMachineHMI
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item.PlcItemDeviationAddress))
|
||||
{
|
||||
string PlcItemId = item.PlcItemId.ToString();
|
||||
string plcdatatype = item.PlcItemDataType.ToString();
|
||||
//string PlcItemId = item.PlcItemId.ToString();
|
||||
// string plcdatatype = item.PlcItemDataType.ToString();
|
||||
int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
|
||||
item.PlcItemValue = readBytArr_M[plcItemDeviationAddress].ToString();
|
||||
GlobalHelper.ShowSensorStatus(item, new EventArgs());
|
||||
@@ -174,8 +174,8 @@ namespace CleanMachineHMI
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item.PlcItemDeviationAddress))
|
||||
{
|
||||
string PlcItemId = item.PlcItemId.ToString();
|
||||
string plcdatatype = item.PlcItemDataType.ToString();
|
||||
//string PlcItemId = item.PlcItemId.ToString();
|
||||
//string plcdatatype = item.PlcItemDataType.ToString();
|
||||
int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
|
||||
item.PlcItemValue = readBytArr_M1[plcItemDeviationAddress].ToString();
|
||||
GlobalHelper.ShowSensorStatus(item, new EventArgs());
|
||||
@@ -210,7 +210,7 @@ namespace CleanMachineHMI
|
||||
{
|
||||
|
||||
string PlcItemId = item.PlcItemId.ToString();
|
||||
string plcdatatype = item.PlcItemDataType.ToString();
|
||||
// string plcdatatype = item.PlcItemDataType.ToString();
|
||||
int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
|
||||
if (Convert.ToInt32(item.PlcItemPriAddress) < 409)
|
||||
{
|
||||
|
||||
@@ -420,7 +420,7 @@ namespace CleanMachineHMI
|
||||
{
|
||||
try
|
||||
{
|
||||
lbNow.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
lbNow.Text = DateTime.Now.ToString();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user