Loading…

方法名称: SetOpMode

方法ID: 0x4186

方法标签: SetOpMode

方法描述:


  • {
  • char status[3];
  • int mode;
  • int pulsefreqmode;
  • int totunit;
  • int old_assign;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • mode = _ivar_value(16430);
  • _iassign(16775,0x0683);
  • send_command_trans(174,1);
  • _iassign(16775,0x0365);
  • send_command_trans(174,1);
  • _iassign(16775,0x0367);
  • send_command_trans(174,1);
  • _iassign(16775,0x0369);
  • send_command_trans(174,1);
  • _iassign(16775,0x2067);
  • send_command_trans(174,1);
  • _iassign(16775,0x1364);
  • send_command_trans(174,1);
  • _iassign(16775,0x2064);
  • send_command_trans(174,1);
  • _iassign(16775,0x266E);
  • send_command_trans(174,1);
  • _iassign(16775,0x0F64);
  • send_command_trans(174,1);
  • pulsefreqmode = _ivar_value(16462);
  • if (mode == 1)
  • {
  • old_assign = _ivar_value(16431);
  • switch (old_assign)
  • {
  • case 4:
  • _iassign(16431,2);
  • break;
  • case 12:
  • _iassign(16431,11);
  • break;
  • case 36:
  • _iassign(16431,2);
  • break;
  • case 37:
  • _iassign(16431,11);
  • break;
  • case 38:
  • _iassign(16431,2);
  • break;
  • case 39:
  • _iassign(16431,2);
  • break;
  • case 40:
  • _iassign(16431,2);
  • break;
  • default:
  • _iassign(16431,old_assign);
  • break;
  • }
  • _iassign(16798,1);
  • _iassign(16810,1);
  • totunit = _ivar_value(16420);
  • _iassign(16801,totunit);
  • totunit = _ivar_value(16420);
  • _iassign(16813,totunit);
  • _iassign(16451,2);
  • if (_ivar_value(16409) == 0x44)
  • {
  • _iassign(16463,2);
  • _iassign(16474,2);
  • }
  • if (_ivar_value(16410) == 0x48)
  • {
  • old_assign = _ivar_value(16482);
  • switch (old_assign)
  • {
  • case 8:
  • _iassign(16482,7);
  • break;
  • case 14:
  • _iassign(16482,7);
  • break;
  • case 16:
  • _iassign(16482,7);
  • break;
  • case 110:
  • _iassign(16482,7);
  • break;
  • case 111:
  • _iassign(16482,7);
  • break;
  • default:


请登录以获得完整内容