beautypg.com

Micromod Micro-DCI: 53MC5000 Multi-Loop Process Controller CUSTOMIZATION GUIDE User Manual

Page 15

background image

The following data transformations are allowable and may be used as required in programs. These
operators are often required in computations involving mixed data types.

To expand a data type:

B__%

converts to C__ type data

B__% %

converts to H__ type data

C__%

converts to H__ type data

L__%%

converts to C__ type data

L__%%%

converts to H__ type data

L__%

converts to B__ type data

To contract a data type:

C__$

converts to B__ type data

H__$

converts to C__ type data

H__$ $

converts to B__ type data

H__$ $ $

converts to L__ type data

C__$ $

converts to L__ type data

B__$

converts to L__ type data

V (base 2 logarithm) Operator

The V operator will remove a C data value from the stack, compute the base 2 log and
place that value back on the stack.

NOTE: Since the V operator uses additional stack memory to perform

the calculation, the stack must not contain more than one C value when

the operator is issued.

To change a log base

The log base can be changed as follows:

Log

10 X

= 0.30103 Log

2 X

Log

e X

= 0.69315 Log

2 X

M (2

X

) Operator

The M operator will remove a C data value from the stack and use it as the exponent
to compute 2

X

(e.g., if C01 is 3, then 2

C01

= 8).

NOTE: As the M operator uses additional stack memory to perform the

calculation, the stack must not contain more than one C value when the

M operator is issued.

P (Y

X

) Operator

Example Statement: C00 = C01 C02 P ;

In the example C01 = Y, and C02 the exponent. The P operator will remove C01 and C02 from the
stack and compute Y

X

(i.e., C01

C02

). The computed value is then returned to the stack.

NOTE: As the P operator uses additional stack memory to perform the

calculation, the stack must not contain more than two C values when

the P operator is issued.

MODULAR CONTROLLER CUSTOMIZATION GUIDE

2-8