Contents
x Series 90-30/20/Micro Programmable Controllers Reference Manual–September 1998 GFK-0467K
Example:...........................................................................................................4-16
OFDT........................................................................................................................4-17
Parameters:........................................................................................................4-18
Valid Memory Types:.......................................................................................4-19
Example:...........................................................................................................4-19
UPCTR .....................................................................................................................4-20
Parameters:........................................................................................................4-20
Valid Memory Types:.......................................................................................4-21
Example:...........................................................................................................4-21
DNCTR.....................................................................................................................4-22
Parameters:........................................................................................................4-22
Valid Memory Types:.......................................................................................4-23
Example:...........................................................................................................4-23
Example:...........................................................................................................4-24
Section 3: Math Functions..............................................................................4-26
Standard Math Functions (ADD, SUB, MUL, DIV)................................................4-27
Parameters:........................................................................................................4-28
Valid Memory Types:.......................................................................................4-28
Example:...........................................................................................................4-28
Math Functions and Data Types........................................................................4-29
MOD (INT, DINT)...............................................................................................4-31
Parameters:........................................................................................................4-31
Valid Memory Types:.......................................................................................4-32
Example:...........................................................................................................4-32
SQRT (INT, DINT, REAL)..................................................................................4-33
Parameters:........................................................................................................4-33
Valid Memory Types:.......................................................................................4-34
Example:...........................................................................................................4-34
Trig Functions (SIN, COS, TAN, ASIN, ACOS, ATAN) ...................................4-35
Parameters:........................................................................................................4-36
Valid Memory Types:.......................................................................................4-36
Example:...........................................................................................................4-36
Logarithmic/Exponential Functions (LOG, LN, EXP, EXPT) ............................4-37
Parameters:........................................................................................................4-37
Valid Memory Types:.......................................................................................4-38
Example:...........................................................................................................4-38
Radian Conversion (RAD, DEG).........................................................................4-39
Parameters:........................................................................................................4-39
Valid Memory Types:.......................................................................................4-40
Example:...........................................................................................................4-40
Section 4: Relational Functions......................................................................4-41
Parameters:........................................................................................................4-42
Expanded Description:......................................................................................4-42
Valid Memory Types:.......................................................................................4-42
Example:...........................................................................................................4-43
RANGE (INT, DINT, WORD) ............................................................................4-44
Parameters:........................................................................................................4-45
Valid Memory Types:.......................................................................................4-45
Example 1:........................................................................................................4-46