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 35

Series One Programmable Controllers, Series One/One Plus User's Manual: Chapter 5 Programming, pages 91 to 100

Pages 91 to 100 of 300, from Series One Programmable Controllers, Series One/One Plus User's Manual

The original document is the PDF (40 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 GE Fanuc IC610CPU105A, GE Fanuc IC610CPU105C, Fanuc IC610CPU105A, GE IC610CPU105A, Fanuc IC610CPU105C and GE IC610CPU105C

Page 91

Chapter 51 0

5

Programming

GE&90842

SECTION 1

Introduction to Programming General Information The Series Onem and Series One TM Plus are easy to use small PCs with many advanced features. One of the advantages of these PCs is the ability to be programmed or tailored specifically to the needs of an application. Furthermore, if requirements change, the PC can be reprogrammed to fit the new application. This chapter provides the information a user needs to develop or modify the logic within the Series One or Series One Plus. It will discuss the basics of CPU operation necessary to develop a proper logic program, the theory behind each function, examples of how that function could be used, and step-by-step entq of sample programs.

Planning a PC System When planning a PC system, the first step should be to define the system by writing a description of the functional requirements for that system. A description would usually consist of block diagrams and written descriptions of the various parts of the system. Input devices should be defined along with the process or machines to be controlled. The next step would be to develop the program required to control the system. On a sheet of paper, layout each rung of your ladder diagram and assign references to inputs and outputs. The program can also be written in mnemonic form (Boolean), which is how it will be keyed into the Series One or Series One Plus when using the hand-held programmer. As an option, programs can be entered in ladder diagram Format using the Portable Programmer. This applies to both the Series One and Series One Plus. You can also enter programs with the Workmaster@ industrial computer using Logicmaster~l application software. For information on using the Wockmaster industrial computer for programming, refer to the Logicmaster 1 Programming manual, GE&96632 for Series One. For Series One Model E, Series One Plus, and Series One Plus 3.7K, refer to GFK-0075 which is the Logicmaster 1 Family Programming Manual.

How to Use This Chapter This chapter is divided into 3 sectiuns. Section 1 is a description of the requirements for programming. Included, are lists of all of the progr amming functions and a table of programming references assigned to each slot for 8 point modules. The purpose and types of references are explained, including “real world” use and internal use. A basic explanation of the scanning operation of the Series One and Series One Plus PCs is given. The scanning process is the basis for operation of all PCs and the user should have a good working knowledge of this operation. The next 2 sections are devoted to programming. Section 2 describes and gives examples of the basic ladder diagram functions. Section 3 provides the user with a description -f the data operation functions for use with a Series One Plus PC. The data operations greatly r=xtend ‘LI’pe number and complexity of applications possible with the Series One family.

Page 92

520

PrograIIlming

_ GEK-90842

Table 5.1 lists the basic ladder diagram fimctions for the Series One and Series One Plus. A more detailed explanation of each instruction can be found later in this chapter. Execution times in Table 5.1 are for Series One Model E, Series One Plus, and Plus 3.7K only. Execution times for Series One are listed in Table 5.2. Note that in the table, VO = I/O points, IR = Internal Relay, SR = Shift Register. Table 5-l. Series One Model E/One Plus Basic Ladder Diagram Instructions

IIlStruCtiOIl

DdiIlitiOIl

ISTART. Start rung with a N.O. Normally Open) contact.

STR

1 I

START TIMER.

STRTMR

66 5019

6.6 I/O,IR,SR I 50.9 Sequencer

Start rung with a N.O. contact referencing a timer. START COUNTER.

YrRcNT

Start rung with N..O. contact

1 referencing a counter. YIR NOT

START NOT. contact.

STR NOT TMR

1START NOT TIMER. Start rung with a N.C. timer contact.

1

START NOT COUNTER.

1

STR NOT CNT

Start rung with a N.C. (Normally Closed)

IcontacL I

Start rung with a N.C. counter

Add a N.O. contact in series with the previous contact.

1

Add a N.O. timer contact in series with the

I I

ANDTMR

1

AND TIMER.

10.3

10.3 I

I I I 1

I

91 6115 12.8 12.8 53 612

I

I I I

9.1 IJO,IR,SR 61.5 Sequencer I

112.8

I

12.8

_

5.3 I/O,IR,SR 59.1 Sequencer I previous contacL

ANDCNT

AND COUNTER.

Add a N.O. counter contact in series with the previous contact.

AND NOT

Add a N.C. contact in series with the previous contact.

1

AND NOT TIMER. Add a N.C. timer contact in series with

1

I the previous contact. ~~ AND NOT CNT AND NOT COUNTER. Add a N.C. counter contact in series I with tbe previous CantacL

1

OR

1

I

_~

Add a N.O. contact in parallel with the previous contact.

-T---OR TIMER.

OR TMR ~~ OR CNT

OR NOT TMR

84

84

84 .

. 84

Add a N.O. timer contact in parallel with the previous contact

IAdd I I

OR COUNTER. Add a N.O. counter contact in parallel with the pmious

OR NOT

8.4I/O,IR,SR 60.3 Sequencer I

. . I I I I

I

I AND NOT TMR

. 84

ContacL a NC. contact in parallel with the previous contact.

1

OR NOT TIMER. Add a N.C. timer contact in parallel with

1 the previou!L

I I

91 612 . 91

I I

9.1 l/O,IR,SR 625 Sequencer 91 .

I I

Page 93

Programming GE&90842

Table 5-l. Series One Model E/One Plus Basic Ladder Diagram Instructions - Continued Execution Time (mhoseconds) For !&&es One Pins

Memory , Words Inactive

Active

IIlStI=UtiOIl

D&litiOIl

OR NOT CNT

OR NOT COUNTER. Add a N.C. counter contact in parallel with the previous contacL

ANDSTR

. AND STORE. Connects a logic group in series with the 1 38 logic group preceding it. 1 . OR STORE. Connects a logic group in parallel with the 38 logic group pceding it. MASTER CONTROL START. Begin control of a block of 1 5.0 logic with a master control relay. 1 MASTER CONTROL RESET. Ends control of a block of 3.0 logic with a master control relay. . Defines a coil for a rung of logic, either an external output or 1 75 an intemal coil. Defines a coil as being latched, the coil will remain on until 1 17.5 tumed off by RST. IF ON, the coil will remain ON even under control of the 1 10.0 Output Disabler Coil (376). --1 . RESET. Causes a coil that had been latched (SET) to be 93 unlatched (Reset). 1 19.3 SET OUT RESET. Defines a coil as being a one-shot (ON for one scan).(One Plus Only) 27.1 700.0 ‘ITMER. Programs a Timer operation. Times up kom zero to a preset value. Elapsed time stored in an accumulate UOJR,SR 458.8 Register register. Preset time range is 0.1 seconds to 999.9 seconds. 27.1 706.8 COUNTER. Programs an up counter. Counts up from zero to a preset value which can be 1 to 9999. The cunent count VOJRSR 465.6 Register is stored in an accumulate register. Counters are retentive. Requires 2 rungs of logic; fkst rung enables the counter, the second rung resets the counter. 53.1 64.1 Sm REGISTER. Programs a shift register which can be +16.6 For each 128 steps in length or a number of shift registers of varying lengths (128 bits total). Retentive. Requires 3 rings of logic; bit shifted (1) da@ (2) docl& (3) mset. can be pmgrammed to shift fonwud or bachward.

OR STR MCS MCR OUT SET SET OUT

1

91 .

9.1 l

RST SET OUT RST

SR

Note: I/O = I/O Points, IR = Inuzmal Relay, SR = Shift Register

Table 5.2 is a list of execution times for the Series One functions. Execution times are given in microseconds.

Page 94

Programming GE&90842

Table 5.2. Series One Execution Times -I=== I/O Point Int Relay

IIlSWUCti0n

33.9 36.5 36.3 38.7 40.8 42.0 38.1 38.1

AND NOT OR OR NOT STR STR NOT SET RST

I

Shift Register Timer Counter 32.7 35.1 34.5 36.9 39.6 432 42.6 42.6

Inactive

Active

36.0 40.8 36 40.8 89.4 97.2

84.0 88.8 84.0 88.8 89.4 97.2

37.5 39.9 43.5 45.6 48.0 50.4

Inactive

Active

MCS MCR SET OUT OUT

35.2 37.8 49.8 43.8 69.6

SR ANDSTR OR STR

55.2 34.2 37.8

35.2 37.8 49.8 43.8 115.8 103.5 66.9 + 12.9!/N (1) 34.2 37.8

LnSWUCtiOIl

80.4

11) N = number of bits shifted. Table 5.3 is a list and description of the data operations that can be programmed, with a Series One Plus, in addition to the basic ladder diagram functions listed in Table 5.1. A more detailed explanation of each instruction is provided later in this chapter.

