Sharp PN-C703B Operation Manual - Page 29

Controlling the Monitor with a PC (RS-232C), PC connection, Communication conditions, Communication

Page 29 highlights

Controlling the Monitor with a PC (RS-232C) You can control this monitor from a PC via RS-232C (COM The current value can be returned by using "????" or "? " port) on the PC. as the parameter. PC connection Connect with RS-232 cross cable between the PC's COM port (RS-232C connector) and the RS-232C input terminal on the monitor. Example: VOLM ? ? ? ? 30 ← From PC to monitor (How much is current volume setting?). ← From monitor to PC (Current volume setting: 30). PC To COM port RS-232C input terminal RS-232 cross cable (commercially available) To control the monitor via RS-232C, set STANDBY MODE to STANDARD. Set OFF IF NO SIGNALE and OFF IF NO OPERATION to DISABLE. When the monitor is in standby mode with OFF IF NO SIGNAL and OFF IF NO OPERATION, cannot switch to power on state. (See page 25.) Wrong : VOLM ? Right : VOLM ? nResponse code format When a command has been executed correctly O K Return code (0DH) A response is returned after a command is executed. When a command has not been executed E R R Return code (0DH) Communication conditions Set the RS-232C communication settings on the PC to match the monitor's communication settings as follows: Baud rate Data length Parity bit 9600bps 8 bits None Stop bit 1 bit Flow control None Communication procedure nCommand 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. Return code C1 C2 C3 C4 P1 P2 P3 P4 Command field Parameter field (4 prescribed (4 character string comprised of: alphanumerical characters) 0-9, space, ?) TIPS • "ERR" is returned when there is no relevant 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). • "ERR" may be returned when a command cannot be received correctly due to interference from the surrounding environment. Please ensure that the system or software retries the command if this occurs. nCommunication interval • After OK or ERR is returned, you must send the following commands. To set a timeout for the command response, specify 10 seconds or longer. • Provide an interval of 100 ms or more between the command response and the transmission of the next command. Example: VOLM030 * Be sure to input 4 characters for the parameter. Pad with spaces (" ") if necessary. (" " is a return code (0DH)) Wrong : VOLM30 Right : VOLM030 29 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

29
E
Controlling the Monitor with a PC (RS-232C)
You can control this monitor from a PC via RS-232C (COM
port) on the PC.
PC connection
Connect with RS-232 cross cable between the PC’s COM port
(RS-232C connector) and the RS-232C input terminal on the
monitor.
RS-232 cross cable
(commercially available)
To COM port
PC
RS-232C
input terminal
To control the monitor via RS-232C, set STANDBY MODE
to STANDARD. Set OFF IF NO SIGNALE and OFF IF NO
OPERATION to DISABLE. When the monitor is in standby
mode with OFF IF NO SIGNAL and OFF IF NO OPERATION,
cannot switch to power on state. (See page 25.)
Communication conditions
Set the RS-232C communication settings on the PC to match
the monitor’s communication settings as follows:
Baud rate
9600bps
Stop bit
1 bit
Data length
8 bits
Flow control
None
Parity bit
None
Communication procedure
n
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, ?)
Example: VOLM030
*
Be sure to input 4 characters for the parameter. Pad with
spaces (“
”) if necessary.
(“
” is a return code (0D
H
))
Wrong : VOLM30
Right
: VOLM030
The current value can be returned by using “????” or “?
as the parameter.
Example:
VOLM ? ? ? ?
From PC to monitor (How much
is current volume setting?).
30
From monitor to PC (Current
volume setting: 30).
Wrong : VOLM
?
Right
: VOLM ?
n
Response code format
When a command has been executed correctly
O
K
Return code
(0D
H
)
A response is returned after a command is executed.
When a command has not been executed
R
R
E
Return code
(0D
H
)
TIPS
“ERR” is returned when there is no relevant 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).
• “ERR” may be returned when a command cannot be
received correctly due to interference from the surrounding
environment.
Please ensure that the system or software retries the
command if this occurs.
n
Communication interval
After OK or ERR is returned, you must send the following
commands.
To set a timeout for the command response, specify 10
seconds or longer.
Provide an interval of 100 ms or more between the
command response and the transmission of the next
command.