Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 26 of 39

C200HW-DRT21, CQM1-DRT21, DRT1 Series DeviceNet Slaves Operation Manual: W347-E1-06.pdf, pages 251 to 260

Pages 251 to 260 of 381, from C200HW-DRT21, CQM1-DRT21, DRT1 Series DeviceNet Slaves Operation Manual

The original document is the PDF (7.8 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Omron DRT1-ID16

Page 251

Section 6-1

C200H I/O Link Units Software Switches

The functions of the software switches are illustrated in the following diagram. Bit

Not used

Read/Write Area user settings Read/Write Area default settings

Bit 00: Read/Write Area User Settings To enable user settings for the Read and Write Areas, turn ON software switch bit 00. The result of the operation (normal completion or error completion) will be indicated in status bit 09 or bit 10 (first word + 5 words). Before turning OFF software switch bit 00, check whether status bit 09 or bit 10 is ON. The sizes of the Read and Write Areas and the first words in the Read and Write Areas that have been set in the Read/Write Setting Area will be stored in the Master Unit’s non-volatile memory when bit 00 changes from OFF to ON. Note

1. The Read/Write Area user settings software switch is effective only when the PLC is in PROGRAM mode. If used in other operating modes, an error will occur (error code C0 Hex). When a C0 error occurs, switch the PLC to PROGRAM mode and try the operation again. 2. Read/Write Area settings will not become effective by manipulating the software switch alone. After changing the settings, either reset the Unit or restart the PLC to enable the new settings. 3. The Read/Write Area user settings are stored in the C200H I/O Link Unit’s EEPROM memory. Once they have been set, they will not change when the Unit is turned OFF or reset, and data from the set areas can be sent and received from the next time the Unit is started. 4. There is a limit to the number of times data can be written to EEPROM. Do not exceed the EEPROM write life (1 million writes). Bit 01: Read/Write Area Default Settings To return the Read and Write Areas to the default settings, turn software switch bit 01 ON.

Note

1. The Read/Write Area default settings software switch is effective only when the PLC is in PROGRAM mode. If used in other operating modes, an error will occur (error code C0 Hex). When a C0 error occurs, switch the PLC to PROGRAM mode and try the operation again. 2. Read/Write Area default settings do not become effective by changing this bit setting alone. The Read/Write Area default settings will not become effective by manipulating the software switch alone. After changing the settings, either reset the Unit or restart the PLC to enable the new settings. 3. The default settings for the Read and Write Areas are as follows: Read Area: IR 50 (No. of words: 1) Write Area: IR 350 (No. of words: 1)

236

Page 252

Section 6-1

C200H I/O Link Units Read/Write Setting Area

The Read/Write Setting Area is configured as shown in the following illustration. After setting data for the Read and Write Areas, turn software switch bit 00 ON, and then restart the Unit to set the Read Area and Write Area. Word Bit 15 +0 +1

Bit 0 Software switch Write Area Setting

+2 +3

Read Area Setting

+4

Specify the area size, area, and address of the first word for the Read Area and the Write Area. Bit 15

Bit 0 Area Area size Address of first word

Area Size: Set in hexadecimal in byte units. The setting range is 0 to 40 Hex (0 to 64 decimal, 0 to 32 words). Area:

The area is set as follows:

Setting

Area

Word range

01 Hex

IR Area 1 (CIO)

Write Area: IR 000 to IR 235 Read Area: IR 000 to IR 235

02 Hex 03 Hex

IR Area 2 (CIO) Data Memory Area (DM or D)

IR 300 to IR 511 DM 0000 to DM 4095 (C200HE-CPU11-E only) DM 0000 to DM 5999 (All except C200HE-CPU11-E)

04 Hex 05 Hex

LR Area HR Area (HR or H)

LR 00 to LR 63 HR 00 to HR 99

06 Hex

C200HX/HG/HE AR Area (-Z) CS1H/G Holding Area (H)

AR 00 to AR 27 (Can be set for Read Area only) H100 or H102 to H127 (Specify the starting word with 00 Hex or 02 to 1B Hex.)

07 Hex

C200HX/HG/HE Timer/Counter (-Z) Area (TIM/CNT) CS1H/G Timer Area (T)

TIM/CNT 000 to TIM/CNT 511

08 Hex

EM Area (bank 0 only)

EM 0000 to EM 6143

T 000 to T 511

Address of First Word: The address first word of the memory area is set in hexadecimal. Areas that can be specified differ depending on the model of PLC used and the area. Example: Setting DM 1000 to DM 1015 (16 words = 32 bytes). Bit 15

Bit 0

237

Page 253

Section 6-1

C200H I/O Link Units Status Area

The Status Area indicates the operating status of the C200H I/O Link Unit. The meaning of each bit is as shown in the following diagram. Bit Not used Incorrect Switch Settings/EEPROM Error Node Address Duplication/Bus Off Error Detected PLC Mounting Error Network Power Supply Error

Communications Error Hold/Clear Write Area Data for Communications Error Read/Write Area Settings Normal Completion Read/Write Area Settings Error Completion Explicit Connection Established Read/Write Area Default Settings Error I/O Link Executing

Bit

Name

ON

OFF Turns OFF when the PLC or C200H I/O Link Unit is restarted.

0

Incorrect Switch Settings/ EEPROM Error Flag

Turns ON when an incorrect switch setting or an error in EEPROM is detected.

1

Node Address Duplication/ Bus Off Error Flag

2

PLC Mounting Error Flag

Turns ON when the same node address Turns OFF when the PLC or C200H I/O is set for more than one Unit or a Bus Off Link Unit is restarted. (communications are halted by many communications errors) error is detected. Turns ON when a PLC mounting error is Turns OFF when the Read/Write Area is detected. (When another Communicaset to user settings and the C200H I/O tions Unit is mounted to the same PLC Link Unit is restarted. and it’s Read/Write Area settings are set to default.)

3

Network Power Supply Error Flag

6

Communications Error Flag

8

Hold/Clear Write Area Data for Communications Error Flag Read/Write Area Settings Normal Completion Flag

9

10

Read/Write Area Settings Error Completion Flag

12

Explicit Connection Established Flag

13

Read/Write Area Default Settings Flag

14

Error Flag

15

I/O Link Executing Flag

238

Turns ON when power OFF is detected in Turns OFF when the communications the DeviceNet Network. power supply returns to a normal voltage. Turns ON when a DeviceNet communiTurns OFF when communications return cations error is detected. to normal. Turns ON when the Unit is restarted after Turns OFF when the Unit is restarted pin 3 on the front panel DIP switch has after pin 3 on the front panel DIP switch been set to ON (Hold). has been set to OFF (Clear). Turns ON when changes to the Read/ Turns OFF when software switch bits 0 Write Area settings have been completed and 1 are both set to OFF. normally using software switch bit 0 or 1. Turns ON when an error has occurred Turns OFF when software switch bits 0 attempting to make changes to the Read/ and 1 are both set to OFF. Write Area settings using software switch bit 0 or 1. Turns ON when an explicit connection has been established with the Master Unit. Turns ON when Read/Write Area default settings are used.

Turns OFF when the explicit connection with the Master Unit is broken.

Turns ON when any kind of error occurs. (When Status bits 00, 01, 02, 06, or 10 are ON.) Turns ON when a connection is established with the Master Unit.

Turns OFF when all errors have been resolved. (When Status bits 00, 01, 02, 06, and 10 are all OFF.) Turns OFF when a connection with the Master Unit is broken.

Turns OFF when Read/Write Area user settings are used.

Page 254

Section 6-1

C200H I/O Link Units

Read/Write Reference Area The current setting status of the Read Area and Write Area are indicated as shown in the following diagram. (The Read/Write Area settings are not output to this area unless the C200H I/O Link Unit is restarted after software switch bit 00 is turned ON.) Bit 15 +6 +7 +8 +9

Bit 0 Current Write Area setting Current Read Area setting

Data is stored in these words in the same form as it is for the Read/Write Setting Area. Refer to page 237 for details. Setting the Read and Write Areas

Use the following procedure to set the Read and Write Areas. Using Control bits This procedure uses the Read/Write Setting Area and the software switch in the C200H I/O Link Unit’s Special I/O Area to set the Read and Write Areas.

1,2,3...

1. Turn ON the power to the PLC to which the C200H I/O Link Unit is mounted and set the PLC to PROGRAM mode. 2. Using a Peripheral Device, such as a Programming Console, set the Read Area and Write Area in the Read/Write Setting Area in Special I/O Area words +2 to +4. Example: Read Area: IR 100 to IR 119, Write Area: DM 0160 to DM 0189. +1

Write Area: 58 bytes, DM Area

+2

Write Area: First word address 160

+3

Read Area: 40 bytes, IR Area

+4

Read Area: First word address 100

3. Using the Peripheral Device, turn ON software switch bit 00 in Special I/O Area word +0 (Read/Write Area user settings). If it is already ON, turn it OFF and then ON again. 4. Check that Status Area bit 09 in Special I/O Area word +5 is ON (Read/ Write Area Setting Normal Completion Flag). Note At this point, the Read/Write Area settings are written to memory in the C200H I/O Link Unit, but they are not yet effective. Operation will continue using the previous Read/Write Area settings. (The contents of the Read/Write Reference Area will also remain at the previous settings.) 5. Reset the C200H I/O Link Unit, or restart the PLC to which the C200H I/O Link Unit is mounted. Note a) When the C200H I/O Link Unit is mounted in a C200HX/HG/HE PLC, it can be reset by turning ON the corresponding Special I/O Unit Restart Bit in AR 01 or SR 281. When the Unit is mounted in a CS1H/G PLC, it can be reset by turning ON the corresponding Special I/O Unit Restart Bit in A502 to A507. b) When the Unit is restarted, the Read/Write settings will become effective and the number of IN/OUT words for the C200H I/O Link Unit will be set. 6. Correct the C200H I/O Link Unit’s scan list registration in the Master’s scan list. There are two methods of registering the scan list. • Turn ON the Enable Scan List software switch on the Master Unit.

