zektor serialoption ユーザーズマニュアル

ページ / 24
8
The MAS3 Response Strings
The section list the strings returned from the MAS3.
All MAS3 strings are terminated with the characters <CR><LF>.
Strings will start with only one of three characters:
‘+’
 
- Acknowledgement of a valid command.
‘!’ 
- Command caused an error (followed by the error code).
‘=’
- Start of a status string (followed by the status string).
Acknowledgement String
+<CR><LF>
Acknowledge an error free command.
Acknowledge an error free command was received by the MAS3. All commands are acknowledged with either this 
string or the Error Code String if an error occurred processing the command.
Error Code String
!<error><CR><LF>
Indicate an error in the previous command.
The response to a command that caused an error.
<error>
= A single digit ASCII value that indicates the error.
1
 - Unknown command.
2
 - Error in command’s parameters (out of range, or invalid).
Power Status String
=P<power><CR><LF>
Return the current power state
<power>
 = A one digit ASCII value that indicates the power state of the MAS3
0
 - MAS3 is OFF.
1
 - MAS3 in ON.
Channel Status String
=C<chan><CR><LF>
Return the current channel
<chan>
 = A one digit ASCII value that indicate the current channel of the MAS3.
1
 - MAS3 is set to channel 1.
2
 - MAS3 is set to channel 2.
3
 - MAS3 is set to channel 3.
Lamp Intensity Setting
=L<setting><CR><LF>
Return the current lamp intensity state
<setting>
 = A one digit ASCII value that indicates the current Lamp Intensity setting.
0
 - Dim setting.
1
 - Bright setting.