beautypg.com

Maple Systems MAPware-7000 User Manual

Page 172

background image

MAPware-7000 Ladder Logic Guide

164

1010-1041 rev. 00

Example:

When B010 is ON, the FG instruction finds the function value f(x) for x = XW004, and stores the
result in D0100.

The function f(x) is defined by 2 * 4 = 8 parameters stored in D0600 to D0607. In this example,
these parameters are set at the first scan.

Parameter table

4 registers for x parameters and subsequent 4 registers for corresponding f(x)
parameters plotted on a graph:

The Function Generator instruction interpolates f(x) value for x based upon the
parameters of (x

n

, y

n

). For example, if XW04 is 1500 (x = 1500), the result 1405 (f(x) =

1405) is stored in D0100.