Sharp PN-655RU PN-655RU Operation Manual - Page 37

Communication procedure

Page 37 highlights

Controlling the Monitor with a PC ENGLISH Communication procedure Basic operation When a command is sent from the PC to the monitor, the monitor operates according to the received command and sends a response message to the PC. Return code C1 C2 C3 C4 P1 P2 P3 P4 Command field (4 prescribed alphanumerical characters) Parameter field (4 character string comprised of: 0-9, +, -, space, ?) Example: VOLM0030 VOLM 30 (" " indicates a space.) * Be sure to input 4 characters for the parameter. Pad with spaces if necessary. Wrong: VOLM30 Right: VOLM 30 (" " indicates a space. " " is the return code (0DH, 0AH or 0DH).) When inputting a negative value, specify a numerical value in three digits. Example: AUTR-009 To use the six-digit command (MPOS), use a six-digit numerical value without spaces in between. Example: MPOS010097 If a command has "R" listed for "DIRECTION" in the "RS-232C command table" on page 42, the current value can be returned by using "?" as the parameter. Example: 1. If an ID number has not been set: VOLM???? ← From PC to monitor (How much is current volume setting?) 30 ← From monitor to PC (Current volume setting: 30) 2. If an ID number has been assigned (For example, ID number = 1) VOLM ? ← From PC to monitor (" " indicates a space.) 30 001 ← From monitor to PC (" " indicates a space.) When a command has been executed correctly OK Return code (0DH, 0AH) This is returned when execution of the command is finished. When a command has not been executed correctly* Return code * This is returned when there is no such command, or ERR (0DH, 0AH) when the command cannot be used in the current state of the monitor . * If communication has not been established for reasons such as a bad connection between the PC and monitor, nothing is returned (not even ERR). If execution of the command is taking some time WA I T If RS-232C is locked Return code (0DH, 0AH) With some commands, "WAIT" is returned as a return value. Wait for a moment, and OK or ERR will be returned. New commands cannot be received during this time, even if they are sent. Return code (0DH, 0AH) L OCKE D If RS-232C control has been locked with the operation lock (see page 32), LOCKED is returned as the returned value. 35 E

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108

35
E
ENGLISH
Example: VOLM0030
VOLM
30 (“
” indicates a space.)
* Be sure to input 4 characters for the parameter. Pad with spaces if necessary.
Wrong: VOLM30
Right: VOLM
30
(“
” indicates a space. “
” is the return code (0D
H
, 0A
H
or 0D
H
).)
When inputting a negative value, specify a numerical value in three digits.
Example: AUTR-009
To use the six-digit command (MPOS), use a six-digit numerical value without spaces in between.
Example: MPOS010097
If a command has “R” listed for “DIRECTION” in the “RS-232C command table” on page 42, the current
value can be returned by using “?” as the parameter.
Example: 1. If an ID number has not been set:
VOLM????
← From PC to monitor (How much is current volume setting?)
30
← From monitor to PC (Current volume setting: 30)
2. If an ID number has been assigned (For example, ID number = 1)
VOLM
?
← From PC to monitor (“
” indicates a space.)
30
001
← From monitor to PC (“
indicates a space.)
<Response code format>
When a command has been executed correctly
This is returned when execution of the command is
finished.
When a command has not been executed correctly*
* This is returned when there is no such command, or
when the command cannot be used in the current
state of the monitor .
* If communication has not been established for
reasons such as a bad connection between the PC
and monitor, nothing is returned (not even ERR).
If execution of the command is taking some time
With some commands, “WAIT” is returned as a return
value. Wait for a moment, and OK or ERR will be
returned. New commands cannot be received during
this time, even if they are sent.
If RS-232C is locked
If RS-232C control has been locked with the
operation lock (see page 32), LOCKED is returned
as the returned value.
Communication procedure
Basic operation
<Command format>
When a command is sent from the PC to the monitor, the monitor operates according to the received
command and sends a response message to the PC.
C1
C2
C3
C4
P1
P2
P3
P4
Return code
Command field
(4 prescribed
alphanumerical
characters)
Parameter field
(4 character string
comprised of:
0-9, +,
-
, space, ?)
O
K
Return code
(0D
H
, 0A
H
)
R
R
E
Return code
(0D
H
, 0A
H
)
I
W
T
A
Return code
(0D
H
, 0A
H
)
E
C
D
K
O
L
Return code (0D
H
, 0A
H
)
Controlling the Monitor with a PC