NEC PN-HY501 PN-HS and PN-HY Series Operation Manual - Page 28

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

Page 28 highlights

Controlling the Monitor with a computer (RS-232C) You can control this monitor from a computer via RS-232C (COM port) on the computer. TIPS • To control the monitor via RS-232C, set RS-232C/LAN SELECT to RS-232C. (See page 24.) • You cannot use RS-232C and LAN control simultaneously. Computer connection Connect with RS-232 straight cable between the computer's COM port (RS-232C connector) and the RS-232C input terminal on the monitor. Computer To COM port RS-232C input terminal RS-232 straight cable (commercially available) Communication conditions Set the RS-232C communication settings on the computer 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 computer to the monitor, the monitor operates according to the received command and sends a response message to the computer. Return code The current value can be returned by using "?" as the parameter. Example: VOLM ? ? ? ? 30 ← From computer to monitor (How much is current volume setting?). ← From monitor to computer (Current volume setting: 30). nResponse code format When a command has been executed correctly O K Return code (0DH, 0AH) A response is returned after a command is executed. When a command has not been executed E R R Return code (0DH, 0AH) 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 computer 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 resends 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. C1 C2 C3 C4 P1 P2 P3 P4 Command field Parameter field (4 prescribed (4 character string comprised of: alphanumerical characters) 0-9, +, -, space, ?) Example: VOLM0030 VOLM 30 * Be sure to input 4 characters for the parameter. Pad with spaces (" ") if necessary. (" " is a return code (0DH, 0AH or 0DH)) Wrong : VOLM30 Right : VOLM 30 E 28

  • 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

28
E
Controlling the Monitor with a computer (RS-232C)
You can control this monitor from a computer via RS-232C
(COM port) on the computer.
TIPS
To control the monitor via RS-232C, set RS-232C/LAN
SELECT to RS-232C. (See page 24.)
You cannot use RS-232C and LAN control simultaneously.
Computer connection
Connect with RS-232 straight cable between the computer’s
COM port (RS-232C connector) and the RS-232C input
terminal on the monitor.
RS-232 straight cable
(commercially available)
To COM port
Computer
RS-232C
input terminal
Communication conditions
Set the RS-232C communication settings on the computer 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 computer to the monitor,
the monitor operates according to the received command and
sends a response message to the computer.
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: VOLM0030
VOLM
30
*
Be sure to input 4 characters for the parameter. Pad with
spaces (“
”) if necessary.
(“
” is a return code (0D
H
, 0A
H
or 0D
H
))
Wrong : VOLM30
Right
: VOLM
30
The current value can be returned by using “?” as the
parameter.
Example:
VOLM ? ? ? ?
From computer to monitor (How
much is current volume setting?).
30
From monitor to computer
(Current volume setting: 30).
n
Response code format
When a command has been executed correctly
O
K
Return code
(0D
H
, 0A
H
)
A response is returned after a command is executed.
When a command has not been executed
R
R
E
Return code
(0D
H
, 0A
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 computer 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 resends 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.