Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual

Page 27

Advertising
background image

BASIC PROGRAMMING GUIDE

2-18

EXP

Syntax:

EXP(expr)

Function:

Raises "e" (2.71828) to the power of expr

Mode:

Command, run

Use:

PRINT EXP(COS(1))

DESCRIPTION

This function returns the result of the number

(2.718282) raised to the power given by expr. This function is

very computation time intensive. Small values of expr take about 5 milli-seconds to calculate while larger
ones (near 250) require nearly 0.2 seconds. Avoid using this function in tight control or time intensive
applications.

ERROR

BAD ARGUMENT When result of expr > 256

Advertising