Table 5-3. Series One Plus Data Operation Instructions

Memory

&ion Time croseconcls)

words

Inactive

Active

2

6 .3

321.9 I/O,IR,SR 80.7 Register 14.3 constant

DATA STORE 1. Loads the lower byte (least significant) of the accumulator with the contents of a specified 1 byte reference.

2

6 .3

140.9 I/O,IR,SR 63.8 Register

De STR2 e52)

DATA STORE 2. Loads the lower 4 bits of the accumulator I witMheupper4bitsofa~lbyte~ference.

2

6 .3

D.STR3 eS3)

DATA STORE 3. Loads the lower 4 bits of the accumulator I with the lower 4 bits of a spedied 1 byte nsfmnce.

2

6 .3

Instnrcti0n

DGIR

CW DG’IRl eS1)

DdhitiOIl

STORE. Loads accumulator with a binary or BCD I DATA value which can be a 4 digit castant orthecontentsofa

I specified 2 byte reference.

I I

I

~~ ,172.2 I/OJEZ,SR 95.0 Register I

I

Il73.8 I/O,IR,SR 196.6 Register

Page 95

0 55

Programming GEK-90842

Table 5-3. Series One Plus Data Operation Instructions - Continued Execution Time

(microseconds)

Memory . InstractiOIl

D4&litiOIl

Words badive

Active

DGTRS (F55)

DATA STORE 5. Loads accumulator with a binary or BCD value from tbe 2 byte contents of a 16 circuit (high density) Input Module.

2

. 63

325.0 16 Point input Module

D.OUT (F6W

DATA OUT. The contents of the accumulator (2 bytes) ~RZ written to a specified 2 byte refkrence (Output, Internal Relay, Shift Register Coils, Data Register or T/C Accumulate Register).

2

6.3

329.4 I/O,IR,SR 52.6 Register

D.OUTl F6l)

DATA OUT 1. The contents of the lower byte of the accumulator are written to a specifkd 1 byte reference (Output, Intemal Relay, Shift Register or Data Register.

2

63 .

160.1 I/O.IR,SR 39.1 Register

DeOUT2 (F62)

DATA OUT 2. The contents of the lower 4 bits of the accumulator are written to the upper 4 bits of a specified 1 byte reference (Output, Intemal Relay, Shift Register or Data Register).

2

. 63

116.0 I/O,IR,SR 39.8 Register

D.OUT3 F63)

DATA OUT 3. The contents of the lower 4 bits of the accumulator are written to the lower 4 bits of a specified 1 byte reference (Output, Internal Relay, Shift Register or Data Register.

2

63

108.1 I/o, IR, SR 55.0 Register

DoOUT (F65)

DATA OUT 5. The contents of the accumulator (2 bytes) are written to a specified 2 byte refierence. Must be a 16 circuit (high density) Output module.

6.3

365.3 16 Point

=< On@

COMPARE. The contents of the accumulator are compared to the contents of a specified 2 byte refe=nce (I, IR, SR, or DR) or a 4 digit BCD constant. Intemal coils turn on to reflect the result of the comparison. Act > DataOn 772 Ace = DataOn 777 Act < Data011 774

. 63

354.0 UO,IR,SR 112.8 Register 57.0 constant

+ (F71)

ADDITION (BCD). The contents of the accumulator are addedtoa4digitBCDconstantorthecontentsofaspecified 2 byte reference which must be a valid BCD number (Input, Int~mal Relay, Shift Register or Data Registers).

2

. 63

698.0 I/O,IR,SR 456.8 Register 262.0 Canstant

SUBTRACI’ION (BCD). The contents of a specified 2 byte &hence (Input, Internal Relays, Shift Register, or Data Registers) or a 4 digit BCD constant are s&tract& from the ca@nts of the accumulator.

2

6.3

557.0 IfO,IR,SR 3 15.8 Register 275.0 Constant

MULWPLICATION (BCD). The contents of tbe accumulator zuc multiplied by he contents of a specified 2 byte reference (Input, Internal Relays, Shift Register, or Data Registers) or a 4 digit BCD COI~SUII~. ‘Ik lower 4 digits of the result remain in tk accumulator, the upper 4 digits a~ stod in registers 576 and 577 which is the auxilhy accumulator.

2

6.3

497 to 2851 CYO&SR) 29oto2644 (Register) 223 to 2576 (Constant)

I

Cnz)

