Loading…
Loading…
Method Name: methodCurrentMode
Method ID: 0x426F
Method Label: What is Current Mode?
Method Help: What is Current Mode? - To get the current mode of this device
- {
- char nbr;
- char status[3];
- _set_device_status(0xFF,0);
- send(249, status);
- if( status[0] != 0 ) { display_response_status(249, status[0]); DELAY(3,"|en|Procedure aborted \nTry Again."); process_abort();; };
- if (_ivar_value(16385) == 3)
- {
- ACKNOWLEDGE("|en|\n Device is currently in NORMAL mode.");
- }
- else if (_ivar_value(16385) == 1)
- {
- ACKNOWLEDGE("|en|\n Device is currently in MANUAL mode.");
- }
- else if (_ivar_value(16385) == 0)
- {
- if (_ivar_value(16681) == 0)
- {
- ACKNOWLEDGE("|en|\n Device is currently in SETUP mode.");
- }
- else if (_ivar_value(16681) == 1)
- {
- ACKNOWLEDGE("|en|\n Device is currently in LOW POWER mode.");
- }
Please login for more