Publication 1766-RM001A-EN-P - October 2008
198 Math Instructions
Using the Math
Instructions
Most math instructions use three parameters, Source A, Source B, and
Destination (additional parameters are described where applicable, later
in this chapter). The mathematical operation is performed using both
Source values. The result is stored in the Destination.
When using math instructions, observe the following:
Advanced Math Instructions
Instruction Used To: Page
SIN Take the sine of a number and store the result in the destination. 211
COS Take the cosine of a number and store the result in the
destination.
214
TAN Take the tangent of a number and store the result in the
destination.
216
ASN Take the arc sine of a number and store the result(in radians) in
the destination.
218
ACS Take the arc cosine of a number and store the result (in radians)
in the destination.
220
ATN Take the arc tangent of a number and store the result (in radians)
in the destination.
221
DEG Convert radians (source) to degrees and store the result in the
destination.
223
RAD Convert degrees (source) to radians and store the result in the
destination.
225
LN Take the natural log of the value in the source and store it in the
destination.
227
LOG Take the log base 10 of the value in the source and store it in the
destination.
229
XPY Raise a value to a power and stores the result in the destination. 231
CPT Evaluate an expression and store the result in the destination. 234
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive