Cpt - Compute - Allen-Bradley MicroLogix 1400 Instruction Manual

Programmable controllers
Hide thumbs Also See for MicroLogix 1400:
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
234
Math Instructions

CPT - Compute

ABS
CPT
Compute
Dest
Expression
ABS
CPT
Compute
Dest
Expression
(N7:0 + N7:1)*(N7:2 + N7:3)
Publication 1766-RM001A-EN-P - October 2008
The XPY instruction processes at the floating-point level, so the result causes
IMPORTANT
the truncation error when it is used with the long data types.
Instruction Type: output
N7:4
0<
(N7:0 + N7:1)
N7:4
0<
Execution Time for the CPT Instruction
Controller
Data Size
MicroLogix 1400
word
The CPT instruction performs copy, arithmetic, logical, and conversion
operations. You define the operation in the Expression and the result is
written in the Destination. The CPT uses functions to operate on one or
more values in the Expression to perform operations such as:
• converting from one number format to another.
• manipulating numbers.
• performing trigonometric functions.
The execution time of a CPT instruction is longer than a single arithmetic
TIP
operation and uses more instruction words.
Enter the following parameters when programming this instruction:
• Expression is zero or more lines, with up to 28 characters per line,
up to 255 characters.
• Destination is a word address or the address of a floating-point data
element.
When Rung Is:
True
False
4.8535 µs
0.6610 µs

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents