EasyManua.ls Logo

Omron DRT1 Series - 6-2-13 Reading RS-232 C Unit Parameters

Omron DRT1 Series
383 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
292
RS-232C Units Section 6-2
Note 1. When transmitting explicit messages from an OMRON Master Unit, spec-
ify 2 bytes each for the Class ID and the Instance ID. Set 1 byte as the At-
tribute ID for the parameter setting command.
2. The parameters that are set are held internally.
3. To enable the parameters that have been set, the RS-232C PORT RESET
command has been used in the program examples. The parameters can
also be enabled, however, by turning OFF the power to the RS-232C Unit
and then turning it ON again.
Responses
The following responses will be stored if the parameters are set properly.
PARAMETER SET Response
PORT RESET Response
6-2-13 Reading RS-232C Unit Parameters
With the following example, the port parameters that are set for the RS-232C
Unit are all read for the port when IR 00004 (port 1) or IR 00005 (port 2) turns
ON in the CPU Unit of the Master Unit.
When the RS-232C Unit’s PARAMETER READ command is used, the param-
eters that are valid at that time will be read. After setting the parameters, the
RS-232C Unit must be turned OFF and then ON again, or the ports must be
reset for the new parameters to be enabled.
Words Contents (Hex) Meaning
DM 0100 28 01 EXPLICIT MESSAGE SEND command
code is 28 01 Hex.
DM 0101 00 00 Response code is 0000 Hex (normal
completion).
DM 0102 00 02 Number of bytes received (data length
from word DM 0103 onwards) is 2 bytes.
DM 0103 08 90 Slave node address is 08.
PARAMETER SET response service
code is 90 Hex.
Words Contents (Hex) Meaning
DM 0450 28 01 EXPLICIT MESSAGE SEND command
code is 28 01 Hex.
DM 0451 00 00 Response code is 0000 Hex (normal
completion).
DM 0452 00 02 Number of bytes received (data length
from word DM 0453 onwards) is 2 bytes.
DM 0453 08 85 Slave node address is 08.
PORT RESET response service code is
85 Hex.

Table of Contents

Related product manuals