The NI-Industrial Communications for EtherCAT Programming Reference Manual provides information about the EtherCAT VIs and error codes.