Omron DeviceNet CV Series Operation Manual page 298

Devicenet slaves
Table of Contents

Advertisement

RS-232C Units
Using CMND to Read Data
(CS-series and CV-series)
Buy: www.ValinOnline.com | Phone 844-385-3099 | Email: CustomerService@valin.com
Word
Contents (Hex)
D+2
00 02
D+3
0E 90
Control Words (C: First Control Word)
Word
Contents (Hex)
C
00 0F
C+1
00 08
C+2
00 02
C+3
1B FE
C+4
00 00
C+5
00 64
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:
Slave network address: 2
Slave node address:
Example: Using the CMND Instruction
Command Words (S: First Command Word)
Word
Contents (Hex)
S
28 01
S+1
0E 0E
S+2
00 94
S+3
00 02
S+4
64 00
No. of received bytes (data length after D+3): 2
bytes
Slave node address: 14
PARAMETER SET response service code: 90
Hex
No. of bytes of command data: S (15 bytes of
command data)
No. of bytes of response data: D (8 bytes of
response data)
Destination node network address: 2
Master's node address: 27
Master's Unit address: FE Hex
Response returned, communications port No.:
0, No. of retries: 0
Response monitoring time: 10 s
27
14
EXPLICIT MESSAGE SEND command code: 28
01 Hex
Slave node address: 14
RS-232C RECEIVE DATA READ command ser-
vice code: 0E Hex
Class ID: 0094 Hex
Instance ID: Port 1 = 0002 Hex
Attribute ID: 64 Hex
Section 6-2
Meaning
Meaning
Meaning
281

Advertisement

Table of Contents
loading

Table of Contents