Loading…
Loading…
Method Name: alert_switch_source_method
Method ID: 0x4328
Method Label: Alert Switch Source
Method Help:
- {
- float qa, qb, qc, qd, qe; int q, q0, q1, q2, q3; char S[3];
- int b0, b1, b2, b3, b4, b5,
- cb,
- swtch,
- fn,
- om;
- unsigned int flag;
- long ids[2];
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_all_resp_code(1);
- _set_resp_code((8),0);
- send(151,S); if(_ivar_value(16804) > 1) { ACKNOWLEDGE("|en|The DD revision is not compatible with the firmware in the device.\nContact your Fisher sales office for an upgrade to your Device Description."); return; };
- DELAY(1,"|en|Please wait...");
- send_trans(129,44,S);
- b0 = _ivar_value(16634);
- b1 = _ivar_value(16635);
- b2 = _ivar_value(16636);
- b3 = _ivar_value(16637);
- b4 = _ivar_value(16638);
- b5 = _ivar_value(16639);
- swtch = 7;
- cb = (b4 << 24) + (b3 << 16) + (b1 << 8) + b0;
- switch (cb)
- {
- case 0x00000000:
- swtch = 0;
- break;
- case 0x08000000:
- swtch = 1;
- break;
- case 0x00000800:
- swtch = 2;
- break;
- case 0x00400000:
- swtch = 3;
- break;
- case 0x00004000:
- swtch = 4;
- break;
- case 0x095004FF:
- if((0x04 == b5) && (0xC0 == b2))
- {
- swtch = 5;
- }
- else
Please login for more