280
RS-232C Units
Section 6-2
6-2-8
Using Explicit DeviceNet Messages
Using CMND to Change
Settings
(CS-series and CV-series)
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:
27
Slave network address: 2
Slave node address:
14
Example: Using the CMND Instruction
Command Words (S: First Command Word)
D: Response Words (D: First Response Word)
Results are stored as shown in the following table.
1801 Hex
An error frame was received from
a RS-232C device.
RS-232C RECEIVE DATA READ
19FF Hex
Write not possible due to a hard-
ware error etc.
PARAMETER SET
Error code
Error details
Appropriate command
Word
Contents (Hex)
Meaning
S
28 01
EXPLICIT MESSAGE SEND command code: 28
01 Hex
S+1
0E 10
Slave node address: 14
PARAMETER SET command service code: 10
Hex
S+2
00 94
Class ID: 0094 Hex
S+3
00 01
Instance ID: 0001 Hex
S+4
64 06
ALL PARAMETER SET Attribute ID: 64 Hex,
(8 bits, even parity, 1 stop bit): 06 Hex
S+5
00 00
Header code, delimiter code, and flow control all
enabled: 00 Hex, 1,200 bps: 00 Hex.
S+6
02 03
Header code STX: 02 Hex, Delimiter code ETX:
03 Hex.
S+7
00 00
No. of bytes after delimiter = 0 (00 Hex)
Word
Contents (Hex)
Meaning
D
28 01
EXPLICIT MESSAGE SEND command code: 28
01 Hex
D+1
00 00
Response code (0000 Hex: Normal completion)
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 ...