|
@@ -1191,7 +1191,7 @@ namespace TeamAAS_VP.Core
|
|
|
Int16 _LastWorkStart = 0;
|
|
Int16 _LastWorkStart = 0;
|
|
|
Int16 _LastWorkDone = 0;
|
|
Int16 _LastWorkDone = 0;
|
|
|
Int16 _LastRequestPosition = 0;
|
|
Int16 _LastRequestPosition = 0;
|
|
|
- Int16 _LastMesCheck = 0;
|
|
|
|
|
|
|
+ Int16[] _LastMesCheck = new Int16[10];
|
|
|
Int16 _LastPickINC = 0;
|
|
Int16 _LastPickINC = 0;
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// PLC命令触发时
|
|
/// PLC命令触发时
|
|
@@ -1781,6 +1781,15 @@ namespace TeamAAS_VP.Core
|
|
|
{
|
|
{
|
|
|
if (tuple.value is Int16 state)
|
|
if (tuple.value is Int16 state)
|
|
|
{
|
|
{
|
|
|
|
|
+ if (_LastMesCheck[i] != state)
|
|
|
|
|
+ {
|
|
|
|
|
+ _LastMesCheck[i] = state;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (state == 1)
|
|
if (state == 1)
|
|
|
{
|
|
{
|
|
|
if(i == 0)
|
|
if(i == 0)
|