Communication with a modem, Communicating with a modem – Rockwell Automation 1770-KF3 DH-485 Communication Interface User Manual User Manual

Page 42

Advertising
background image

Communicating with the KF3

Chapter 4

4Ć9

Reply Format, SRD Request

The format of a reply to an SRD request is shown in Figure 4.5:

the CMD byte will have the reply bit set

the link type will be set to SRD Request

the link status will indicate success or failure

the LSAP of the slave device (SLSAP) will be included

if the request was successful, the data will be included. Note that

some devices may not return data. The format of data is completely
dependent on how the destination device was implemented. Refer to the
destination device’s user manual for this information.

Figure 4.5

SRD Reply Packet Format

DLE

STX

DST

SRC

CMD

49

LINK TYPE

01

LSTS

DATA...

DLE

ETX

BCC/CRC

SLSAP

The handshaking option must be enabled for the KF3 to properly control a
modem.

The KF3 module continually asserts DTR when it is waiting for a call.

Under this condition, the modem will answer a call and assert DSR as
soon as it detects ringing. The KF3 does not monitor the ring indicator in
the RS-232C interface. Once it detects DSR, the module starts a timer
(approximately 10 seconds) and waits for the DCD signal. When the
module detects DCD, communication can start.

If the KF3 does not detect DCD within the 10-second timeout, the
module turns DTR off. This causes the modem to hang up and break the
connection. When the hang-up is complete, the modem turns off DSR.
This causes the module to reassert the DTR line and wait for another call.
This feature protects access to the phone if someone calling a wrong
number reaches this node.

After detecting DCD, the KF3 continues to monitor the DCD line. If DCD
goes off, the module restarts the 10-second timeout. If DCD is not restored
within the timeout, the module initiates the hang-up sequence. This feature
allows the remote node to redial in the event that the connection is lost
through a fault in the phone network.

Communicating with a
Modem

Advertising