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

The text of a manual · part 7 of 14

Series One/Series Three Data Communications User's Manual: Chapter 5 Communication Examples using the Series Six PC as a Master Device, pages 66 to 75

Pages 66 to 75 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 66

GEK-90477

Communication

Table 5.4 (Cont.)

Examples

MAPPING

5-11

OF SERIES THREE REFERENCES (MEMORY TYPE 3)

TO TARGET

ADDRESSES

MEMORY

SERIES

MAPPED

SERIES

MAPPED

SERIES

MAPPED

SERIES

MAPPED

TYPE

THREE

ADDRESS

THREE

ADDRESS

THREE

ADDRESS

THREE

ADDRESS

REFERENCE

DEC HEX

REFERENCE

DEC HEX

REFERENCE

DEC HEX

REFERENCE

DE{ HEX (

Shift

9000-9007

. . 97

61

9100-9107

..105

69

Registers

9010-9017

. . 98

62

9110-9117

JO6

6A

63

9120-9127

..107

6B

L Tvpe

.

1

9020-9027

. . 99

.

9030-9037

. .100

64

9130-9137

..108

6C

.

9040-9047

. .101

65

9140-9147

..109

60

.

9050-9057

. .102

66

9150-9157

..llO

6E

.

9060-9067

. .103

67

9160-9167

..lll

6F

.

9070-9077

. .104

68

9170-9177

..llZ

70

Timer/

000-007

. ..113

71

100-107

. ..Vl

79

Counter

010-017

. . . 114

72

110-117

. ..122

7A up status

020-027

. ..115

73

120-127

. ..123

78

. . . . .

030-037

. ..116

74

130-137

. ..124

7C

040-047

. ..117

75

140-147

. ..I25

70

050-057

. ..118

76

150-157

. ..126

7E

060-067

. ..119

77

160-167

. ..127

7f

070-077

. ..120

78

170-177

. ..128

80

,1 I

_

A

Page 67

GEK-90477

Communication

Examples

5-12 -JMu

Rnnnn t 4: DATA

LENGTH

This is the data length of the source (Series Six) memory To determine the source data length, source and target memory types. Table 5.5 somE 1: 7 -9

3:

UNIT LENGTHS

(SERIESsix)

it is necessary

OF SOURCE AND

MEMORY TYPE

Registers Inputs and Outputs type.

to compare

TARGET the unit

MEMORY lengths of the

TYPES

UNIT LENGTH

LENGTH ACCESSIBLE

1 Reg = 16 bits 1 Point = 1 bit

Register(s) Multiples of 8 Points

UNIT LENGTH

LENGTH ACCESSIBLE

1 Accum = 16 bits 1 Data = 8 bits Reg 1 Point = 1 bit 1 Byte = 8 bits 1 Word = 16 bits 1 Word = 16 bits

Accumulator(s) Multiples of 2 Reg

1

SERIES ONE, JUNIOR/PLUS, SERIES THRE E ?JE>lORYTYPE 1: 1: 3.

61 7 .. 9. l

Timer/Counter Accumulator Data Registers (Series One Plus and Three Only) Discrete I/O Scratch Pad Bytes User Logic Word Diagnostic Status Word

Multiples of 8 Points 2 Bytes Word(s) 5 Words * c

Example: If you want to read 5 target Timer/Counter accumulators registers! the Data Length is 5 registers since the unit length is the However, if you want to read the 5 target Timer/Counter accumulators inputs, the Data Length is 5 Accum. x 16 Points/Accum. = 80 Points.

into *Series Six same for each. into Series Six

Example: If you want to read 8 target discrete I/O into Series Six inputs, the Data Lenth is 8 points since the unit length is the same for each. Discrete I/O and Series Six I/O can only be accessed in multiples of 8. Refer to the communication and source memory types

Limitations on Amount examples in this chapter for of Data for the Series One and Series other combinations

One Junior of target

PCs

For communications with the Series One Plus and Series Three PCs, the maximum amount of data which can be transferred is limited only by the maximum size of the Series One Plus or Series Three memory type being accessed. For communications with the Series One and Series One Junior PCs, the maximum amount of data which can be transferred is limited by the maximum size of memory types 6 (Scratch Pad> snd 9 (Diagnostic Status Words). But the maximum amount of data which can be transferred is limited further for memory types 1 (T/C Accumulators), 3 (l/O and Shift Registers), and 7 (User Logic) as shown in Table 5.6.

Page 68

GEK-90477

Communication

Examples

5-13

Table 5.6 MAXIMUM AMOUNT OF DATA FOR SERIES ONE AND SERIES ONE JUNIOR MEMORY TYPES 1, 3, AND 7

TYPE OF COMMUNICATION REQUEST

MAXIMUM AMOUNT OF DATA FOR EACH COMMUNICATION

SERIES ONE PC*

SERIES ONE JR PC

Read from Memory Type 1 (T/C Accumulators) Write to Memory Type 1 (T/C Accumulators)

58 Ace

Read from Memory Type 3 (I/O and Shift Reg) Write to Memory Type 3 (I/O and Shift Reg)

368 I/O

46 Bytes

24 I/O

3 Bytes

Read from Memory Type 7 (User Logic) Write to Memory Type 7 (User Logic)

75 Words

150 Bytes

25 Words

50 Bytes

45 Words

90 Bytes

20 Words

40 Bytes

* CPU Revision

116 Bytes

All 21 Act

Communication Not Supported

42 Bytes

Communication Not Supported 176 I/O

22 Bytes

No I/O, Communication Times Out

C or later.

Rnnnn + 5: SOURCE

MEMORY

ADDRESS

*

This is the memory address of the source device (Series Six CPU) at which to begin. The command number specifies the source memory type.

Table 5.7

MEMORY TYPE

SOURCE

MEMORY the transfer is

ADDRESS

SOURCE ADDRESS RANGE .

DESCRIPTION

Register Table

Model 60, 2K memory Model 60, 4K memory Model 600, Model 6000 & Series Six Plus l-256 l-1024 l-1024*

Input Table Output Table

Input or output. The number must begin on the beginning of a byte boundary: 1, 9, 17 0 0 l-1024 l-1024 l l

*If the Series Six Model 600, 6000, or the Series Six Pius contains 8K of registers, the range is 1-8192. If it contains 16K of registers, then the range is 1-16384.

then

Page 69

GEK-90477

Communication

USING THE PASSWORD AND ERROR SERIES ONE PLUS PC

The addressing

5-14

Examples for the Series

CHECKING

One Plus Scratch-Pad

FEATURES

OF THE is as follows:

Table 5.8 SERIES ONE PLUS CPU SCRATCH-PAD

SERIES ONE PLUS ADDRESSES (Hex)

SUB-COXNAXD (Hex)

ADDRESSES

DESCRIPTION

PC Yode

0000

0002 0009 OOOA

0003 0006 0004

OOOA 0016

Sub-command for executing the functions: Logging-In with the Password Changing the Password Grammar Checking Reading Error Address Location of the error code generated bvw Grammar check and of the error location in the user program Password Write Location PC Type or writing the PC mode (RUN/STOP) and reading the PC type are the same for One Plus as for the Series One/Junior and Series Three PCs (see application examples 20-22). The password and error checking features are available only for the Series One Plus PC and require the use of a sub-command written to 0002H of the Scratch-Pad (see explanation below). Reading the Series

LOGGING-IN

ON THE SERIES ONE PLUS CPU USING THE PASSWORD

If a password has been assigned, either using the manual programmer or through communications, you must log in before executing each communications request to memory type 1 (T/C Accumulators), 3 (l/O and Shift Registers), or 7 (User Logic). If you do not log in, the commmunications request for these memory types will fail. It is not required to log in for communications requests to memory types 6 (Scratch-Pad) and 9 (Diagnostic Status Words). Logging in is done by executing a write command from registers to the Scratch-Pad beginning at address 0002H. The write command will write 5 registers of information as follows: Rn Rn+l Rn+2 Rn+3 Rn+4

0900*(Hex) 0000 0000 0000

Where

OO09H is the subcommand written to Scratch-Pad address O002H, and where xxxx is the existing password in BCD (Valid range O-9999). A value of 0 is equivalent to no password.

xxxx**(BCD)

Also see appljcation example

9.

*

The least signif icant byte the Series Six register.

of the subcommand

**

The most significant Series Six register.

of the password byte occupies occupies the most significant the most significant byte of byte of the

Page 70

GEK-90477

Communication

5-15

Examples

‘\ CHANGING

THE

PASSWORD

OF THE

SERIES

ONE

PLUS

PC

First, you must log Changing the password is a 2-step operation. Then you must execute another write command preceding sect ion. Series One Plus Scratch-Pad beginnng at address 0002H. The write registers of information as follows:

Rn Rn+l Rn+2 Rn+3 Rn+4 Also see application

The least the Series

**

The most significant Series Six register.

example significant byte Six register.

PROGRAM byte

ERROR

A complete program error One Plus CPU as explained initiating in the to the write 5

OAOO*(Hex) Wh ere OOOAH is the subcommand written to Scratch-Pad address OOOZH, and where xxxx is the new password entered 0000 0000 in BCD. Valid range O-9999. A value of zero is 0000 equivalent to no password. xxxx**(BCD)

*

USER in as explained from registers command will the error check

10. of the subcommand of the password occupies occupies the the most most significant significant byte of of the byte

CHECKING check below.

can and reading be initiated the error at any code time on a program in the Series is a 4 step operation.

To initiate the error check, write to the Series One Plus Scratch-Pad

2.

If the contents of address Read the error code from Scratch-Pad address 0004H. 0004H is zero, there is no error code. If the contents of address 0004H is not zero. then this is the error code. Go to the next step to find the location of the first error in the user program.

3.

To find the location addess 0002H.

4.

Read the location of the error, the subcommand, address 0002H.

write the

0003H,

Six register

0006H, to contents of address

0004

Table 5.9 defines the errors which may be found in a user program when the Series Plus CPU is transitioned from PROGRAM to RUN. Also see application example 11.

One is the location from subcommand, from a Series

1.

the Scratch-Pad address 0004H. error in user memory.

The

Scratch-Pad of the first

Page 71

GEK-90477

Communication

5-16

Examples

1

DIAGNOSTIC

STATUS WORDS

There are 5 Diagnostic Status Words in the DCU regarding the communications activity on their ports. When reading

(word number the

Diagnostic and the Diagnostic Status Words, the transfer 1) and all 5 words must be read. An external Status Words by specifying memory type 9.

DCM which store can start only with address 0 device can read or write/clear

Diagnostic Status Word Kurnber

Bit 16

9 Communications Most recent communication (Error Code)

1

2

3

8

Port information

Number 1

Communications Port Next most recent communication (Error Code)

Number of

Successful

Conversations

Number of

Aborted

Conversations

Number of

Header

Re-tries

Number of

Data on Communications on Communications

Port

Port t 4

5

Block on Communications

Re-tries

Port on Communications

Port

.

.

NOTE in communications, unexpected difficulties experience from the Series the Diagnostic Status Words the value in the upper One/Plus/Junior or Series Three and compare codes and lower bytes of Diagnostic Status Word 1 with the error listed in Table 5.9

If you retrieve

DIAGNOSTIC

STATUS WORD 1 ERROR CODES

Table

5.9 contains

Word

1.

a list of all of the error codes that are reported in Diagnostic

Status

Page 72

GEK-90477

Communication

Examples

Table

DIAGNOSTIC

5.9

5-l 7

STATUS

WORD

ERROR

CODES

DESCRIPTION

ERROR CODE HEX DEC 00

Successful transfer.

01

A time the serial link.

02

An external device attempted the CPU scratch pad that is to not write data allowed.

3

03

An external I/O point.

4

04

An external available out occurred device in on attempted to read or device attempted to access a particular memory type.

to write more

5

05

An external device attempted to read or write of bytes to Timer/Counter or register memory, or the diagnostic status words. memory,

6

06

An external nonexistent device attempted to read Timer/Counter accumulated

7

07

An external data bytes.

device specified the a section a nonexistent data of than is an odd number user-logic or write one or register transfer of or more values.

zero c

8

08

An external device attempted to write to protected memory. This will be the error code if an attempt is made to Write to user-logic memory while the CPU is in the RUX This is also returned if the password is active mode. and the CPU is locked.

9

09

An external an invalid

10

OA

An external nonexistent device memory attempted type.

device attempted diagnostic status to transfer to read words.

or data to write one or or from more

Page 73

GEK-90477

Communication

5-l 8

Examples

Table 5.9 (Cont.)

DIAGNOSTIC

STATUS WORD ERROR

CODES

DESCRIPTION

ERROR CODE HEX DEC 11

OB

An external device attempted to at an invalid user-logic memory transfer data or scratch-pad beginning address.

12 oc

Serial transfer after a data block

13

OD

Serial communication was aborted was retried three times.

after a header

15

OF

Unit with

20

14

One or more of the following errors data block transfer: An invalid STX character was a> b) An invalid ETB character was An invalid ETX character was c) d) An invalid LRC character was or overrun e) A parity, framing, communication was retried was aborted three times.

