Applies To:
  • CitectSCADA 1.00 1.01 1.10 1.11 1.20 2.00 2.01 3.00

Question: What cicode functions will halt my cicode?

The following Cicode functions can halt the current task:

FormNew,DevOpen, DevHistory, DevNext, DevPrev, DevSeek, DDevFind, DevFlush, DevRecNo, DevRead, DevReadLn, DevAppend, DevDelete, DevZap, DevControl , DevPrint , DevModify,ErrTrap,FileOpen, FileClose, FileReadBlock, FileWriteBlock, FileSeek, FileDelete, FileReName, FileSize, FileReadLn, FileCopy,SQLConnect, SQLTraceOn, SQLTraceOff, SQLErrMsg,

If an error occurs in one of these functions then your cicode task will generate a hardware error and be halted. You may stop your cicode task from being halted by using ther ErrSet() function and checking for errors using IsError().

In version 3.21 and later the parameter [code]HaltOnError was added to stop any errors in these functions from halting your cicode. If you set


Then you cicode will continue to run after a hardware in these functions. See the online help for full detains on this parameter.