X (F73)

l output

Module

Page 96

506

Programming GEK-90842

Table 5-3. Series One Plus Data Operation Instructions - Continued Execution Time (miuosecods)

lIMNCti0n lMIlitiOIl

Memory . Words Inactive

Active

DIVISION (BCD). The contents of the accumulator 8lre divided by the contents of a specifkd 2 byte reference (I, IR, SR,orDR)ora4digitBCDconstant. Thefirst4digitsofthe answer are stored in the accumulator and the remainder is stored in the remainder is stored in the auxiliary accumulator (registers 576 and 577).

63 .

DATA AND (Logic product). The contents of the accumulator are logically AND-ed with each corresponding bit of a specified 2 byte reference (I, Ilk, SR, or DR) or a 4 digit BCD constant. The result is stored in the accumulator.

. 63

345.0 IJO,IR,SR 103.7 Register 55.6 Constant

. 63

345.0 I/O,IR,SR 103.7 Register 55.6 Constant

SHIFT RIGHT FUNCTION 80, SHIFI’ RIGHT N BITS. Contents of the accumulator are shifted to the right by the specified number of cF80) bits (l-15). Positions from which bits were shifted are filled with zleros.

. 63

216 + 13.4/N of bits shified

SHlFT LEFT (F81)

FUNCIlON 81, Shill: Lm N BITS. Contents of the accumulator are shifted to the left by the specified number of bits (l-15). Positions from which bits were shifted are filled with zeros.

63 .

_ 220 + 13.4/N of bits shifted

DECODE (F82)

FUNCTION 82, DECODE. Decodes the lower 4 bits of the accumulator to a decimal number from 0 to 15 and places a 1 in the bit position in the accumulator which comxponds to that decimal number.

1

. 63

56.3

ENCODE (F83)

FUNCTION 83, ENCODE. Encodes a bit in the accumulator to a binary code representing the position number (0 - 15) and places the binary code in the lower four bits of the accumulator.

1

63 .

282.0

INVERT. The 16 bits of the accumulator a~ inverted; i.e., 1 to 0 and 0 to 1. Example: 1101 1001 0110 0111 inverted to 0010 0110 1001 1000

1

. 63

30.3

BIN VW

BINARY. Converts a BCD value in the accumulator to a binary code.

1

6.3

412.2

BCD (F86)

BINARY CODED DECIMAL. Converts a binary code in the accumulator to a BCD value.

1

6.3

746.0

ENTERNAL FUNCI’ION 2 0 , EKIZRNAL, FAULT DIAGNOSIS. Allows FAULT extemal &vices to be monitored for unwanted conditions. If a DIAGNOSIS fault occurs a presssigned 4 digit BCD number is displayed on the programmer. Multiple fault conditions can be monitored. 0)

1

6.3

355.3 I/OJR,SR 114.0 Register 722 Constant

.

F;4)

DdND

(F7S)

DoOR (F36)

DATA OR (Logic Sum). The contents of the accumulator are logically OR-cd with each corresponding bit of a specified 2 byte reference (I, IR, SR, or DR) or a 4 digit BCD constant. The result is stored in the accumulator.

1218 to 2851 (I/o, IR, SR) 742 to 2645 (Register) 720 to 2577 (Constant

2

Page 97

Programming ?

GE&90842

Programming Fundamentals This section provides a guide for entering and using each of the instructions. The instructions are presented in groups that correspond to their functionality. Table 5.4 lists the instructions grouped in this manner.

Table 5-4. Series One/One Plus Instruction Groups BASIC INSTRUCTIONS STR, STR TMR, STR CNT, STR NOT, STRNOTTMR,S'IRNOTCNT AND,ANDTMR,ANDCNT,ANDNOT,ANDNOTTMR, ANDNOTCNT OR,ORTMR, ORCNT, ORNOT,ORNOTTMR, ORNOTCNT ANDSTR, ORSTR MCS, MCR, OUT, SET, SET OUT, RST, SET OUT RST (ONE PLUS ONLY) TMR, CNT, SR DATA OPERATIONS

SERIES ONE PLUS ONLY MOVE

DGTR (FSO), D.STRl (FSl), DCI’R2 (F52) D.STR3 (F53), DoSIR (F55) DaUT (F60), D.OUTl (F61), D+OUT2 (F62) DKNJT3 (F63),D.OUT5 (F65)

ARITHMETIC

>=< (FIO), + ml), - F72), x F73), f (F74) DAND (F75), DoOR (F76), INV (F84)

