3.5.7.2. Device (Device Access)
The following section describes commands used to perform device reading and writing.
3.5.7.2.1. Data Used in Commands
Device code
Access destination devices are specified in request data with the following device codes.
For subcommands 0001 and 0000, specify the device code enclosed in parentheses ( ).
Device
Special relay
(SM)
Special register
(SD)
Input (X)
Output (Y)
Internal relay
(M)
Data register (D)
CPU buffer
memory access
device
*1: When performing data communication in ASCII code, specify device codes with 4 digits for subcommands 003 and
002. For device codes with 3 digits or less, add an asterisk (*) (ASCII code: 2AH) or a space (ASCII code: 20H) after
the device code.
Specify device codes with 2 digits for subcommands 001 and 000. For device codes with 1 digit, add an asterisk
(*) (ASCII code: 2AH) or a space (ASCII code: 20H) after the device code.
Device code
Category
ASCII
code
*1
Bit
SM**
0091H
(SM)
(91H)
Word
SD**
00A9H
(SD)
(A9H)
Bit
X***
009CH
(X*)
(9CH)
Y***
009DH
(Y*)
(9DH)
M***
0090H
(M*)
(90H)
Word
D***
00A8H
(D*)
(A8H)
See
section 3.5.7.2.6
of this manual.
Device No. range
Binary
code
SM0 to
SM4095
SD0 to
SD4095
R type:
X0 to XFFF
D type:
X0 to X1FFF
R type:
Y0 to YFFF
D type:
Y0 to Y1FFF
M0 to M18431
D0 to D5119
3 Description of functions
Decimal
—
Decimal
—
Hexadecimal —
Hexadecimal —
Decimal
Cannot be specified with D
type.
Decimal
—
Cannot be specified with D
type.
Remarks
3-47