Rob T 308 Lecture 18
Rob T 308 Lecture 18
Rob T 308 Lecture 18
Industrial Automation
Lecture 18
Data manipulation instructions (part b)
Math Instructions
17 March 2015, Tuesday
Topics
Todays Topics
10
The file copy (COP) instruction and the fill file (FLL)
instruction are high-speed instructions that operate
more quickly than the same operation with the FAL
instruction.
11
12
13
14
15
LIM (Limit test) Tests whether one value is within the limit
range of two other values.
MEQ (Masked Comparison for Equal) Tests portions of two
values to see whether they are equal.
Compares 16-bit data of a source address to 16-bit data at a
reference address through a mask.
16
17
18
19
20
21
22
23
24
25
Instruction is true for test values of 50 and less than 50 and for
test values of 100 and greater than 100.
Instruction is false for test values greater than 50 and less than
100.
Industrial Automation (ROBT308) - Spring 2015
26
27
When the data at the source address match the data at the
compare address bit-by-bit (less masked bits), the instruction is
true.
Industrial Automation (ROBT308) - Spring 2015
28
Data Manipulation
Programs
Industrial Automation (ROBT308) - Spring 2015
29
30
31
32
33
Vessel filling
operation.
The receiving vessel has its weight
monitored continuously by the PLC
program as it fills.
When the weight reaches a preset
value, the flow is cut off.
Should the system leak additional material into the vessel, the
total weight of the material could rise above the preset value
causing an equal instruction, if used, to go false and the vessel to
overfill.
Industrial Automation (ROBT308) - Spring 2015
34
35
36
37
38
39
40
41
42
Adjustments are
made continuously
by the PLC until the
difference between
the desired and
actual output is as
small as is practical.
43
44
45
PID controllers produce outputs that depend on the magnitude, duration, and
rate of change of the system error signal.
Industrial Automation (ROBT308) - Spring 2015
46
47
48
Math Instructions
Industrial Automation (ROBT308) - Spring 2015
49
50
51
Addition Instruction
Industrial Automation (ROBT308) - Spring 2015
52
53
54
55
Subtraction Instruction
Industrial Automation (ROBT308) - Spring 2015
56
57
58
Multiplication Instruction
Industrial Automation (ROBT308) - Spring 2015
59
60
61
The MUL
instruction
used as part
of a
temperature
control
program.
62
Division Instruction
Industrial Automation (ROBT308) - Spring 2015
63
64
65
Program for
converting
Celsius
temperature to
Fahrenheit.
66
67
68
69
70
71
72
73
74
75
76
77
78