The text of a manual · part 28 of 39
C200HW-DRT21, CQM1-DRT21, DRT1 Series DeviceNet Slaves Operation Manual: W347-E1-06.pdf, pages 271 to 280
Pages 271 to 280 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 271
Section 6-1
C200H I/O Link Units
6-1-10 Dimensions (With connector attached)
Unit: mm DRT21
130
13 101
35
For dimensions of the Unit when mounted to a Backplane, refer to the SYSMAC C200HX/HG/HE PLC Operation Manual or the SYSMAC CS1G/H PLC Operation Manual.
6-1-11 Installing in a Control Panel The C200H I/O Link Unit must be mounted in the Backplane of a CS1H/G or C200HX/HG/HE PLC. The Unit mounts in the Backplane just like standard Units. Refer to the PLC’s Operation Manual or Installation Guide for details on mounting the Unit in the Backplane and installing the PLC in a control panel. Note The C200H I/O Link Unit uses work words in the PLC (CS1H/G or C200HX/ HG/HE) to exchange I/O data with the Master, so it isn’t necessary to wire an internal power supply, I/O power supply, or I/O lines.
6-1-12 C200H I/O Link Unit Application Examples This section explains the procedure for using explicit messages with a C200H I/O Link Unit. The following system configuration example is used in this example. When explicit messages are used with a C200H I/O Link Unit, the areas in the Slave’s PLC can be read or written.
256
Page 272
Section 6-1
C200H I/O Link Units C200HW-DRM21-V1 Master Unit (node address 00, unit number 0)
24-V DC power supply
C200HW-DRT21 I/O Link Unit (node address 07)
C200HX PLC T-branch Tap Terminating Resistor T-branch Tap
Reading Data from a Slave
Terminating Resistor T-branch Tap
With the following program, 10 words (20 bytes) of data is read from DM 1000 of the Slave (PLC to which C200H I/O Link Unit is mounted) when IR 00000 turns ON in the CPU Unit of the Master Unit. The data that is read is stored in the response storage words DM 0104 to DM 0113. Ladder Program
25315 BSET (71) #0000 00001
Clears the response storage words (DM 0100 to DM 0113) when the program starts or data reading starts.
DM0100 DM0113
25315 MOV (21) #8200 DM0000
Response storage word: DM 0100 (82 Hex: DM; 0064 Hex: word 100; 00 Hex: Word data)
MOV (21) #6400 DM0001
Response monitoring time: 10 s MOV (21) #0064 DM0002
Number of command data bytes: 12 bytes MOV (21) #000B DM0003
EXPLICIT MESSAGE SEND command code (FINS): 2801 Hex
MOV (21) #2801 DM0004
Slave node address: 07 BYTE DATA READ command service code: 1C Hex
MOV (21) #071C DM0005
257
Page 273
Section 6-1
C200H I/O Link Units Class ID: 2F Hex
MOV (21) #002F DM0006
Instance ID: DM Area (03 Hex) MOV (21) #0003 DM0007
First read address: 03E8 Hex (word 1000) MOV (21) #E803 DM0008
Number of bytes read: 20 bytes (10 words) MOV (21) #1400 DM0009
When IR 00000 turns ON, IR 00001 will turn ON for one cycle (as a differentiated bit).
00000 DIFU (13) 00001
When differentiated bit IR 00001 turns ON, the sequential processing control bit IR 03000 will turn ON.
00001 MOV (21) #0001 030 03000
10112 IOWR #00FE DM0000
When IR 03000 turns ON, the CPU Unit will check that IR 10112 (Unit number 0 Master's Message Communications Execution Enabled Flag) is ON, and message transmission will start.
#0010
00FE: Master's node address 00, Master's unit address FE Hex
#0000
DM 0000: Command data storage words 0010 Hex: Master's unit number 00, 10 command data words (BCD)
25506 MOV (21)
030 25506 MOV (21) #0001 030
If the Equals Flag is ON (writing to the Master has been completed normally), IR 03000 will be cleared (message transmission completed). If the Equals Flag is OFF (error in writing to the Master), IR 03000 will be turned ON, and the data will be transmitted again.
END (01)
Note When transmitting explicit messages from an OMRON Master Unit, specify 2 bytes each for the Class ID and the Instance ID. Response When data is read properly, the response will be stored as shown in the following table.
258
Words DM 0100
Contents (Hex) 28 01
Meaning EXPLICIT MESSAGE SEND command code is 28 01 Hex.
DM 0101
00 00
Response code is 0000 Hex (normal completion).
DM 0102
00 16
Number of bytes received (data length from word DM 0103 onwards) is 22 bytes.
DM 0103
07 9C
Slave node address is 07. BYTE DATA READ response service code is 9C Hex.
DM 0104 to xx xx to
Data read from word DM 1000 of Slave. ---
DM 0113 xx xx
Data read from word DM 1009 of Slave.
Page 274
Section 6-1
C200H I/O Link Units Writing Data to Slave
With the following example, DM 0009 to DM 0018 in the Master’s CPU Unit are written to IR 000 to IR 009 (20 bytes) in the Slave (CPU Unit to which C200H I/O Link Unit is mounted) when IR 00002 turns ON in the CPU Unit of the Master Unit. Before IR 00002 turns ON at the Master Unit, make sure that the data to be written to the Slave is stored in DM 0009 to DM 0018. Ladder Program
25315
Clears the response storage words (DM 0100 to DM 0103) when the program starts or data writing starts.
BSET(71) #0000 DM0100 00003 DM0103 25315 MOV(21) #8200 DM1000 MOV(21)
Response storage word: DM 0100 (82 Hex: DM; 0064 Hex: word 100; 00 Hex: Word data)
#6400 DM1001
Response monitoring time: 10 s MOV(21) #0064 DM1002
Number of command data bytes: 30 bytes MOV(21) #001E DM1003 MOV(21)
EXPLICIT MESSAGE SEND command code (FINS): 2801 Hex
#2801 DM1004 MOV(21)
Slave node address: 07 BYTE DATA READ command service code: 1E Hex
#071E DM1005
Class ID=2F Hex
MOV(21) #002F DM1006
Instance ID: IR Area 1 (01 Hex) MOV(21) #0001 DM1007
First write address: 0000 Hex (word 000) MOV(21) #0000 DM1008 00002 DIFU(13)
When IR 00002 turns ON, IR 00003 will turn ON for once cycle (as differentiated bit).
00003
When IR 00003 turns ON, the sequential processing control bit IR 04000 will turn ON.
00003 MOV(21) #0001 040
259
Page 275
Section 6-2
RS-232C Units 04000
10112 IOWR #00FE DM1000 #0019
When IR 04000 turns ON, the CPU Unit will check that IR 10112 (Unit number 0 Master's Message Communications Execution Enabled Flag) is ON, and message transmission will start. 00FE: Master's node address 00, Master's unit address FE Hex DM 1000: Command data storage words
25506 MOV(21) #0000
0019 Hex: Master's unit number 00, 19 command data words (BCD)
040
If the Equals Flag is ON (writing to the Master has been completed normally), IR 04000 will be cleared (message transmission completed).
#0001
If the Equals Flag is OFF (error in writing to the Master), IR 04000 will be turned ON, and the data will be transmitted again.
25506 MOV(21)
040
END(01)
Note When transmitting explicit messages from an OMRON Master Unit, specify 2 bytes each for the Class ID and the Instance ID. Response When data is written properly, the response will be stored as shown in the following table. Words
6-2
Contents (Hex)
Meaning
DM 0100
28 01
EXPLICIT MESSAGE SEND command code is 28 01 Hex.
DM 0101
00 00
DM 0102
00 02
DM 0103
07 9E
Response code is 0000 Hex (normal completion). Number of bytes received (data length from word DM 0103 onwards) is 2 bytes. Slave node address is 07. BYTE DATA READ response service code is 9E Hex.
RS-232C Units The RS-232C Unit is a Special I/O Unit that uses the DeviceNet Network to exchange I/O between the Master Unit and an RS-232C port. Explicit messages are used to set the Unit and perform I/O. There are two RS-232C ports which can be used separately with the RS-232C Unit.
6-2-1
Communications Cable Connections Wire communications cables to the RS-232C Unit using the standard Square Connectors, just like General-purpose Slaves. This section does not explain how to connect communications cables. For details on connecting the cables, refer to 4-2 Connecting Communications Cables to General-purpose Slaves.
6-2-2
Node Address and Baud Rate Settings This section describes the Slaves’ node address setting and baud rate setting. These settings are made using the following pins on the DIP switch.
260
Page 276
Section 6-2
RS-232C Units Pins 1 through 6 Pins 7 and 8
ON
Node address setting: Baud rate setting:
1 2 3 4 5 6 7 8 9 10 Reserved (Always OFF.) Node address setting Baud rate setting
Node Address Settings
Each Slave’s node address is set with pins 1 through 6 of the Slave’s DIP switch. Any node address within the setting range can be used as long as it isn’t already set on another node. Pin 6
DIP switch setting Pin 5 Pin 4 Pin 3 Pin 2
Pin 1
Node address
0 0
0 0
0 0
0
0
0
0 0
0 0
0 1
0 (default) 1
0
1
0
2
: :
Note
: :
1
1
1
1
0
1
61
1 1
1 1
1 1
1 1
1 1
0 1
62 63
1. Refer to Appendix A Node Address Settings Table for a complete table of DIP switch settings. 2. The Slave won’t be able to participate in communications if the same node address is used for the Master or another Slave node (node address duplication error).
Baud Rate Setting
Pins 7 and 8 are used to set the baud rate as shown in the following table. (These pins are factory-set to OFF.) Pin settings Pin 7
Note
Baud rate
Pin 8
OFF
OFF
125 kbps (factory setting)
ON OFF
OFF ON
250 kbps 500 kbps
ON
ON
Not allowed.
1. Always turn OFF the Slave’s power supply (including the communications power supply) before changing the baud rate setting. 2. Set the same baud rate on all of the nodes (Master and Slaves) in the Network. Any Slaves with baud rates different from the Master’s rate won’t be able to participate in communications, and may cause communications errors to occur between nodes with correct baud rate settings.
261
Page 277
Section 6-2
RS-232C Units
6-2-3
Specifications
General Specifications Item Models
Specification DRT1-232C2
Input points
Inputs: 2 ports max. (One word is used in the IN Area to detect the communications status.) Communications power 11 to 25 V DC supply voltage (Supplied from the communications connector.) Internal power supply voltage
20.4 to 26.4 V DC (24 V DC, –15 to +10%)
Current consumption
Communications: 50 mA max. Internal circuits: 100 mA max.
Noise immunity
Internal power supply normal: ±600 V Internal power supply common: ±1.5 kV Pulse width: 0.1 to 1 µs Pulse rise time: 1 ns (via noise simulator)
Vibration resistance
10 to 150 Hz, 1.0-mm double amplitude or 69 m/s2
Shock resistance
200 m/s2
Dielectric strength
Ambient temperature
500 V AC, 50/60 Hz for 1 min, leakage current: 1 mA max. (between DC power supply and FG) 20 MΩ min. at 100 V DC (between DC power supply and FG) –10 to 55°C
Ambient humidity Operating atmosphere
25% to 85% (with no condensation) No corrosive gases
Storage temperature Mounting
–25 to 65°C M4 screw mounting or DIN 35-mm track mounting
Mounting strength
100 N Track direction: 10 N
Terminal strength Weight
100 N 250 g max.
Insulation resistance
RS-232C Communications Specifications Item
262
Specification
Communications method
All dual communications, Start-stop synchronization
Baud rate Transmission code
19,200/9,600/4,800/2,400/1,200 bps ASCII (7-bit), JIS (8-bit)
Parity No. of stop bits
Even, odd, none 1 or 2 bits
RS-232C ports Connectors
2 ports D-sub 9-pin connector for 2 ports
Transmission memory capacity Frame length
1,024 bytes for 2 ports
Header code
Enable/disable (Header code: 1 byte when enabled.)
Delimiter code
Enable/disable (Delimiter code: 1 byte when enabled.)
1,024 bytes max. (FIFO)
Page 278
Section 6-2
RS-232C Units Item Flow control
Transmission distance
6-2-4
Specification Enable/Disable (RS/CS control only) Flow Control Enabled The RS (Request Send) signal is normally ON, but it turns OFF when the receive buffer reaches 75% of capacity. CS is always checked. Flow Control Disabled The RS (Request Send) signal is always ON. The Receive Buffer Overflow Flag turns ON if the receive buffer overflows. CS is always checked. Note: The CS signal is always checked. Data will not be output if CS is not connected. Short-circuit the RS-CS signals when they are not used. 15 m max.
Components RS-232C connector Indicators port 1 RS-232C connector port 2
Power supply DIP switch (Refer to page 260.) terminal Pins 1 to 6: Node address Communications connector Pins 7 and 8: Baud rate Pins 9 and 10: Reserved (Always OFF)
Indicators
The indicators display the status of the RS-232C Unit and the network. Indicator Color MS Green (Module status) Red
---
ON
Status Normal
Meaning The Unit is operating normally.
Flashing
Settings incomplete
Settings are being read.
ON
Fatal error
Flashing
Non-fatal error No power supply
A fatal error (hardware error) has occurred. A non-fatal error, such as a switch setting error, has occurred. Unit error, power is not being supplied, the Unit is being reset, or waiting for initial processing to start.
OFF
263
Page 279
Section 6-2
RS-232C Units Indicator Color NS Green (Network status)
ON
Flashing
Red
ON
Flashing
---
OFF
ERR
Red
ON
RD1
Orange
OFF ON OFF
SD1
RD2
SD2
Orange
Orange
Orange
Meaning Normal Network status (Communications connection established.)
Offline/communications connection not yet established Fatal communications error
The Network is normal, but the communications connection is not established.
Non-fatal communications error Offline/ power OFF Unit error
A fatal communications error has occurred. Network communications are not possible. Check for a node address duplication or Bus Off error. A communications error with the Master Unit has occurred. The power supply to the Master Unit is not ON, etc. Unit hardware error.
Normal Unit hardware is normal. Port 1 receiv- Data is being received at ing RS-232C port 1. Port 1 not No data is being received at receiving RS-232C port 1.
ON
Port 1 transmitting
Data is being transmitted from RS-232C port 1.
OFF
Port 1 not transmitting
No data is being transmitted from RS-232C port 1.
ON
Port 2 receiv- Data is being received at ing RS-232C port 2.
OFF
Port 2 not receiving Port 2 transmitting Port 2 not transmitting
ON OFF
264
Status Online/communications connection established
No data is being received at RS-232C port 2. Data is being transmitted from RS-232C port 2. No data is being transmitted from RS-232C port 2.
Page 280
Section 6-2
RS-232C Units
6-2-5
Word Allocations for Communications Status The RS-232C Unit is allocated one word (16 points) in the IN Area of the Master Unit. This word is configured as illustrated in the following diagram, and is used to communicate the communications status of RS-232C ports 1 and 2 to the Master Unit. Port 2 status
Port 1 status
Bit
Bits 0, 8: Transmission Ready Flag Bits 1, 9: System Parameter Setup Error Flag Bits 2, 10: Receiving Flag Bits 3, 11: Received Flag Bits 4, 12: Parity Error Flag Bits 5, 13: Overrun Error Flag Bits 6, 14: Framing Error Flag Bits 7, 15: Receive Buffer Overflow Flag
0
Bit 8
Name Transmission Ready Flag
Function
1
9
PLC Setup Error Flag
0: System parameter setup normal 1: System parameter setup error
2
10
Receiving Flag
0: No data is being received 1: Data is being received
3
11
Received Flag
0: No data in the reception buffer 1: Data in the reception buffer When reading data from other ports (RECEIVE READ DATA command), check to make sure this bit is 1 (ON) before starting.
4
12
Parity Error Flag
5
13
6
14
7
15
0: Transmitting data 1: Transmission enabled (no data transmitted) When writing data to other ports (SEND command), check to make sure this bit is 1 (ON) before starting.
0: No parity error 1: Parity error When a parity error occurs, make sure that the parity setting for the RS-232C Unit and the RS232C device are the same. Overrun Error Flag 0: No overrun error 1: Overrun error When an overrun error occurs, make sure that the baud rate setting for the RS-232C Unit and the RS-232C device are the same. Framing Error Flag 0: No framing error 1: Framing error When a framing error occurs, make sure that the character format setting (data length, parity, No. of stop bits) for the RS-232C Unit and the RS232C device are the same. Receive Buffer 0: No overflow in the reception buffer Overflow Flag 1: Reception buffer overflow (Not possible to read receive data) When the reception buffer overflows it is necessary to either reset or restart the RS-232C Unit, or reset (initialize) the RS-232C port at which the overflow occurred.
265