address in ENQUIRY was unit address specified to did but does not HEADER block. occurred agree during

15

The DCU or an external

22

16

The DCU or DCM expected to receive an ACK or character and did not receive either one.

26

1A

A time a port

29

1D

An error occurred when data was being transferred between the DCU and the Series One, Series One Junior, or the Series One Plus CPU or the DCM and the Series Three CPU.

30

1E or A parity, framing, serial header transfer.

31

1F

A parity, framing, serial data block occurred during in to CTS b eing a received, received, received, received, error occurred.

21 out due

DCM expected device and correct in the transfer receive an EOT character not receive it.

an attempt an inactive from

NAK to transmit state too on long.

overrun error occurred during a or overrun transfer.

error occurred during a

Page 74

GEK-90477

Communication

Examples

5-19

SERIES ONE, SERIES ONE JUNIOR, SERIES ONE PLUS, AND SERIES THREE ERROR CODES There are certain errors detected by the Series One/Junior/Plus or Seiies Three CPU during communication at tempts. If this error occurs it will be displayed on the Series One/Junior/Plus or Series Three programmer display with the following codes. In addition, these error codes can be obtained from the Series One Plus CPU by an external device using a serial request. See application example 11. Table 5.10 SERIES ONE, SERIES ONE JUNIOR, SERIES ONE PLUS, SERIES THREE CPU ERROR CODES DIAGNOSTIC STATUS CODE REPORTED

