Using Explicit Devicenet Messages - Omron DeviceNet CV Series Operation Manual

Devicenet slaves
Table of Contents

Advertisement

RS-232C Units
6-2-8

Using Explicit DeviceNet Messages

Using CMND to Change
Settings
(CS-series and CV-series)
280
Buy: www.ValinOnline.com | Phone 844-385-3099 | Email: CustomerService@valin.com
Error code
1801 Hex
An error frame was received from
a RS-232C device.
19FF Hex
Write not possible due to a hard-
ware error etc.
The following example shows how to use the CMND instruction to change all
the parameters of port 1 of the RS-232C Unit at once from the Master Unit in
a CS-series or CV-series PLC.
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.
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 10
S+2
00 94
S+3
00 01
S+4
64 06
S+5
00 00
S+6
02 03
S+7
00 00
D: Response Words (D: First Response Word)
Results are stored as shown in the following table.
Word
Contents (Hex)
D
28 01
D+1
00 00
Error details
RS-232C RECEIVE DATA READ
PARAMETER SET
27
14
EXPLICIT MESSAGE SEND command code: 28
01 Hex
Slave node address: 14
PARAMETER SET command service code: 10
Hex
Class ID: 0094 Hex
Instance ID: 0001 Hex
ALL PARAMETER SET Attribute ID: 64 Hex,
(8 bits, even parity, 1 stop bit): 06 Hex
Header code, delimiter code, and flow control all
enabled: 00 Hex, 1,200 bps: 00 Hex.
Header code STX: 02 Hex, Delimiter code ETX:
03 Hex.
No. of bytes after delimiter = 0 (00 Hex)
EXPLICIT MESSAGE SEND command code: 28
01 Hex
Response code (0000 Hex: Normal completion)
Section 6-2
Appropriate command
Meaning
Meaning

Advertisement

Table of Contents
loading

Table of Contents