LOGICAL CONVERT

BIN (F85), BCD (I?‘86), Shift Right (F80) shift Left, (F81) Decode (x%2), Elmode (F83)

SPECIAL

Extemal Fault Diagnosis (RO)

Significance of References Whenever programs are entered into any PC, they must be accompanied by reference numbers. These references help to tell the CPU which function is specified. For example, which pushbutton controls the starting of which motor? Which timer are you referring to? Reference numbers are a vital part of programming, and in the Series One and Series One Plus are octal based; that is, they start at 0 and go up to 7, then jump to 10; at 77 the next value is 100. They look like traditional decimal numbers, except the digits 8 and 9 do not exist. Table 5.5 summa&e s the various reference values and their signifkance.

Page 98

Programming

58 0

GEL90842

Table 54. Summary of References Octal values

Rt!&THlCeS

000-157 000-157 700-767 770-777 160-337

I/O points (Series One) I/O points (Series One Plus) (Series One Plus only) Special Function Coils (Series 0~ Plus only) Intemal Coils (Non-retentive)

340-373 374-377 400-577 600-677 (4)

Retentive Coils (Internal) Special Functions Shift Registers Timers and/or Counters Data Registers, M-bit (Series One Plus only)

400-577

WQnantits 112 total 168 total 8 112 28 (1) 4 (1) 128 (1) 64 (2) (1X2) 64 WV

124 Total if T/C references used as data registers 1. Retentive upon power failure. 2. Total maximum number of Timers and/or Counters. 3. Shift @ster and data register references are identical however, shift registers operate on bits, while data registers (located in a Merent area of memory) operate on bytes. 4. T/C references 600-673 can be used as data registers, if they are not referenced as timers or counters.

Significance of Input/Output References I/O modules can be placed in any mix desired; however, once installed the exact reference used in programming is established by their physical placement. In other words, references are assigned to each location by the operating system in the CPU, and therefore E fixed for each location. As shown in the example in Figure 5.1, the modules are numbered from zero (adjacent to CPU) towards the left through all racks until the last module is reached at the left of the last rack. The exact reference is obtained by appending the circuit number (O-7), to the module number. Circuit numbers depend upon the terminal to which the field device is wired as discussed in Chapter 6. Table 5.6 summarizes available I/O references for 8 circuit modules for your convenience. This table can be reproduced locally to form a part of your system documentation. Notice that whether reference 005 is an input or an output depends upon which module is inserted into the I/O slot adjacent to the CPU. Refer to the Series One family compatibility guide in Appendix C for additional valid If0 references per physical location of modules.

Page 99

Programming GEL90842

L li ml TO 107

/

A

070 TO 077 c a

10

040 TO

057

047

150 TO 157

I40 TO 147

-a

&

TO 067

L

040

A a40797

130 TO 137

‘r J

030

TO 107 r

1 a a

L

3

I

1

TO 057

TO 047

TO 037

020 TO 027

TO 007

150 TO 157

140 TO 147

130 TO 137

120 TO 127 loo TO 107

-I CPU t l

. 5

7

I

10 SLOl RACKS IEXAMPLE SFRYS ONf PLUS)

k

1

02 f

’

01

20-27 lo-17

120-127

110-117 t

I

J

I

T

3

T

I

00

SLOT NUMBER o-7 vo REFERENCE

12

'

~ 5SLOT RACKS (EXAMPLE-SERIES ONE)

Figure 5-l. I/O References Per Physical Placement for 5 and lo-Slot Racks NOTE The addressing of slot 10 in a lO-slot rack is determined by configuration of the two bridge connectors on the rack backplane.

Page 100

S-10

Programming GE&90842

Table 5-6. Summary of I/O References for 8 Circuit Modules Mociule No.

00

01

02

03

04

05

06

Circuit No. 0 1 2 3 4 5 6 7

Reference au 002 003 005 an

0 1 2 3 4 5 6 7

010 011 0i2 013 014 015 016 017

0 1 2 3 4 5 6 7

020 021 022 023 024 025 026 027

0 1 2 3 4 5 6 7

.030 031 032 033 034 035 036 037

0 1 2 3 4 5 6 7

040 041 CM2 043

0 1 2 3 4 5 6 7

050 051 052 853 054 055 056 057

0 1 2 3 4 5 6 7

045 046 047

061 062 c&3 065 066 c&7 hmut

Device Name

Wire No.