1D Hex

00 Hex

ERROR CODE DISPLAYED ON PROGRAMMER

TYPE OF ERROR CONDITIOX

E02

Instruction and I/O data wrong. Input programmed as an Output.

EZL

Parity error in user program memory.

E31

Watchdog timer timed out.

E41*

I/O module configuration change since last power up. Invalid I/O to CPU transfer. L

No Error Code

PROGRAX/RUK keyswitch set to program; DCU to CPU cable disconnected; CPU not accepting communication request.

EOl

Incorrect entry of instruction and data wrong, operand on write to user program instruction and/or data has parity error on write to user program, cannot write to user program memory. (Program in PROM or RAM defective).

El0

All user program memory locations used.

* Series Three only. Some of returned transfers the above error conditions also cause diagnostic in Diagnostic Status Word 1. Other conditions (diagnostic status code “00 hex”).

status will be code “1 D hex” to be reported as successful

Page 75

GEK-90477

SCREQ

Communication

COMMAND

Examples

5-20

I

EXAMPLES

This section contains application examples for programming the Series Six to initiate serial communications with a Series One, Series One Junior, Series One Plus, and Series Three PC. Examples l-5 apply to Series One, Series One Junior, and Series One Plus PCs only; examples 6-l 1, to Series One Plus PCs only: examples 12-19, to Series Three PCs only: and examples 20-24, to Series One, Series One Junior, Series One Plus, and Series Three PCs.

EXAYPLE

1 2 3

4 5 4 7

8 9 10 11

PC

TITLE

Page

Series Series Series Series Series

One/Junior/Plus One/Junior/Plus One/Plus One/Junior/Plus One/Junior/Plus

Read from Target Timers and Counters Read from Target I/O Write to Target I/O Read from Target User Memory Write to Target User Memory

5-21 5-22 5-23 5-24 5-25

Series Series Series Series Series Series

One One One One One One

Read from Target Data Registers Write to Target Data Registers Write to Target Timers and Counters Logging-In with the Password Change Password Check Program Error Code

5-26 5-27 5-28 5-30 5-31 5-32

Plus Plus Plus Plus Plus Plus l

12 13

14 15 16 17 18

19 20 21 22 23

24

Series Series Series Series Series Series Series Series All All All All All

Three Three Three Three Three Three Three Three

Read from Target Data Registers Write to Target Data Registers Read from Target Timers and Counters Write to Target Timers and Counters Read from Target I/O Write to Target I/O Read from Target User Memory Write to Target User Memory

5-35 5-36 5-37 5-38 5-40 5-41 5-42 5-43

Read PC Type Read Target Run/Program Mode Command Target Run/Program Mode Read Target Diagnostic Status Words Clear Target Diagnostic Status Words

5-44 5-45 5-46

NOTE

Users with Series Three CPUs with date codes prior to 8408XxXx will be unable to write directly to DATA REGISTERS or TIMER/COUNTER accumulated values - the DCM will NAK the HEADER block. Contact G.E. Product Service for information on upgrading the CPU. The catalog number for the Series Three CPU upgrade kit is IC630CPU390A. An alternate way of writing this kind of data into the register table is to write it into the unused portion of the I/O table and then move it into the register table via user logic.

5-48

5-49