03.01.2013 Views

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FUN 165 FG Function generator<br />

Expression<br />

Input −[ A FG (n) B → C ]− Output<br />

6F3B0253<br />

7. Instructions<br />

Function<br />

When the input is ON, this instruction finds the function value f(x) for A as x, and stores it in C. The<br />

function f(x) is defined by the parameters stored in 2 × n registers starting with B.<br />

Execution condition<br />

Input Operation Output<br />

OFF No execution OFF<br />

ON Execution ON<br />

Operand<br />

Name Device Register Constant Index<br />

X Y R S T. C. XWYWRWSW T C D I J K<br />

A Input value x √ √ √ √ √ √ √ √ √ √ √<br />

n Parameter size 1 - 32<br />

B Start of<br />

√ √ √ √ √ √ √<br />

parameters<br />

C Function value<br />

f(x)<br />

Example<br />

√ √ √ √ √ √ √ √ √<br />

When R010 is ON, the FG instruction finds the function value f(x) for x = XW004, and stores<br />

the result in D0100.<br />

The function f(x) is defined by 2 × 4 = 8 parameters stored in D0600 to D0607. In this example,<br />

these parameters are set at the first scan.<br />

Basic Hardware and Function 229<br />

<strong>CTi</strong> <strong>Automation</strong> - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!