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

The text of a manual · part 32 of 39

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

Pages 311 to 320 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 311

Section 6-2

RS-232C Units 25315

Setting data for executing the RECEIVE DATA READ command for port 2

MOV(21) #8201 DM0250 MOV(21)

Response storage words: DM 0350 (82 Hex: DM; 015E Hex: word 350; 00 Hex: Word data)

#5E00 DM0251

Response monitoring time: 10 s

MOV(21) #0064 DM0252

Number of command data bytes: 9 bytes

MOV(21) #0009 DM0253 MOV(21) #2801

EXPLICIT MESSAGE SEND command code (FINS): 2801 Hex

DM0254 MOV(21) #080E

Slave node address: 08 RECEIVE DATA READ command service code: 0E Hex

DM0255

Class ID: 94 Hex

MOV(21) #0094 DM0256

Port 1 RECEIVE DATA READ Instance ID: 03 Hex

MOV(21) #0003 DM0257

Attribute ID: 64 Hex

MOV(21) #6400 DM0258 35802

35803 MOV(21) #0001 032

03200

10112

Reading Data Received at Port 1 If SR 35802 (Port 1 RS-232C Receiving Flag) is OFF and SR 35803 (Port 1 RS-232C Received Flag) is ON, the sequential processing control bit IR 03200 will be turned ON.

MOV(21) #0000 032

