Current Help System: PC-DMIS NC (View Core Help)

##### Chained Sample Script

The following is a sample chained script file. In the example above, this would be C:\TESTER.SCR.

DECLARE SHIFT = FABS(AVERAGE - LAST);

IF (SHIFT < 0.0005) THEN GOTO GOOD1;

WRITE C:\TEM\DEMO.LOG "SHIFT for CIR[INDEX].D is [SHIFT]!!

WRITE C:\TEMP\MYALARM.BAT "LOGGER 1 CIR[INDEX] [SHIFT];

LABEL GOOD1;

DECLARE LASTDEV = FABS(LAST - NOM);

IF (LASTDEV < 0.002) THEN GOTO GOOD2;

WRITE C:\TEMP\DEMO.LOG "ERROR for CIR[INDEX].D is [LASTDEV]!!

WRITE C:\TEMP\MYALARM.BAT "LOGGER 2 CIR[INDEX] [LASTDEV];

LABEL GOOD2;