The text of a manual · part 16 of 35
Series One Programmable Controllers, Series One/One Plus User's Manual: Chapter 5 Programming, pages 141 to 150
Pages 141 to 150 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 141
5-49
Programming GEK-90842
D.STR3 (F53) This is a 2 word instruction which, when executed loads the lower 4 bits of the accumulator lower 4 bits of a specified 1 byte reference.
with the a40855 rwi
ACCUMULATOR
I
I
Valid Group References 000-015 070 - 076 016 - 037 040-057 400- 577
I/O Points I/O Points Internal Coils Shift Register Coils Data Registers (8-bit)
GROUP TREFERENCE 1
DdiKI’RS(F55) This is a 2 word instruction which, when executed loads the accumulator byte contents of a 16 circuit Input module.
with a BCD value fkom the 2 a40856
REF+ 100
REF
17
017
0 ]
16 POINT INPUT MODULE
115
817
0 ]
ACCUMULATOR
I
I r;l wid m
GroupRefewence 16 Point Input Module
000-005
Fl
GROUP r REFERENCE1
+---I
/--[DSTR5
I I
X)--+
Page 142
Programming
540
DoOUT (F60) DoOUT (Data Out) is a 2 word instruction, which when executed transfers the contents of the accumulator (16 bits) to a specified 2 byte (group) reference (Output, Internal Relay, Shift Register coils, Data Registers or Timer/Counter accumulate value register). a40857 017
15
0
O]
017
7 REF+ 1
ACCUMULATOR
REF Valid Group R8f8f8nC8S I/O Points l/O Points Int8m8i COik Shift Register Coils Data Registers (8-bit) T/C Accumulated Value (16-bit)
000-014 070 - 075 016 - 036 040-056 400 - 576 600-677 r
GROUP REFERENCE
R8gisters
1
D.OUT1 (Fdl) DoOUT is a 2 word instruction which, when executed will write the contents of the first 8 bits (O-7) of the accumulator to a specified reference. a40858
15
817
17
I
0
ACCUMULATOR
0 1
REFERENCE
V8lid Group References 000-015 070 - 076 016-037 MO-057 400-577 r;7 F] 1;1 GROUP rREFERENCE1
110 Points I/O Points hltwMl Coils Shift Re@ter Coils Data Register (8&t)
+---{ j---{ D-OUT1 xxx)--+
Page 143
541
Programming GEK-90842
DaOUT2 (F62) DoOUT is a 2 word instruction which, when executed will write the contents of the lower (first) 4 bits of the accumulator to the upper 4 bits of a specified reference. a40859
15
7
I hiid r
DoOUT
0
ACCUMULATOR
413
0
REFERENCE
Group References
000-015 070 - 076 016 - 037 MO-057 400 - 577
GROUP REFERENCE
413 /
I
I/O Points I/O Points Internal Coils Shift Register Coik Data Registers (80bit)
1
(F63)
DoOUT is a 2 word instruction, which when executed will write the contents of the lower 4 bits of the accumulator to the lower 4 bits of a specified reference. a40860
1 15
17
I v&d
413
0
413
01 r
Fl 131 GROUP REFERENCE
1
ACCUMULATOR
REFERENCE
I
Group Refemnces
ODO-015 070 - 076 016-037 040-057 400-577
17
1
I/O Points I/O Points lntwnal Coils Shift Register Coik Data Registers (80bii)
+---I
}--{
D-OUT3 XXX}-+
Page 144
542
DoOUT programming
(F65)
D~OUTS is a 2 word instruction, which when executed will write the contents of the accumulator byte reference which must be a 16 circuit Output module.
to a 2 a40861 115
817
0 1
ACCUMULATOR
7
017
01
16 POINT OUTPUT MODULE
REF
REF+ 100
I
[T] r
CMPR
I
Valid Grouo Reference
1 ooo-005
F]
16 Point Output Module
++
17
GROUP REFERENCE
1-3
DOW5
+-+
1
(F70)
The contents of a specified 2 group reference or a 4 digit BCD constant are compared to the contents of the accumulator. The result of the comparison will cause one of three special purpose i;ltemal coils to turn on, depending on whether the accumulator value is greater than (>), equal to (=) or less than (c) the value specified by the reference or constant. a40862 Valid Group References
L ooo-014 070 - 075 016-036 040-056 500 - 576 600 - 677
I/O Points I/O Points Internal Coils Shift Register Coils Data Registers (80bit) T/C Accumulated Value Registers (16-bit)
oooo - 9999
Constant Digit
BCD)
+---I t---_ICMPRxxx 1J-7 r;l r;l r;;l
Ill I
GROUP rREFERENCE1 q clclcl 4 DIGIT CONSTANT l
I-
BCD VALUE
1
++ t---{cMPR xxxx}-+
Page 145
Programming
S-53
GEL90842 l
Compare sequence
(4 DIGIT BCD NUMBER)
15
0~0~0~0~1~0~0~~~~~1~1 a40863
0 ['lop p10
ACCUMULATOR CONTENTS
CMPR REFERENCE
+ 1
REFERENCE
.7 o_ 7
0
4
3
2
. 0~0~1~1 llO/OlO
0~1~1~1
I
1 doll11
2 GROUP
REFERENCE OR 4 DIGIT CONSTANT a lo
If Accumulator > Reference, then 772 tums ON. l If Accumulator = Reference, then 773 tums ON. l If Accumulator < Reference, then 774 tums ON. l l
Pr0gmnming example,
Compare
1 Addition (+), BCD 4 Digit (F71) The contents of a 4 digit constant or a specified 2 group reference are added to the contents of the accumulator. The result of the addition is stored in the accumulator as a 4 digit BCD number. If the answer is >9999, the carry flag (Internal coil, 775) will tum on. If the answer is zero, the zero flag (776) will turn on. The flag coils can be used in a program as references for contacts to tum on an output connected to a light or other device to provide an indicator of the flag conditions.
Valid oooa14 070 - 075 016 - 036 040-056 400 - 570 600 - 677
1 oooo-9999 a40864
Group References I/O Points I/O Points Intem8l Coih shift RegisterCoil8 Data Registers (8-b&) T/C Accumulaad Value Registam
I
FLAGS cAoRRRy ZERO
(1&bit)
Constant M-digit BCD)
BORROW
I
775 xxx]-+ GROUP REFERENCE 1 r q clclcl
4 DIGIT CONSTANT k-4 t-cl-
BCD VALUE
1 xXxX]-+
I
776
Page 146
Programming s-54
GE&90842 l
Addition sequence a40865 15
(4 DIGIT BCD NUMBER)
0
ACCUMULATOR CONTENTS
+ REFERENCE + 1
17 I
4 8141211 r
0
REFERENCE
7
0b ,
3 8141211
2 8141211
1 8141211
2 81412/l
1 8141211
’
2 GROUP REFERENCE OR 4 DIGIT CONSTANT
-c
4
I -8[41211
3 8141211 l
. .
? 1 +
4 DIGIT BCD ANSWER STORED IN ACCUMULATOR
IF ANSWER IS 0000, ZERO FLAG IS ON IF ANSWER IS >9999, CARRY FLAG tS ON IF ANSWER IS > 9999 AND THE 4 BCD DIGITS ARE WOO, BOTH THE CARRY AND ZERO FLAGS WILL TURN ON.
EXAMPLE : 7777 + 2223
CARRY FLAG ON l
Addition Programming I& digits
ZERO FLAG ON
Example are loaded in accumulator from Inputs 00304047.
.
a40866
I
I data from Inputs 00504067. is stored in the accumulator and alsow1ittentoOutputs0100-0117. IfD OUTisspecifiedasaData Register, Intemal coil, etc.; the answer would lx stored at that location for further use in the program.
The mer
Page 147
545
Programming GEK90842
Example 2 This example shows more than one constant value entered in the program. By closing the respective contact, a different number can be selected to be added to the contents of the accumulator.
a40867
EN1 SHF 0 IMCS El 0STR El 11 I EN7 1 f El5 El0 El I 1 iSTR3
R
ENT
I STR I SW I I I S-V El
1258
7
F
I
-a it
MCR ~~~~~~~-~~~--~~~
-*
I’ (a-\ *’
I STR
I
I
1
F
SHF El SW El Elf
I
I
I
1
SHF
7
3
SHF
7
I
El
I
I
I
I
El
2
1
2
I
I
I
3
ENT
ENT
5
3
1
0
ENT
I
3
4
1
6 i I
J
ENT El
I
ENT
When 11 is closed, MCS is energized and does not control the logic following it. The number selected by closing one of the contacts, I2,I3, or 14 is added to the contents of the accumulator (read fkom Inputs 0030-0047). When I5 is closed, the answer will be written to Outputs 0060-0077.
Page 148
S-56
Programming
Subtraction (I), BCD 4 Digit (F72) The contents of a specifkd
2 group reference or a 4 digit BCD constant value are subtracted from the contents (BCD) of the accumulator. If the answer after the subtraction is positive, it is written directly to the accumulator. If the answer is negative, the Borrow Flag (775) turns ON, the absolute value is subtracted from 10000 and the resulting value is written to the accumulator. If the answer after subtraction is zero, the Zero flag (776) turns ON.
I
Valid 070
- 075
I/O Points
016
- 036
Internal
4-DtGIT
Coils
400
Data Registers
600
T/C Accumulated
GROUP REFERENCE
1
References
I/O Points
- 576 - 677 040 - 056 t oooo- 9999 r
Group ooo - 014
Shift Register (16-bit) Constant
(8-bit) Value
(4diait
BCD)
1
CONSTANT k-i r
BCD VALUE
1 t-c+
1
Registers
Coils xxtiI-$
1
Page 149
Programming
5-57
GE&90842 l
Subtraction sequence a40869
15
(4 DIGIT BCD NUMBER) REFERENCE +1
9
-
I7
0
4 L 8141211
0
REFERENCE 7
0
3 8141211
2 s(4~2ll
1 8141211
3
2
1
4
. .
, 2 GROUP REFERENCE OR 1 4 DIGIT CONSTANT
1 4 DIGIT BCD l
.
ACCUMULATOR CONTENTS
ANSWER STORED IN ACCUMULATOR
IF ANSWER IS 0000, ZERO FLAG IS ON IF ANSWER IS NEGATIVE, BORROW FLAG WILL BE ON
5
1 l
Subtraction programming
-
J example
Data is entered into the accumulator from Inputs 0040 - 0057. l A constant value (3333) is subtracted from the contents of the accumulator. l The answer is stored in the accumulator and is written to outputs 0150 - 0167. l
Page 150
GEK-90842
Multiplication (X), BCD 4 Digit (F73) The contents of the accumulator are multiplied by the contents of a specified 2 group reference or a 4 digit BCD constant. The answer can be from 1 to 8 digits. The lower 4 digits of the answer are stored in the accumulator and digits S-8 are stored in data registers 576 and 577, which are the auxiliary accumulator. If the answer is zero, the Zero flag (776) will turn ON. a40870 vdid
I t b
&DUD
ROfOft!M?WS
I ooo-014 070 - 075 016 - 036 W-056 400 - 576 600-677
I/O Points l/O Points Internal Coils Shift Register Coils Data Registers (8-bit) f/C Accumulated Value Registers W-bit)
oooo - 9999
Constant (ddigit BCD)
GROUP REFERENCE r
1 .
GROUP REFERENCE
1 CONSTANT VALUE x!xx}y+
4 DIGIT CONSTANT ++
6CD VALUE r l
1
Multiplication sequence (4 DIGIT BCD NUMBER)
15
X
REFERENCE + 1 t 7
0
8j4lZll
2
1
8141211
8]4)211
I .
8
7
6
5
4
3
2
1
8]4l2]1
814121
1 8141211
8]4121
1 81412j
1 81412!!
SlOlZll
576
!
~lower4digits(1,2,3,4)oftheanswerwillbestoredintbeaccumuratcK. in the audimy sccumulator (Data Req$sters 576 and 577). 9 the &ro flag (776) is ON.
a40871
GROUP REFERENCE OR 4 DIGIT CONSTANT
8l4/2jl
REGISTER REGISTER 577 AUXILIARY ACCUMULATOR dftheansweris~
4 o -2
7
SlOjZll
ACCUMULATOR CONTENTS
0
REFERENCE
3
4 r l t--xx
ACCUMULATOR WILL COKTAIN LOWER 4 DIGITS
Tk~pper4digit~(5,6,7,8)~iUbe~m~i