DEVICE QMOS
1. Parameters list
1.1 osmode
| Short description | Operative system state |
|---|---|
| Dimension | Byte |
| Default value | - |
| Access type | Read |
| Unit measure | - |
| Valid range | 0÷5 |
| Parameter ID | - |
| Write conditions | - |
Description:
Reflects the operative system state. Where:
0 = OSINI (Initialization)
1 = OSRES (Reset)
2 = OSRDY (Ready)
3 = OSRUN (Run)
4 = OSSTP (Stop)
5 = OSERR (Error)
1.2 oserr
| Short description | Operative system error code |
|---|---|
| Dimension | Byte |
| Default value | - |
| Access type | Read |
| Unit measure | - |
| Valid range | 0÷10 |
| Parameter ID | - |
| Write conditions | - |
Description:
Reflects the operative system error code. Where:
1 = OSBUSER (Bus Error)
2 = OSCKSER (CheckSum Error)
3 = OSIDXOB (Index Out of Bound)
4 = OSPRGOR (Program Over Range)
5 = OSSTPOR (Step Over Range)
6 = OSDVZER (Division By Zero)
7 = OSSTXER (Syntax Error)
8 = OSWDGER (WatchDog Error)
9 = OSSTKER (Stack Error)
10 = OSFLHER (Flash error)
1.3 osflags
| Short description | Operative system flags |
|---|---|
| Dimension | Byte |
| Default value | - |
| Access type | Read |
| Unit measure | - |
| Valid range | - |
| Parameter ID | - |
| Write conditions | - |
Description:
Reflects the operative system internal flags. Where:
bit 0 (LSB) TSKWDER (Task Watchdog Error)
bit 1 BATTERY (wrong battery)
bit 2 BKDIS (backup disabled)
bit 3 TTASKLOST (timed task list)
bit 4 BKNEW (new backup procedure)
bit 5 BKPRESENT (backup present)
bit 6 BKVALID (backup valid)
bit 7 (MSB) empty
| Name | D | R | A | Description |
|---|---|---|---|---|
| systimeh | L | - | R | Shown the system timer LONG_H that has resolution 1 msec. |
| systimel | L | - | R | Shown the system timer LONG_L that has resolution 1 msec. |
| taskmedtime | L | - | R | Indicates the average time of your program's execution (tenths of a msec.) |
| taskmaxtime | L | - | R | Indicates the maximum execution time of the program (tenths of a msec.) |
| taskmintime | L | - | R | Indicates the minimum execution time of the program (tenths of a msec.) |
| sizeapp | L | - | R | Indicates the size of the QCL application (bytes) stored in flash |
| sizeret | L | - | R | Indicates the size of the retentive memory used (bytes) |
| memfree | L | - | R | Indicates the amount of volatile memory (bytes) still available |
| sys001 … sys016 | L | - | R-W | System variables |
| frwname01 … frwname09 | B | - | R | Bootloader: firmware identification string |
| frwversion | B | - | R | Bootloader: firmware version |
| frwmajrel | B | - | R | Bootloader: firmware major release |
| frwminrel | B | - | R | Bootloader: firmware minor release |
| frwhwid | L | - | R | Bootloader: firmware hardware ID |
| frwcks | L | - | R | Bootloader: firmware checksum |
| frwuvalue01 … frwuvalue10 | L | - | R | Bootloader: user value |
| fwxversion | B | - | R | Support external controller firmware version |
| fwxmajrel | B | - | R | External controller firmware support major release |
| fwxminrel | B | - | R | External controller firmware support minor release |
| temperature | B | - | R | Internal temperature expressed in °C |
| par01 | L | - | R-W | Parameter for future use |
| par02 | L | - | R-W | Parameter for future use |
| par03 | L | - | R-W | Parameter for future use |
| par04 | L | - | R-W | Parameter for future use |
| par05 | L | - | R-W | Parameter for future use |
1.4 States table
| Name | D | R | A | Descriptionm |
|---|---|---|---|---|
| st_backup | F | - | - | Indicates that there is a valid backup |
| st_01 | F | - | - | State for future use |
| st_02 | F | - | - | State for future use |
| st_03 | F | - | - | State for future use |
| st_04 | F | - | - | State for future use |
| st_05 | F | - | - | State for future use |
1.5 Commands table
| Name | D | R | A | Description |
|---|---|---|---|---|
| RESTART | F | - | W | Restart of the system. |
| BACKUP | F | - | W | Start the backup procedure (if present) |
| RESTORE | F | - | W | Start the application restore procedure (if present) |
| CMD01 | F | - | W | Command for future use |
| CMD02 | F | - | W | Command for future use |
| CMD03 | F | - | W | Command for future use |
| CMD04 | F | - | W | Command for future use |
| CMD05 | F | - | W | Command for future use |