Loading…

方法名称: LF220_alarm_set

方法ID: 0x40C4

方法标签: Alarm set (ON/OFF)

方法描述: Alarm setting


  • {
  • int result;
  • int alarm_set1;
  • int alarm_upper;
  • int alarm_lower;
  • int alarm_empty;
  • int alarm_empty_level;
  • char status[3];
  • send(133,status);
  • alarm_set1 = _ivar_value(resolve_record_ref(resolve_array_ref(172,1),16453));
  • alarm_empty_level = _ivar_value(resolve_record_ref(resolve_array_ref(172,1),16567));
  • do {
  • switch (alarm_set1)
  • {
  • case 0:
  • {
  • alarm_upper = 0;
  • alarm_lower = 0;
  • alarm_empty = 0;
  • break;
  • }
  • case 2:
  • {
  • alarm_upper = 1;
  • alarm_lower = 0;
  • alarm_empty = 0;
  • break;
  • }
  • case 4:
  • {
  • alarm_upper = 0;
  • alarm_lower = 1;
  • alarm_empty = 0;
  • break;
  • }
  • case 6:
  • {
  • alarm_upper = 1;
  • alarm_lower = 1;
  • alarm_empty = 0;
  • break;
  • }


请登录以获得完整内容