Cicode Programming Reference > Cicode Errors > Hardware/Cicode Errors

Hardware/Cicode Errors

CitectSCADA 'traps' system errors automatically. When CitectSCADA detects a system error, it generates a hardware alarm, and the corresponding error message is placed in the alarm description. Each error has an associated (unique) error number.

You can use the IsError() function to get the number of the last error. Alternatively, you can trap and process errors within your user functions. Use the ErrSet() function to enable or disable error trapping.CitectSCADA 'traps' system errors automatically. When a system error occurs, CitectSCADA generates a hardware alarm, and the corresponding error message is placed in the alarm description. Each error has an associated (unique) error number. Number 0 means no error, errors start from 1.

Range

Source

Cause

1 - 31

PLC or I/O Device
Generic errors

The I/O Device is reporting an error, or CitectSCADA is experiencing the reported error trying communicate with an I/O Device. Often caused by incorrect configuration or poor cabling. For a detailed list of these errors see Generic Errors.

256 -511

General

General errors are wide ranging, from animation to server problems. However, there are two main causes of general errors:

1. Device

External devices such as printers, databases, and files can cause many different hardware errors since they are beyond the control of CitectSCADA. Often the device itself is improperly configured or non-existent.

2. Cicode

Cicode errors are generated when your project configuration calls a Cicode function in an invalid way, or when a Cicode function returns an error or does illegal operations.

For a detailed list of these errors see Cicode and General Errors.

382 - 383

Invalid tag data

This will indicate that the tag data validation process has identified a discrepancy with the tag index values. See Validating distributed project data for tag-based drivers for more information.

You can use the IsError() function to get the number of the last error. Alternatively, you can trap and process errors within your user functions. Use the ErrSet() function to enable or disable error trapping.