/*
  user procedure interface
  name: PID_SET
*/

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  _pid_num;
   /* CALL   */ T_REAL _kp;
   /* CALL   */ T_REAL _tr;
   /* CALL   */ T_REAL _td;
   /* CALL   */ T_REAL _xmin;
   /* CALL   */ T_REAL _xmax;
   /* CALL   */ T_TMR  _cycle;
   /* RETURN */ T_BOO  _test;
} str_arg;

#define PID_NUM          (arg->_pid_num)
#define KP               (arg->_kp)
#define TR               (arg->_tr)
#define TD               (arg->_td)
#define XMIN             (arg->_xmin)
#define XMAX             (arg->_xmax)
#define CYCLE            (arg->_cycle)
#define TEST             (arg->_test)
