5. Message type
5.1 Get current Parameter from a monitor.
|
|
|
| STX | OP code page |
|
| OP code |
|
| ETX |
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
| Hi | Lo |
|
| Hi |
| Lo |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
| 1st | 2nd |
|
|
| 4th |
|
| 6th |
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
| Send this message when you want to get the status of a monitor. |
|
|
|
|
|
|
| ||||||||||||||||||||
|
| For the status that you want to get, specify the “OP code page” the “OP code”, refer to | “Appendix | ||||||||||||||||||||||||||
|
| A. Operation code table”. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
| 1stbyte) STX: Start of Message |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
|
| ASCII STX (02h) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||
|
|
| Specify the “OP code page” for the control which you want to get the status. |
|
|
| |||||||||||||||||||||||
|
|
| Refer to “Appendix A Operation code table” for each item. |
|
|
|
|
|
|
| |||||||||||||||||||
|
|
| OP code page data must be encoded to ASCII characters. |
|
|
|
|
|
|
| |||||||||||||||||||
|
|
| Ex.) The byte data 02h must be encoded to ASCII characters '0' and '2' (30h and 32h). |
| |||||||||||||||||||||||||
|
|
| OP code page 02h |
|
|
|
|
|
|
| |||||||||||||||||||
|
|
|
|
|
|
|
|
| OP code page (Lo) = ASCII '2' (32h) |
|
|
|
|
|
|
| |||||||||||||
|
|
| Refer to Operation code table. (Appendix A) |
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
|
|
| Refer to “Appendix A Operation code table” for each item. |
|
|
|
|
|
|
| |||||||||||||||||||
|
|
| OP code data must be encoded to ASCII characters. |
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||
|
|
| Ex.) The byte data 3Ah must be encoded to ASCII characters '3' and 'A' (33h and 41h). |
| |||||||||||||||||||||||||
|
|
| OP code 3Ah |
| OP code (Hi) = ASCII '3' (33h) |
|
|
|
|
|
|
| |||||||||||||||||
|
|
|
|
|
|
|
|
| OP code (Lo) = ASCII 'A' (41h) |
|
|
|
|
|
|
| |||||||||||||
|
|
| Refer to Operation code table. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
| 6thbyte) ETX: End of Message |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
|
| ASCII ETX (03h) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
| 5.2 "Get parameter" reply |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
STX |
| Result |
| OP code page |
|
| OP code |
| Type |
| Max value | Current Value |
| ETX | |||||||||||||||
Hi |
|
| Lo |
| Hi |
| Lo |
|
| Hi | Lo |
| Hi |
| Lo | MSB |
|
|
| LSB | MSB |
|
|
| LSB |
| |||
1st |
|
|
|
| 6th |
| 8th |
|
| 10th |
| 14th |
|
| 18th |
The monitor replies with a current value and the status of the requested item (operation code).
1stbyte) STX: Start of Message
ASCII STX (02h)
(7/50)