When IR 03200 turns ON, the CPU Unit will check that IR 10112 (unit no. 0 Master's Message Communications Enabled Flag) is ON, and message transmission will start.

IOWR #00FE DM0200 #0009 25506 MOV(21) #0001 032 25506

0009 Hex: Master's unit number 00, 9 command data words (BCD)

MOV(21) #0000 35810

032

If the Equals Flag is OFF (error in writing to the Master), IR 03200 will be turned ON, and the data will be transmitted again.

#0001

If the Equals Flag is ON (writing to the Master has been completed normally), IR 03200 will be cleared (message transmission completed).

35811 MOV(21)

033

296

00FE: Master's node address 00, Master's unit address FE Hex DM 0200: Command data storage words

Page 312

Section 6-2

RS-232C Units 03300

10112

Reading Data Received at Port 2 MOV(21) #0000 033 IOWR #00FE DM0250 #0009 25506

If SR 35810 (Port 2 RS-232C Receiving Flag) is OFF and SR 35811 (Port 2 RS-232C Received Flag) is ON, the sequential processing control bit IR 03300 will be turned ON. When IR 03300 turns ON, the Unit will check that IR 10112 (unit no. 0 Master's Message Communications Enabled Flag) is ON, and message transmission starts. 00FE: Master's node address 00, Master's unit address FE Hex DM 0250: Command data storage words

MOV(21) #0001 033 25506 MOV(21) #0000 033 END(01)

0009 Hex: Master's unit number 00, 9 command data words (BCD) If the Equals Flag is OFF (error in writing to the Master), IR 03300 will be turned ON, and the data will be transmitted again. If the Equals Flag is ON (writing to the Master has been completed normally), IR 03300 will be cleared (message transmission completed).

Note When transmitting explicit messages from an OMRON Master Unit, specify 2 bytes each for the Class ID and the Instance ID. Set 1 byte as the Attribute ID for the RECEIVE DATA READ command. Responses The following responses will be stored if the data is read properly. Port 1 Response Words

Contents (Hex)

Meaning

DM 0300

28 01

EXPLICIT MESSAGE SEND command code is 28 01 Hex.

DM 0301

00 00

DM 0302 xx xx

DM 0303

08 8E

Response code is 0000 Hex (normal completion). Number of bytes received (data length from word DM 0203 onwards). Slave node address is 08. RECEIVE DATA READ response service code is 8E Hex.

DM 0304 on xx xx...

Data received from port 1 of the RS232C Unit and read is stored in order from the leftmost byte to the rightmost byte.

Port 2 Response Words

Contents (Hex)

Meaning

DM 0350

28 01

EXPLICIT MESSAGE SEND command code is 28 01 Hex.

DM 0351

00 00

Response code is 0000 Hex (normal completion).

DM 0352 xx xx

DM 0353

08 8E

Number of bytes received (data length from word DM 0353 onwards). Slave node address is 08. RECEIVE DATA READ response service code is 8E Hex.

DM 0354 on xx xx...

Data received from port 2 of the RS-232C Unit and read is stored in order from the leftmost byte to the rightmost byte.

297

Page 313

This page is a scan with no text; see it in the PDF.

Page 314

SECTION 7 Communications Timing This section describes the time required for a complete communications cycle, for an output response to be made to an input, to start the system, and to send a message. 7-1

7-2

Remote I/O Communications Characteristics. . . . . . . . . . . . . . . . . . . . . . . . .

300

7-1-1

I/O Response Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

300

7-1-2

Communications Cycle Time and Refresh Time . . . . . . . . . . . . . . .

305

7-1-3

More than One Master in Network . . . . . . . . . . . . . . . . . . . . . . . . . .

307

7-1-4

System Startup Time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

308

Message Communications Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

309

299

Page 315

Section 7-1

Remote I/O Communications Characteristics

7-1

Remote I/O Communications Characteristics This section describes the characteristics of DeviceNet communications when OMRON Master and Slave Units are being used. Use this section for reference when planning operations that require precise I/O timing. The equations provided here are valid under the following conditions: 1,2,3...

1. The Master Unit is operating with the scan list enabled. 2. All of the required Slaves are participating in communications. 3. No errors are being indicated at the Master Unit. 4. Messages are not being produced in the Network (from another company’s configurator, for example).

Note The values provided by these equations may not be accurate if another company’s Master or Slave is being used in the Network.

7-1-1

I/O Response Time The I/O response time is the time it takes from the reception of an input signal at an Input Slave to the output of the corresponding output signal at an Output Slave.

CV-series PLCs (Asynchronous Mode)

The following timing charts show the minimum and maximum I/O response times of the DeviceNet Network for a CV-series PLC operating in asynchronous mode. Minimum I/O Response Time The minimum I/O response time occurs when the DeviceNet Master Unit refreshing is executed just after the input signal is received by the Master and instruction execution is completed within one peripheral servicing cycle. Instruction execution cycle time PLC cycle (instruction execution cycle)

Instruction execution

PLC cycle (peripheral servicing cycle) Peripheral servicing cycle time Master Unit processing

Input Output

TPLC2

The Input Slave’s ON (OFF) delay (Minimum value: 0.) TIN: TOUT: The Output Slave’s ON (OFF) delay (Minimum value: 0.) TRT-IN: Input Slave’s communications time/Slave (See page 306.)

300

Page 316

Section 7-1

Remote I/O Communications Characteristics

TRT-OUT: Output Slave’s communications time/Slave (See page 306.) TPLC2:The PLC’s peripheral servicing cycle time The minimum I/O response time (TMIN) is the total of the following terms: TMIN = TIN + TRT-IN + TPLC2 + TRT-OUT + TOUT Note

1. Refer to SECTION 4 General-purpose Slaves, SECTION 5 Environmentresistive and Waterproof Slaves, and SECTION 6 Special I/O Slave Units Specifications for details on Input and Output Slaves’ delay times. 2. Refer to Refresh Time on page 307 and the PLC’s Operation Manual for details on the PLC’s peripheral servicing cycle time. Maximum I/O Response Time The maximum I/O response time occurs with the I/O timing shown in the following diagram. Instruction execution cycle time

PLC cycle (instruction execution cycle)

Instruction execution

Instruction execution

PLC cycle (peripheral servicing cycle) Peripheral servicing cycle time Master Unit processing

Input Output

TPLC2

TIN: TOUT: TRM: TPLC1: TPLC2:

TPLC1

TPLC2

The Input Slave’s ON (OFF) delay The Output Slave’s ON (OFF) delay Master Unit’s communications cycle time (See page 305.) The PLC’s instruction execution cycle time The PLC’s peripheral servicing cycle time

The maximum I/O response time (TMAX) is the total of the following terms: TMAX = TIN + 2 × TRM + TPLC1 + 2 × TPLC2 + TOUT Note

1. Refer to SECTION 4 General-purpose Slaves, SECTION 5 Environmentresistive and Waterproof Slaves, and SECTION 6 Special I/O Slave Units Specifications for details on Input and Output Slaves’ delay times. 2. Refer to Refresh Time on page 307 and the PLC’s Operation Manual for details on the PLC’s peripheral servicing cycle time. (Look under Asynchronous Operation.)

301

Page 317

Section 7-1

Remote I/O Communications Characteristics CV-series PLCs (Synchronous Mode)

The following timing charts show the minimum and maximum I/O response times of the DeviceNet Network for a CV-series PLC operating in synchronous mode. Minimum I/O Response Time The minimum I/O response time occurs with the I/O timing shown in the following diagram. Cycle time Program execution

PLC

Program execution

Program execution Peripheral servicing

Peripheral servicing Master Unit processing

Input Output

TRT - IN +TPLC0

TPLC0

TIN: The Input Slave’s ON (OFF) delay TOUT: The Output Slave’s ON (OFF) delay TRT-IN: Input Slave’s communications time/Slave (See page 306.) TRT-OUT: Output Slave’s communications time/Slave (See page 306.) TPLC0: The PLC’s cycle time (program execution + peripheral servicing) The minimum I/O response time (TMIN) is the total of the following terms: TMIN = TIN + TRT-IN + 2 × TPLC0 + TRT-OUT + TOUT Note

1. Refer to SECTION 4 General-purpose Slaves, SECTION 5 Environmentresistive and Waterproof Slaves, and SECTION 6 Special I/O Slave Units Specifications for details on Input and Output Slaves’ delay times. 2. Refer to Refresh Time on page 307 and the PLC’s Operation Manual for details on the PLC’s peripheral servicing cycle time. (See under Synchronous Operation.)

302

Page 318

Section 7-1

Remote I/O Communications Characteristics Maximum I/O Response Time

The maximum I/O response time occurs with the I/O timing shown in the following diagram. Cycle time Program execution

PLC

Program execution

Peripheral servicing

Program execution

Program execution

Peripheral servicing

Master Unit processing

Input Output

TRM +TPLC0

TIN: TOUT: TRM: TPLC0:

TPLC0

TPLC0

The Input Slave’s ON (OFF) delay The Output Slave’s ON (OFF) delay Master Unit’s communications cycle time (See page 305.) The PLC’s cycle time (program execution + peripheral servicing)

The maximum I/O response time (TMAX) is the total of the following terms: TMAX = TIN + 2 × TRM + 3 × TPLC0 + TOUT Note

1. Refer to SECTION 4 General-purpose Slaves, SECTION 5 Environmentresistive and Waterproof Slaves, and SECTION 6 Special I/O Slave Units Specifications for details on Input and Output Slaves’ delay times. 2. Refer to Refresh Time on page 307 and the PLC’s Operation Manual for details on the PLC’s peripheral servicing cycle time. (See under Synchronous Operation.)

CS1H/G, C200HS, and C200HX/HG/HE (-ZE) PLCs

The following timing charts show the minimum and maximum I/O response times of the DeviceNet Network with a CS1H/G, C200HX/HG/HE(-ZE), or C200HS PLC.

303

Page 319

Section 7-1

Remote I/O Communications Characteristics Minimum I/O Response Time

The minimum I/O response time occurs when the Slave’s I/O refreshing is executed just after the input signal is received by the Master Unit and the output signal is output at the beginning of the next I/O refresh cycle. TPLC

PLC

Program execution

Master Unit processing

Input Output

(T PLC -TRF)

TIN: The Input Slave’s ON (OFF) delay (0 used as the minimum value) TOUT: The Output Slave’s ON (OFF) delay (0 used as the minimum value) TRT-IN: Input Slave’s communications time/Slave (See page 306.) TRT-OUT: Output Slave’s communications time/Slave (See page 306.) TPLC: The PLC’s cycle time TRF: The PLC’s DeviceNet Unit refresh time (See page 307.) The minimum I/O response time (TMIN) is the total of the following terms: TMIN = TIN + TRT-IN + (TPLC – TRF) + TRT-OUT + TOUT Note

1. Refer to SECTION 4 General-purpose Slaves, SECTION 5 Environmentresistive and Waterproof Slaves, and SECTION 6 Special I/O Slave Units Specifications for details on Input and Output Slaves’ delay times. 2. Refer to Refresh Time on page 307 and the PLC’s Operation Manual for details on the PLC’s peripheral servicing cycle time.

304

Page 320

Section 7-1

Remote I/O Communications Characteristics Maximum I/O Response Time

The maximum I/O response time occurs with the I/O timing shown in the following diagram. PLC

Program execution

Program execution

Program execution

Master Unit processing

Input Output

TPLC

TIN: TOUT: TRM: TPLC: TRF:

TPLC

The Input Slave’s ON (OFF) delay The Output Slave’s ON (OFF) delay The communications cycle time for the total Network (See page 305.) The PLC’s cycle time The PLC’s DeviceNet Unit refresh time (See page 307.)

The maximum I/O response time (TMAX) is the total of the following terms: TMAX = TIN + 2 × TRM + 2 × TPLC + TRF + TOUT Note

1. Refer to SECTION 4 General-purpose Slaves, SECTION 5 Environmentresistive and Waterproof Slaves, and SECTION 6 Special I/O Slave Units Specifications for details on Input and Output Slaves’ delay times. 2. Refer to Refresh Time on page 307 and the PLC’s Operation Manual for details on the PLC’s peripheral servicing cycle time.

7-1-2

Communications Cycle Time and Refresh Time The communications cycle time, communications time for each Slave, and refresh time are explained in this section. All of these are necessary for calculating the time required for various processes in a DeviceNet Network.

Communications Cycle Time

The communications cycle time is the time from the completion of a Slave’s remote I/O communications processing until remote I/O communications with the same Slave are processed again. The communications cycle time is used to calculate the maximum I/O response time. The communications cycle time depends on the number of Masters on the Network and on whether or not message communications are being performed. The following equations are valid when there is only one Master Unit. For details on cycle time equations for multiple Master Units, refer to page 307. One Master in Network The following equations show the communications cycle time (TRM) when there is only one Master in the Network. Even if the equation result is less than 2 ms, the minimum communications cycle time (TRM) is 2 ms.

305