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

The text of a manual · part 6 of 20

DH-485/RS-232C Interface Module, Catalog Number 1747-KE, User Manual: 3 - Communicate with the Interface Module

Pages 27 to 38 of 139, from DH-485/RS-232C Interface Module, Catalog Number 1747-KE, User Manual

The original document is the PDF (1.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.

Filed in the catalog under the Allen-Bradley 1747-AIC DH-485

Page 27

Chapter

3

Communicate with the Interface Module

This chapter explains: • full- and half-duplex DF1 communication. • local and remote half-duplex operation. • communicating with master and slave DH-485 devices. • communicating with a modem.

DF1 Communication

The module supports full-duplex DF1 protocol and half-duplex DF1 slave protocol on its RS-232 connection to the host computer (using the DF1 Port). The details of these protocols can be found in the DF1 Protocol and Command Set Reference Manual, publication 1770-RM516.

Full-duplex DF1 Protocol Full-duplex DF1 protocol is provided for applications where high performance peer-to-peer communication is needed. In full-duplex mode, the module can send embedded responses. If the embedded response detect option is set to auto-detect embedded response, the module will not send embedded responses until it receives one from the host. The module makes an assumption that if a host computer sends embedded responses, it can also receive them. In full-duplex mode, the destination address in a packet sent from the host computer to the module is the address of the DH-485 node for which the packet is intended. The source address in packets received by the host computer from the module is the node address of the sender.

1

Publication 1747-UM005B-EN-P - March 2006

Page 28

3-2

Communicate with the Interface Module

Full-duplex (Point-to-point) Full-duplex (Point-to-point) Interface Module (1747-KE)

RSLinx

Modem Modem 1747-C13 Cable

This illustration shows a connection to a single remote SLC node. The 1747-C13 cable eliminates the need for a 1747-AIC link coupler for connections to one node.

Full-duplex (Network Example) Full-duplex (Network Example) Interface Module (1747-KE)

RSLinx Link Coupler ((1747-AIC) Modem Modem

Link Coupler ((1747-AIC)

Link Coupler ((1747-AIC)

This illustration shows a connection to a remote DH-485 network of up to 31 SLC nodes.

Half-duplex DF1 Protocol The module provides two modes of half-duplex addressing: local and remote. Local mode is provided for compatibility with earlier DF1 products, such as the Data Highway/Data Highway Plus Asynchronous Interface Module (catalog number 1770-KF2) and when only one interface module is used in the system. Publication 1747-UM005B-EN-P - March 2006

Page 29

Communicate with the Interface Module

3-3

You may prefer local mode for use in applications where the RS-232C link is not networked, since it simplifies the polling algorithm. Remote mode should be used when more than 31 SLC nodes are required on the DH-485 network. Because the interface module is transparent to the master device, existing drivers can be used without rewriting.

Local Mode Local mode requires an intelligent master device, capable of specifying both a station address and a destination address. Because the interface module acts as a slave on a half-duplex network, the half-duplex master’s access to the DH-485 node is indirect. The destination address and the station address are generally different. In local mode, the polling algorithm used by the half-duplex master is simplified so that the master only needs to poll the single interface module. The module will respond to messages from the half-duplex master only if the station address contained in these messages is the node address of the interface module. The module then forwards the packet to the appropriate DH-485 node, as defined by the destination address. Responses from remote nodes on the DH-485 network contain a destination address equal to that of the interface module, and not that of the half-duplex master device. The module responds to poll packets from the half-duplex master by returning whatever data has been forwarded to it by the remote nodes under its jurisdiction. In the Local Mode illustration on page 3-4, the half-duplex master only polls the interface module at station address 01. Messages from the half-duplex master to the SLC 500 controllers are sent using a master message containing both the station address of the interface module (node 01) and the destination address of the SLC 500 controller (node 03 for example). Responses from the SLC 500 controllers to the half-duplex master contain the destination address of the interface module (node 01), which then returns all responses to the half-duplex master station upon being polled. During configuration of the interface module, the module’s destination address, or slave address, is selected if Local mode has been selected.

Publication 1747-UM005B-EN-P - March 2006

Page 30

3-4

Communicate with the Interface Module

Local Mode SLC 500 Node 02

Link Coupler ((1747-AIC)

PLC 5 controller

DF1 Master

RS-232C DF1

SLC 500 Node 01

SLC 500 Node 03 DH-485

Link Coupler ((1747-AIC) DH-485

SLC 500 Node 00

Link Coupler ((1747-AIC)

Remote Mode The valid range of slave addresses on a half-duplex network is 000 through 376 octal (000 through 254 decimal) accommodating a total of 255 devices. The valid range of addresses on a DH-485 network is 00 through 37 octal (00 through 31 decimal). To let addressing of up to 255 DH-485 nodes, eight groups (group numbers 00 through 07) of DH-485 networks are established. Each group number defines a DH-485 network, which can consist of up to 32 nodes each (except for group 07 which is limited to 31 nodes). Refer to the table on page 3-6. During configuration of the interface module, the module’s group number is selected if Remote mode has been selected. In remote mode, the module appears transparent to the half-duplex master, so that remote SLC 500 controllers can be polled directly as individual slaves on the half-duplex network. The interface module responds to the half-duplex master if the station address specified corresponds to the node address of any (token-passing) station on the DH-485 network connected to that interface module.

Publication 1747-UM005B-EN-P - March 2006

Page 31

Communicate with the Interface Module

3-5

Messages from the remote nodes on the DH-485 network (such as the SLC nodes) use the destination address of the module. Normally the module responds to a message from the DF1 master by swapping the source and destination addresses in the received message, assuring that the reply message is sent to the proper DF1 master station. If a DH-485 node initiates a message to the DF1 master, the module overwrites the destination address with the master station value configured in the Remote mode submenu. The message received by the half-duplex master will contain a source address equal to the station address specified in the poll packet, and a destination address equal to the address of the half-duplex master device. Remember that half-duplex DF1 (group) addresses are in octal and DH-485 node addresses are in decimal. The table on page 3-6 provides the conversion using the group number.

Publication 1747-UM005B-EN-P - March 2006

Page 32

3-6

Communicate with the Interface Module

Half-duplex Remote Address Conversion Table DH-485 Half–duplex DF1 Address (octal) Node Address Group 00 Group 01 Group 02 Group 03 Group 04 Group 05 Group 06 Group 07 (decimal)

Publication 1747-UM005B-EN-P - March 2006

00

000

040

100

140

200

240

300

340

01

001

041

101

141

201

241

301

341

02

002

042

102

142

202

242

302

342

03

003

043

103

143

203

243

303

343

04

004

044

104

144

204

244

304

344

05

005

045

105

145

205

245

305

345

06

006

046

106

146

206

246

306

346

07

007

047

107

147

207

247

307

347

08

010

050

110

150

210

250

310

350

09

011

051

111

151

211

251

311

351

10

012

052

112

152

222

252

322

352

11

013

053

113

153

213

253

313

353

12

014

054

114

154

214

254

314

354

13

015

055

115

155

215

255

315

355

14

016

056

116

156

216

256

316

356

15

017

057

117

157

217

257

317

357

16

020

060

120

160

220

260

320

360

17

021

061

121

161

221

261

321

361

18

022

062

122

162

222

262

322

362

19

023

063

123

163

223

263

323

363

20

024

064

124

164

224

264

324

364

21

025

065

125

165

225

265

325

365

22

026

066

126

166

226

266

326

366

23

027

067

127

167

227

267

327

367

24

030

070

130

170

230

270

330

370

25

031

071

131

171

231

271

331

371

26

032

072

132

172

232

272

332

372

27

033

073

133

173

233

273

333

373

28

034

074

134

174

234

274

334

374

29

035

075

135

175

235

275

335

375

30

036

076

136

176

236

276

336

376

31

037

077

137

177

237

277

337

Illegal

Page 33

Communicate with the Interface Module

3-7

Remote Mode Addressing on a Multi-drop Network Example This example shows a PLC-5 controller as the half-duplex master in a multi-drop configuration. Each interface module has been configured after Remote mode has been selected. The half-duplex master address of the PLC-5 controller has been set to 010 (octal). Remote Mode Addressing on a Multi-drop Network

PLC-5 processor 0108

Interface Module 0108 01

Dedicated Line Modem

Dedicated Line Modem

Interface Module 0408 00

Dedicated Line Modem

SLC 500 0448 04

SLC 500 0058 05

Dedicated Line Modem

SLC 500 1008 00

SLC 500 0438 03

SLC 500 0028 02

Interface Module 01018 01

SLC 500 1318 25 SLC 500 1208 16

SLC 500 0118 09 XXX8 = DF1 Multi-drop Address (octal) XX = DH-485 Local (decimal) Network Address

Group 00

Group 01

IMPORTANT

SLC 500 1048 04

Group 02

Each interface module must be set up for a unique group number.

Publication 1747-UM005B-EN-P - March 2006

Page 34

3-8

Communicate with the Interface Module

The group number is used by the interface module to create a half-duplex DF1 address for each node on the DH-485 network. The DF1 addresses are the octal equivalent of an eight bit binary word with the three most significant bits corresponding to the group number and the five least significant bits corresponding to the local network address. Addresses Group Number (3 in this example)

and

DH-485 Local Network Address (29 in this example)

011

11101

01 111 101 combine to make this binary word

1 which has this octal value. (DF1 Multi-drop Address)

7

5

The following table lists the devices from the above network along with their DH-485 local network address and their DF1 multi-drop address. Devices and Corresponding Addresses Group Device 00

01

02

Publication 1747-UM005B-EN-P - March 2006

DH-485 Address DF1 Address DF1 Address (decimal) (binary) (octal equivalent)

1747–KE

01

00|000|001

001

SLC 500

02

00|000|010

002

SLC 500

05

00|000|101

005

SLC 500

09

00|001|001

011

1747–KE

00

00|100|000

040

SLC 500

04

00|100|100

044

SLC 500

03

00|100|011

043

1747–KE

01

01|000|001

101

SLC 500

00

01|000|000

100

SLC 500

25

01|011|001

131

SLC 500

16

01|010|000

120

SLC 500

04

01|000|100

104

Page 35

Communicate with the Interface Module

3-9

Slave-to-slave Communication The interface module lets communication from a DH-485 network device to a single DF1 slave device, regardless of which mode of half-duplex addressing is selected (local or remote). To achieve this, the interface module’s Master Station Address must be configured as that DF1 slave address. For example, if the RSLinx terminal in the illustration below is DF1 node 3, the interface module’s Master Station Address must be configured as node 3. Slave-to-slave Communication Link Coupler (1747-AIC)

PLC-5 processor (DF1 Master)

Interface Module (1747-KE)

DF1 Slave

Dedicated Line Modem Dedicated Line Modem

Dedicated Line Modem

Link Coupler (1747-AIC)

Link Coupler (1747-AIC)

(DF1 Slave)

In this illustration, a packet from the RSLinx computer, intended for an SLC node, is first transferred to the PLC-5 controller (DF1 master). The PLC-5 controller then transfers the packet to the interface module, which converts it to a DH-485 packet and sends it to the specified SLC node. The SLC node’s response goes through the interface module to the PLC-5 controller. The PLC-5 controller then transfers the response to the RSLinx computer. The operation of slave-to-slave communication differs slightly depending on whether the interface module is in local or remote mode.

Publication 1747-UM005B-EN-P - March 2006

Page 36

3-10

Communicate with the Interface Module

Slave-to-slave communication When the interface module is in

Slave-to-slave communication occurs

Local mode

Only if the module’s DF1 node is the same as the DH-485 node for which the message is destined. In this mode the RSLinx computer can only communicate with one SLC node. For example, if you want a DF1 slave terminal in the illustration above to communicate with an SLC processor in node 2 of the DH-485 network, then the interface module’s DF1 slave address must be set to 2.

Remote mode

Between the DF1 slave and any of the DH-485 devices connected to the interface module. The addresses for the DH-485 devices are determined by the group number in the interface module. Refer to the Half-duplex Remote Address Conversion Table in Chapter 3. For example, if the interface module in the illustration above is configured as group 03, and the DH-485 node to be accessed has a DH-485 address of 01, then the DF1 slave device will use address 141 (octal) when accessing this device.

Communicate with DH-485 Devices ATTENTION

Do not force outputs to a remote SLC system through the interface module. Phone line disturbances, interface module failure, or other system failure could disrupt remote communications and cause the outputs to remain active.

DH-485 Token Passing Devices The interface module operates as a token passing master on the DH-485 network. It can communicate with other DH-485 master stations (such as an SLC 5/02 processor) and with DH-485 token passing slave devices (such as an SLC 5/01 processor). The module communicates with other master stations using the Allen-Bradley programmable controller command set. For details, refer to the DF1 Protocol and Command Set Reference Manual, publication 1770-RM516.

Publication 1747-UM005B-EN-P - March 2006

Page 37

Communicate with the Interface Module

3-11

DH-485 Non-Token Passing Devices The DH-485 network also supports non-token passing slave devices. The module communicates with these slaves using a special PLC command (CMD) byte. Application programs communicate with non-token passing slaves via Send and Receive Data (SRD) messages on DH-485. The SRD message is a link layer service provided on DH-485. The Programmable Controller Communications Command Set (PCCC) has been extended to provide SRD messages by setting the PCCC CMD byte to 09. The SRD message cannot be used in slave-to-slave communication. A detailed description of the packet is found in the DF1 Protocol and Command Set Reference Manual, publication 1770-RM516. The format of the application layer data within the packet is completely dependent on how the destination device is implemented. Refer to the destination device’s user manual for this information.

Communicate with a Modem

The hardware handshaking option must be enabled for the module to properly control a modem. The module continually asserts DTR while it is waiting for a call. Under this condition, the modem answers a call and asserts DCD upon connection. When the module detects DCD, communications can start. After detecting DCD, the module continues to monitor the DCD line. If DCD goes off, the module restarts the 10-second timeout. If DCD is not restored within 10 seconds, the module initiates the hang-up sequence. This feature lets the remote node to redial in case the connection was lost due to a fault in the phone system. This handshaking is necessary to guarantee access to the phone line. If the handshaking protocol is defeated by improper selection of modem options or wiring of communication cables, the modem may still answer a call. But if the connection is lost, the modem will not hang up. It will then be impossible for the remote node to reestablish the connection because it will get a busy signal.

Publication 1747-UM005B-EN-P - March 2006

Page 38

3-12

Communicate with the Interface Module

For successful modem communication be sure that: • RSLinx software and the interface module agree on communication rate and error checking. • both modems have the echo disabled. • both modems have Carrier Detect set to normal (unforced). • both modems have DTR Dialing disabled. • the modem to receive the call has auto answer enabled.

Publication 1747-UM005B-EN-P - March 2006