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