239

Page 255

Section 6-1

C200H I/O Link Units

• Create a scan list and register the Unit using a DeviceNet Configurator. If the scan list is registered correctly, data will automatically be transferred and received between the Master Unit and the C200H I/O Link Unit. For further details on Master Unit operations, refer to the Master Unit’s Operation Manual or the DeviceNet Configurator Operation Manual. 7. When necessary, it is possible to read and write IN/OUT Areas on the Master, and control the PLC (Slave) to which the C200H I/O Link Unit is mounted. By writing data to the C200H I/O Link Unit OUT Area on the Master, data can be written to the Slave’s Write Area, and by reading data from the IN Area, data can be read from the Read Area of the Slave. Note Once the Read and Write Areas has been set, data will be automatically transferred and received when the Master and Slaves are restarted. Using the DeviceNet Configurator The Read/Write Area can be set using the OMRON DeviceNet Configurator (version 2.@ or later). When using a version earlier than 2.@, contact your local sales office before use. (Version information can be confirmed from the Help Menu.) 1,2,3...

1. Connect a DeviceNet Configurator to the DeviceNet Network and go online. 2. Turn ON the power to the PLC to which the C200H I/O Link Unit is mounted, and place the PLC into PROGRAM mode. 3. Locate the C200H I/O Link Unit’s icon in the Network Configuration window and double click the icon.

