Chapter 11 Flashcards

1
Q

math instructions

A

use the contents of 2 words or registers and perform the desired function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

CPT

A

compute

  • evaluates an expression & stores result in destination
  • used to make own formulas
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ADD

A

adds source A to source B and stores result in destination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SUB

A

subtracts source B from source A and stores result in destination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

MUL

A

multiplies source A by source B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

DIV

A

divides source A by source B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SQR

A

calculates square root of source & puts in destination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

NEG

A

negate

changes sign of source

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

TOD

A
to BCD (binary coded decimal)
converts 16 bit integer source to BCD & stores in destination
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

FRD

A

from BCD

converts BCD value and stores in destination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

arithmetic status bits

A
  • carry (C) = address S2:0/0, set to 1 when there is carry in ADD & borrow in SUB
  • overflow (O) = address S2:0/1, set to 1 when result is too large to fit in dest.
  • zero (Z) = address S2:0/2, set to 1 when result of subtract instruction is zero
  • sign (S) = address S2:0/3, set to 1 when result is negative
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

MOD

A

modulo instruction

-used to calculate remainder after value stored in source A is divided by value stored in source B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

ONS

A

one shot in a scan, similar to OSR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

good feedback loop

A

error is small, feedback catches up quickly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

controller tag vs local tag

A
  • local tag: real inputs wired to PLC

- controller tag: just used for logic, for things not actually present

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

analog output O:6.0

A

can put 0 to 32767 in here to drive the motor

17
Q

latching/unlatching coils

A

must have same addresses, latching holds power when power is turned off