Sharp LC-M3700 LC-M3700 Operation Manual - Page 39

Communication procedure - code

Page 39 highlights

PC Operation (Continued) 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. Carriage 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 POWR 1 (" " indicates a space.) * Be sure to input 4 characters for the parameter. Pad with spaces if necessary. × VOLM30 ⅙ VOLM 30( ) (" " indicates a space, " " is the carriage return code (0DH, 0AH or 0DH).) If a command has "R" listed for "Direction" in the "RS-232C Command table" on page 46, the current value can be returned by using "?" as the parameter. Example: 1If an ID number has not been set: VOLM???? ←From PC to monitor (current volume setting: ?) 30 ←From monitor to PC (current volume setting: 30) 2If an ID number has been assigned (For example, ID number = 001) VOLM ? ←PC to monitor (" " indicates a space) 30 001 ←Monitor to PC (" " indicates a space) I When a command has been executed correctly Carriage return code (0DH, 0AH) OK↵ This is returned when execution of the command is finished. I When a command has not been executed correctly* Carriage return code (0DH, 0AH) ERR↵ * This is returned when there is no such command, or when the command cannot be used in the current state of the monitor (i.e. video auto-adjustment with video display). * If there is a bad connection between the PC and monitor, or if communication has not been established, nothing is returned (not even ERR). I If execution of the command is taking some time Carriage return code (0DH, 0AH) WA I T ↵ If a command takes some time to execute, WAIT may be returned as the 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. I If RS-232C is locked Carriage return code (0DH, 0AH) L OC K E D ↵ If RS-232C control has been locked with Control lock (see page 54), LOCKED is returned as the returned value. US 38

  • 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

US
38
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
Command field
(4 prescribed
alphanumerical
characters)
Parameter field
(4 character string
comprised of:
0-9, +, –, space, ?)
Carriage return code
C2
C3
C4
P1
P2
P3
P4
O
Carriage return code
(0D
H
, 0A
H
)
K
Example:
VOLM0030
POWR
1
(
indicates a space.)
*
Be sure to input 4 characters for the parameter. Pad with spaces if necessary.
×
VOLM30
±
VOLM
30(
)(
indicates a space,
is the carriage return code
(0D
H
, 0A
H
or 0D
H
).)
If a command has
R
listed for
Direction
in the
RS-232C Command table
on page
46
, the cur-
rent value can be returned by using
?
as the parameter.
Example:
1
If an ID number has not been set:
VOLM????
From PC to monitor (current volume setting: ?)
30
From monitor to PC (current volume setting: 30)
2
If an ID number has been assigned (For example, ID number = 001)
VOLM
?
PC to monitor (
indicates a space)
30
001
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*
E
Carriage return code
(0D
H
, 0A
H
)
R
R
*
This is returned when there is no such command,
or when the command cannot be used in the
current state of the monitor
(i.e. video auto-adjust-
ment with video display).
*
If there is a bad connection between the PC and
monitor, or if communication has not been estab-
lished, nothing is returned (not even ERR).
If execution of the command is
taking some time
W
Carriage return
code (0D
H
, 0A
H
)
A
I
T
If a command takes some time to execute, WAIT may
be returned as the 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.
PC Operation (Continued)
If RS-232C is locked
If RS-232C control has been locked with Control lock
(see page
54
), LOCKED is returned as the returned
value.
L
Carriage return code
(0D
H
, 0A
H
)
K
E
D
O
C