281
RS-232C Units
Section 6-2
Control Words (C: First Control Word)
Using CMND to Read Data
(CS-series and CV-series)
The following example shows how to use the CMND instruction to read the
RS-232C Unit’s port 1 reception data from the Master Unit in a CS-series or
CV-series PLC. An OMRON DeviceNet Master can read a maximum of 152
bytes of data at a time.
Note
If a CS-series PLC is being used, this example is applicable only when a CS-
series Master Unit is mounted. Use the IOWR instruction when a C200HX/
HG/HE or C200HS Master Unit is mounted. In this case, refer to the
DeviceNet Master Unit Operation Manual
for details on using the IOWR
instruction.
Before using the RS-232C RECEIVE DATA READ command, be sure that the
communications status Received Flag (Port 1: bit 3, Port 2: bit 11), allocated
in the Master’s IN Area is ON.
For more detailed information on explicit messages, refer to the
DeviceNet
Master Unit Operation Manual
. For information on the CMND instruction, refer
to the PLC’s
Operation Manual
or
Programming Manual
.
Example Conditions
Master node address:
27
Slave network address: 2
Slave node address:
14
Example: Using the CMND Instruction
Command Words (S: First Command Word)
D+2
00 02
No. of received bytes (data length after D+3): 2
bytes
D+3
0E 90
Slave node address: 14
PARAMETER SET response service code: 90
Hex
Word
Contents (Hex)
Meaning
C
00 0F
No. of bytes of command data: S (15 bytes of
command data)
C+1
00 08
No. of bytes of response data: D (8 bytes of
response data)
C+2
00 02
Destination node network address: 2
C+3
1B FE
Master’s node address: 27
Master’s Unit address: FE Hex
C+4
00 00
Response returned, communications port No.:
0, No. of retries: 0
C+5
00 64
Response monitoring time: 10 s
Word
Contents (Hex)
Meaning
Word
Contents (Hex)
Meaning
S
28 01
EXPLICIT MESSAGE SEND command code: 28
01 Hex
S+1
0E 0E
Slave node address: 14
RS-232C RECEIVE DATA READ command ser-
vice code: 0E Hex
S+2
00 94
Class ID: 0094 Hex
S+3
00 02
Instance ID: Port 1 = 0002 Hex
S+4
64 00
Attribute ID: 64 Hex
Buy: www.ValinOnline.com | Phone 844-385-3099 | Email: [email protected]
Содержание CS1W-DRM21
Страница 3: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 7: ...vi Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 11: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 47: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 245: ...228 B7AC Interface Units Section 5 5 Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 315: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 337: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 339: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 371: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 373: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 378: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 379: ...W347 E1 6 Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...