Loading…

方法名称: change_nd_sn

方法ID: 0x4062

方法标签: Set ND800 S/N

方法描述: Stores the serial number of the ND800 valve controller into the nonvolatile memory of the ND800. Must be set when component board is replaced


  • {
  • char status[3];
  • char disp_string[60];
  • int mfc_nb;
  • int nb;
  • int week;
  • int year;
  • int nb_of_week;
  • int dev_id;
  • int end;
  • end = 0;
  • mfc_nb = 1990010001;
  • do {
  • _get_local_var_value(literal_string(307),0,literal_string(308));
  • if (mfc_nb > 0)
  • {
  • nb = mfc_nb % 10000;
  • mfc_nb /= 10000;
  • week = mfc_nb % 100;
  • year = mfc_nb / 100;
  • nb_of_week = (year - 1996) * 52 + week;
  • dev_id = nb_of_week * 10000 + nb;


请登录以获得完整内容