/*
  function block interface
  name: copsemcy
*/

typedef long  T_BOO;
typedef long  T_ANA;
typedef float T_REAL;
typedef long  T_TMR;
typedef char  *T_MSG;

typedef struct {
   /* CALL   */ T_ANA  _err_val;
   /* CALL   */ T_ANA  _err_reg;
   /* CALL   */ T_MSG  _err_data;
} str_arg;

#define ERR_VAL          (arg->_err_val)
#define ERR_REG          (arg->_err_reg)
#define ERR_DATA         (arg->_err_data)

#define FBLPNO_STATUS           0
#define FBLPNO_ERROR            1
