Loading…

Method Name: ejx_method_error_log_view

Method ID: 0x40DD

Method Label: Error log view

Method Help:


  • {
  • int choice;
  • char xmtr_status[25];
  • {
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • }
  • ;
  • while (1)
  • {
  • choice = SELECT_FROM_LIST(literal_string(1298),literal_string(1299));
  • if (choice >= 4)
  • {
  • break;
  • }
  • _iassign(16574,choice);
  • send_command(190);
  • xmtr_status[0] = _ivar_value(16575);
  • xmtr_status[1] = _ivar_value(16576);
  • xmtr_status[2] = _ivar_value(16577);
  • xmtr_status[3] = _ivar_value(16578);
  • xmtr_status[4] = _ivar_value(16579);
  • xmtr_status[5] = _ivar_value(16580);
  • xmtr_status[14] = _ivar_value(16581);
  • xmtr_status[15] = _ivar_value(16582);
  • if (xmtr_status[3] & 0x04)
  • {
  • ACKNOWLEDGE(literal_string(1300));
  • }
  • if (xmtr_status[4] & 0x02)
  • {
  • ACKNOWLEDGE(literal_string(1301));
  • }
  • if (xmtr_status[0] || xmtr_status[1] || xmtr_status[2] || xmtr_status[3] || xmtr_status[4] || xmtr_status[5] || xmtr_status[14] || xmtr_status[15])
  • {
  • {
  • {
  • {
  • {
  • if (0 < 6)
  • {
  • if (xmtr_status[0] & 0x80)
  • _display_xmtr_status(4139,0x80);
  • }
  • }
  • ;
  • {
  • if (0 < 6)
  • {
  • if (xmtr_status[0] & 0x20)
  • _display_xmtr_status(4139,0x20);
  • }
  • }
  • ;
  • {
  • if (0 < 6)
  • {
  • if (xmtr_status[0] & 0x10)
  • _display_xmtr_status(4139,0x10);
  • }
  • }
  • ;
  • {
  • if (0 < 6)
  • {
  • if (xmtr_status[0] & 0x04)
  • _display_xmtr_status(4139,0x04);
  • }
  • }
  • ;
  • {
  • if (0 < 6)
  • {
  • if (xmtr_status[0] & 0x02)
  • _display_xmtr_status(4139,0x02);
  • }
  • }
  • ;
  • }
  • ;
  • {
  • {
  • if (1 < 6)
  • {
  • if (xmtr_status[1] & 0x80)
  • _display_xmtr_status(4140,0x80);
  • }
  • }
  • ;
  • {
  • if (1 < 6)
  • {
  • if (xmtr_status[1] & 0x04)
  • _display_xmtr_status(4140,0x04);
  • }
  • }
  • ;
  • }
  • ;
  • }
  • ;
  • {


Please login for more