SICS-673 PLC: eValue must be used to set values in the TCL interpreter.
This commit is contained in:
@@ -349,7 +349,7 @@ static int PLC_Print(SConnection *pCon, SicsInterp *pSics,
|
||||
return 0;
|
||||
} else {
|
||||
snprintf(line, 132, "%s.%s = %s", name, param, plc_states[state]);
|
||||
SCWrite(pCon, line, eStatus);
|
||||
SCWrite(pCon, line, eValue);
|
||||
return OKOK;
|
||||
}
|
||||
}
|
||||
@@ -361,7 +361,7 @@ static int PLC_Action(SConnection *pCon, SicsInterp *pSics,
|
||||
pSafetyPLCController self = (pSafetyPLCController) pData;
|
||||
if (argc == 1) {
|
||||
snprintf(line, 132, "%s.iValue = %06X", argv[0], self->iValue & 0xffffff);
|
||||
SCWrite(pCon, line, eStatus);
|
||||
SCWrite(pCon, line, eValue);
|
||||
return OKOK;
|
||||
}
|
||||
else if (argc == 2) {
|
||||
|
||||
Reference in New Issue
Block a user