Loading…
Loading…
Method Name: LF220_alarm_set
Method ID: 0x40C4
Method Label: Alarm set (ON/OFF)
Method Help: 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;
- }
Please login for more