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

The text of a manual · part 11 of 14

Series One/Series Three Data Communications User's Manual: Chapter 6 Serial Interface Protocol, pages 106 to 113

Pages 106 to 113 of 134, from Series One/Series Three Data Communications User's Manual

The original document is the PDF (14 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 GE Fanuc IC630MDL357A, Fanuc IC630MDL357A and GE IC630MDL357A

Page 106

GEK-90477

Serial

Interface

Protocol

SERIAL

6-l

CHAPTER INTERFACE

6 PROTOCOL

P

The purpose of this chapter is to provide complete information on DCU and DCM serial interface protocol and timing to allow the user to write a serial communications driver for a host computer or microprocessor.

INTRODUCTION,

MASTER-SLAVE

PROTOCOL

The serial interface protocol used for DCU and DCM data communications is based on the Master-Slave portion of CCM protocol developed for Series Six data communications. As used with the DCU or DCM, the host will always be the master and the DCU or DCM will always be the slave. For a complete description of all aspects of Series Six CCM protocol, see Chapter 4 of the Series Six Data Communications Manual, GEK-25364.

ASYNCHRONOUS

DATA

FORMAT

Data transferred across the physical channel will be sent serially one bit at a time. The data is divided into 8-bit bytes and is transferred using an asynchronous format. Figure 6.1 shows the data format. If parity is selected, an additional parity bit is sent. TPK.A.40015 l

BIT 0

BIT I

START

LSe'

BIT2

BIT 3

BIT 4

BIT 9

BIT IO

. DATA l ODDOR

NONE VIADIPSWITCHSELECTION

ON DCM

NOTE: WHEN PARITY IS DISABLED,BIT 9 IS NOT INCLUDED IN THE TRANSMISSION.

Figure

6.1 SERIAL

DATA

FORMAT

Page 107

GEK-90477

The 8-bit explained blocks.

Serial

Interface binary data is transferred with parity and block check codes. As will be in detail later, the data transfer consists of a 17-byte header fhllowed by data The data transfers can be in either direction and are specified by the header.

CONTROL

CHARACTER

The control characters in Table 6.’ I .

CODING used in the serial

Table 6.1

ENQUIRY

6-2

Protocol interface

CONTROL

ABBREVIATION

HEX VALUE

SOH STX ETX EOT 7 EhQ ACK NAK ETB

01 02

03 04 05 06 15 17 protocol

CHARACTER and their meaning are given

CODES

MEANING

Start of Header Start of Text End of Text End of Transmission Enquiry Acknowledgment Negative Acknowledgment End of Transmission Block

RESPONSE DELAY me enquiry response delay is a timed delay inserted between the receipt of an enquiry This is done so that idle slaves, sequence from a master and the response by a slave. which monitor any active link between the master and a slave, will not be confused by enquiry sequences occurring during transmission of the data text. When an idle slave timer of 10 ms plus 4 recognizes an apparent enquiry sequence, it starts an internal character times. If any other character is received before the timer times out, the idle slave disregards Therefore, any device transmitting data text on a multidrop link should the enquiry. ensure that there will be no gaps in the text greater than 2 character times SO an idle slave will not misinterpret data as an enquiry sequence.

Page 108

GEK-90477

Serial

Interface

6-3

Protocol

.

NORMAL

SEQUENCE*,

MASTER-SLAVE E

Normal

Enquiry

Sequence

The form of the Normal (N) Enquiry Sequence from the master to the target slave DCU or DCM and the response by the target slave DCU or DCM is shown below. In data communications involving a DCU or DCM, the DCU or DCM is always the slave (target) and the Series Six or host computer is always the master (source). TPK.A.40366 I BYTE

ENQUIRY

CHARACTER SENT FROM SOUffCE [MASTER) TO SLAVE ITARGET

RESPONSE

CHARACTER SENT FROM SLAVE (TARGET) TO SOURCE MASTER)

I BYTE

I BYTE

OR

Target

N

..

Address

:

ENQ ACKorNAK

: :

If the slave response retry the enquiry. communication.

Normal

