Math And Trig Functions Using the CP1EE/N
Introduction
This article provides a general overview of the attached Getting Started Guide for Math and Trigonometric Functions using the CP1E PLC (MATH_FUNCTIONS_IN_CP1E.pdf). The attached CP1E_Math.cxp CXProgrammer file contains the following eight trigonometric functions that can be used as subroutines as shown in the guide. The CP1EE and CP1EN do not include these functions without complex, usercreated math algorithms such as those provided here.
 Sine Function
 Cosine Function
 Tangent Function
 Arcsine Function
 Arctangent Function
 Square Root Function
 Degree to Radian Conversion
 Radian to 2pi to +2pi Conversion
Overview
The attached document includes details that use the following hardware and software:
 CP1EE and CP1EN type CPUs
 CXProgrammer version 5.0 or higher
The attached CXProgrammer file and Getting Started Guide provide details for executing trigonometric functions as well as:
 Stepbystep programming procedure
 Program memory management
 Execution time note
 Accuracy of calculations
 Example
NOTE: This article is intended to supplement official Omron documentation. The provided Program should be thoroughly tested before implementation and may or may not function in specific applications. The user assumes full responsibility of the configuration, integration, performance and application of the provided program. For detailed information on the use and general configuration of Omron products, refer to official Omron manuals or contact your local Omron support representative.
Link:
http://www.myomron.com/index.php?action=kb&print=1403