The Device Parameters Editing Screen (Read/Write Area parameter setting screen) will be displayed.

240

Page 256

Section 6-1

C200H I/O Link Units

4. Either double click on the Read/Write parameter that you want to change or select the desired parameter and press the Enter Key.

It will become possible to change the parameter. 5. Set or change parameters. a) Size Setting Screen Input the new value and press the Enter Key, or click another location in the window.

241

Page 257

C200H I/O Link Units

Section 6-1 b) Area Setting Screen Select a data area from the pull-down menu and press the Enter Key, or click another location in the window. (When using a CS1H/G, words AR 00 to AR 27 correspond to H100 to H127.)

c) First Word Address Setting Screen Input the new value and press the Enter Key, or click another location in the window.

6. When the desired parameter changes and settings have been completed, click the Download Button. The edited parameters will be written to the C200H I/O Link Unit.

242

Page 258

Section 6-1

C200H I/O Link Units 7. Click the Reset button to enable the edited parameters.

A reset confirmation message will be displayed. Click the Yes button to confirm. When the C200H I/O Link Unit is reset, the corresponding Special I/O Unit Restart Bit in AR 01 of the PLC will be turned ON. If the Read/Write Area sizes have been changed, you must correct the Master’s I/O allocation settings. Note Once the Read/Write Area has been set, data will be automatically transferred and received when the Master and Slaves are restarted.

6-1-8

Explicit DeviceNet Messages Explicit DeviceNet messages (commands) can be sent from the Master to write data to any area of the CPU Unit of the PLC to which the C200H I/O Link Unit is mounted. This section the explicit messages supported by the C200H I/O Link Unit, and provides usage examples. For further details on using explicit messages on the Master Unit, refer to the Master Unit’s Operation Manual.

C200H I/O Link Unit Explicit Message List Explicit message BYTE DATA READ

BYTE DATA WRITE

WORD DATA READ

WORD DATA WRITE

Error response

Function Reads the specified node’s data in bytes. Word data is read from the leftmost bit to the rightmost bit. The maximum data size for read data is 200 bytes. Writes the specified node’s data in byte. Word data is written from the leftmost bit to the rightmost bit. The maximum data size for write data is 200 bytes. Reads the specified node’s data in words. Word data is read from the rightmost bit to the leftmost bit. The maximum data size for read data is 100 words. Writes the specified node’s data in words. Word data is written from the rightmost bit to the leftmost bit. The maximum data size for write data is 100 words. When an error occurs in an explicit message (command), an error response is sent returned by the C200H I/O Link Unit.

Page 243

245

247

248

250

Use BYTE DATA READ and BYTE DATA WRITE when sending explicit messages (commands) from an OMRON DeviceNet Master. When using other manufacturer’s DeviceNet Masters to send explicit messages (commands), use WORD DATA READ and WORD DATA WRITE. The number of bytes specified for Class ID and Instance ID differ according to the type of Master used. For an OMRON DeviceNet Master, 2 bytes (4 digits) are specified. For an example of this, see 6-1-9 Using Explicit DeviceNet Messages. BYTE DATA READ

BYTE DATA READ will read data from any area of CPU Unit of the PLC to which the C200H I/O Link Unit is mounted. Data is returned from the leftmost bit to the rightmost bit.

243

Page 259

Section 6-1

C200H I/O Link Units Command Block

Class ID Address L No. of read bytes Service code Address H Destination node address Instance ID

Response Block

Word data H

Service code Word data L Source node address

Word data H Word data L

Read data (Maximum: 200 bytes)

No. of received bytes

Parameters Destination Node Address (Command) The node address of the C200H I/O Link Unit reading the data, in single-byte (2-digit) hexadecimal. Service Code (Command, Response) In the command, IC Hex is specified. In the response, the leftmost bit is turned ON and 9C Hex is returned. Class ID (Command) Always 2F Hex. Instance ID (Command) Specifies the data area to be read, in hexadecimal, as shown in the following table.

244

Setting 01 Hex

IR Area 1 (CIO)

Area

02 Hex

IR Area 2 (CIO)

03 Hex

Data Memory Area (DM or D)

04 Hex

LR Area

05 Hex 06 Hex

HR Area (HR or H) C200HX/HG/HE AR Area (-Z) CS1H/G Holding Area (H)

07 Hex

C200HX/HG/HE Timer/Counter (-Z) Area (TIM/CNT) CS1H/G Timer Area (T)

08 Hex

EM Area (bank 0 only)

Word range Write Area: IR 000 to IR 235 Read Area: IR 000 to IR 235 IR 300 to IR 511 DM 0000 to DM 4095 (C200HE-CPU11-E only) DM 0000 to DM 5999 (All except C200HE-CPU11-E) LR 00 to LR 63 HR 00 to HR 99 AR 00 to AR 27 (Can be set for Read Area only) H100 or H102 to H127 (Specify the starting word with 00 Hex or 02 to 1B Hex.) TIM/CNT 000 to TIM/CNT 511 T 000 to T 511 EM 0000 to EM 6143

Page 260

Section 6-1

C200H I/O Link Units Address L, Address H (Command)

The address in hexadecimal of the first word of data to be read. Address L: Rightmost 2 digits of the address in 4-digit hexadecimal. Address H: Leftmost 2 digits of the address in 4-digit hexadecimal. When specifying a Holding Area word (H100 or H102 to H127) in a CS1H/G PLC, specify the first word in hexadecimal with 0000 Hex for H100 or 0002 to 001B Hex for H102 to H127. No. of Read Bytes (Command) The number of bytes of read data, in single-byte (2-digit) hexadecimal. The specified range is 01 to C8 Hex (1 to 200 in decimal). No. of Received Bytes (Response) The number of bytes received from the source node address is returned in hexadecimal. Source Node Address (Response) The node address of the C200H I/O Link Unit that returned the response is returned in hexadecimal. Read Data (Response) The specified data (area, words, and number of bytes) is returned from word H (leftmost byte: bits 08 to 15) to word L (rightmost byte: bits 00 to 07). If an odd number of read bytes have been specified, the last byte of data moves into word H. Precautions Actual addresses for Address H and Address L and actual number of bytes to be read differ according to the model of PLC to which the C200H I/O Link Unit is mounted and the memory area. Be sure to specify bytes within the data area range. BYTE DATA WRITE

BYTE DATA WRITE will write data to any area in the CPU Unit of the PLC to which the C200H I/O Link Unit is mounted. Write data is specified from the leftmost byte to the rightmost byte. Command Block

Word data H Class ID Service code Address L Address H Word data L Destination node address Instance ID

Word data H Word data L

Write data (Maximum 200 bytes)

Response Block

Service code Source node address No. of received bytes

245