ASCII coded “N” (4E in HEX coding) used to specify Normal Sequence operation --sent as a single byte. Target address is the target ID number (set with the DCU Unit ID DIP switches) to which the master is attempting communications plus 20H (ASCII coded “!I’ though “z” or 21 through 7A in HEX coding&sent as a single byte. ASCII control character meaning enquire--sent as a single byte. negative acknowledge or Response from slave meaning acknowledgment --sent as a single byte. to a master enquiry is invalid, the master will delay a short time The master will retry the enquiry 32 times before aborting

Sequence Protocol

The general format for Figure 6-2 shows a data 6.3 shows a data transfer is always the initiator of * and the

Format a successful communication is shown in Figures 6.2 and 6.3. transfer from the source device to the target device and Figure from the target device to the source device. The source device the request; the target device receives the request.

The term, Normal Sequence, is retained Series Six Data Communications Manual from the explanation (GEK-25364).

of CCM protocol in the

Page 109

GEK-90477

Serial

Interface

Protocol

6-4

8- TPK.A.40366

CHARACTER SENT FROM SOURCE DEVICE (MASTER1 CHARACTER SENT FROM TARGET DEVICE tSLAVE1

Figure

6.2

DATA

TRANSFER

FROM MASTER

TO SLAVE TPK.A.40367

CHARACTER SENT FROM SOURCE DEVICE (MASTER1 CHARACTER SENT FROM TARGET DEVICE (SLAVE1

Figure

*

6.3

DATA

TRANSFER

FROM SLAVE TO MASTER

The maximum size of a data block is 256 bytes for the Series One Plus and Series Three PCs. Because of limitations of accessing Series One or Series One Junior memory through the DCU, the standard time outs for CCM protocol shown in Table 6.2 restrict the transmission length of a single request to less than one full data block. For more information see the section, Text Data Blocks.

Page 110

GEK-90477

Master-Slave

Serial

Interface

Normal

6-5

Protocol

Sequence Flow Charts

To fully understand how the protocol and accompanying explanation.

operates

Normal

6.4)

Sequence,

Master

(See Figure under error conditions see ;he flow

Start N Sequence. Start N. Enquiry. Has enquiry been retried 32 times? If YES, send EOT to slave and exit N Sequence. If NO, send N Enquiry (N, Target Address, ENQL Read N Enquiry response. Is there a time-out or error in response (response not an ACK or a NAK)? If yes, delay 10 ms or the turn-around delay if it is not 0 ms, increment Enquiry retry count, and return to “Start N Enquiry”. If NO, send the header to the slave. Read response to header. Is there a time-out on the response? (Condition 4, Table 6.2) If YES, send an EOT and exit the initiate sequence. If NO, is response an ACK or NAK? If YES, has header been retried 3 times? If YES, send EOT and exit initiate sequence. If NO, return to “Send Header”. If NO, go to “Read or Write Data Blocks” depending on the direction transfer.

Normal

Response,

Slave (See Figure charts the of

N data

6.5)

Start N Response. Read N Enquiry. Is N Enquiry sequence correct? If NO, return to “Read N Enquiry”. If YES, Start timer of 10 ms plus 4 character times. Is timer done? If NO, have any characters arrived? If NO, go to “Is Timer Done?“. If YES, go to “Read N Enquiry”. If YES, send N Enqui ry Response. Read header. Is there a time-out between ENQ response and the first character of the header? If YES, send EOT and exit. If NO, is header OK? If NO, has header been retried 3 times? If YES, send EOT and exit. If NO, send NAK and return to “Read Header”. If YES, >end ACK and go to “Read and Write Data Blocks” depending direction of data transfer.

on the

Page 111

GEK-90477

Serial

Interface

6-6

Protocol kS6-84-0057

MASTER-SLAVE: N SEQUENCE

I

PROTOCOL (MASTER)

INCREMENT N ENQUIRY RETRY COUNT

DELAY W

TURK

10 I& RESPONSE’

AROUND

NOT 0 MSEC r-

RETRY HEADER

P SEND HEADER i

I

NO

1YES

NO

%EE CONDITION 1, TABLE 6.2 %EE CONDITIOti4, TABLE 6.2

Figure

6.4

N SEQUENCE,

MASTER

Page 112

GEK-90477

Serial Interface

Protocol

6-7

+CS6-84-0058

READ fu ENQUIRY

I

CHAR

BEFORE

SEND ENGUIRY RESPONSE

ISEE CONDITION 2, TABLE 6.2 2SEE CONDITION_3, TABLE 6.2

Figure

6.5

N RESPONSE, SLAVE

Page 113

GEK-90477

Serial

Interface

Protocol

6-8 kS6-84-0059

SEND EOT

DATA

WRITE DATA

.

BLOCK

NEXT BLOCK .

I

6

SET UP NEXT DATA BLOCK

4

ISEE CONDITION 6, TABLE 6.2 %EE CONDITION48, TABLE 6.2 Figure

6.6 WRITE DATA

BLOCKS,

MASTER

OR SLAVE