Programming Considerations for PLC-5 ProcessorsF–4
Publication
65566.5.1 - October 1996
Data Format
The processor operates faster when you use integer data as compared
with floating-point data (Table F.C).
Table F.C
Comparing
Data T
ypes for T
ypical If T
rue" Execution T
imes
for Selected Instructions for PLC5/1
1, 20, 30, 40, 80 Processors
Type of Instruction Integer Floatingpoint
arithmetic, such as add, subtract, multiply, divide 4 - 12 4 - 36
trig functions, such as sin, cos, tan, cannot use integer 375 - 500
compare 4 - 6 5 - 8
process control, such as PID gain computation 500 - 900 880 - 1150
Addressing
The processor operates faster with direct addressing. Other types of
addressing take longer (Table F.D) and (Table F.E).
Table F.D
Typical
Additional Instruction Execution T
imes for Indirect Addressing
for PLC5/10, 12, 15, 25 Processors
For This Type of Data When the Instruction Address
contains an Indirect Address
for a Bit or Element, Add:
1
When the File Address in the Expression
or Destination Contains an Indirect Address
for the File or Element Number, Add:
1
bit
integer
floating-point
timer, counter, or control
conversion (integertofloat)
60 us
42 us
62 us
43 us
72 us
45 us
48 us
48 us
1
Add only the larger time if the address contains two indirect addresses.