Loading…

Method Name: preset_counter

Method ID: 0x4061

Method Label: Preset value

Method Help: Preset count can be set within the range of 0 to 99999999.


  • {
  • long ids[2];
  • long preset_counter;
  • char status[3];
  • send(154,status);
  • do {
  • preset_counter = _lvar_value(resolve_record_ref(16598,16451));
  • preset_counter = (preset_counter & 0xff000000) / 0x01000000 | (preset_counter & 0x00ff0000) / 0x0100 | (preset_counter & 0x0000ff00) * 0x0100 | (preset_counter & 0x000000ff) * 0x01000000;
  • preset_counter = preset_counter >> 24 & 0x000000ff | preset_counter >> 8 & 0x0000ff00 | preset_counter << 24 & 0xff000000 | preset_counter << 8 & 0x00ff0000;
  • _get_local_var_value(literal_string(488),ids,literal_string(489));
  • if (preset_counter < 0)
  • {
  • ACKNOWLEDGE(literal_string(483));
  • status[0] = 1;
  • }


Please login for more