diff --git a/site_ansto/safetyplc.c b/site_ansto/safetyplc.c index f04bb4ca..d8649c17 100644 --- a/site_ansto/safetyplc.c +++ b/site_ansto/safetyplc.c @@ -368,7 +368,7 @@ static int PLC_Action(SConnection *pCon, SicsInterp *pSics, return OKOK; } else if (argc == 2) { - if (strcmp(argv[1], "list") == 0) { + if (strcasecmp(argv[1], "list") == 0) { PLC_Print(pCon, pSics, pData, argv[0], "key"); PLC_Print(pCon, pSics, pData, argv[0], "secondary"); PLC_Print(pCon, pSics, pData, argv[0], "tertiary"); @@ -386,8 +386,9 @@ static int PLC_Action(SConnection *pCon, SicsInterp *pSics, if (PLC_Print(pCon, pSics, pData, argv[0], argv[1])) return OKOK; } - /* TODO: handle private stuff */ - return MultiChanAction(pCon, pSics, self->mcc, argc, argv); + snprintf(line, 132, "%s does not understand %s", argv[0], argv[1]); + SCWrite(pCon, line, eError); + return 0; } static pSafetyPLCController PLC_Create(const char* pName, int port) @@ -417,7 +418,7 @@ static int PLC_Init(pSafetyPLCController self) 1000, 100, MyTimerCallback, self); - self->timeout=30000; + self->timeout=120000; /* huge */ return 1; }