ABB AC500-eCo Starter-Kit Getting Started page 31

Table of Contents

Advertisement

GE
Greater than or equal to
EQ
Equal to
NE
Not equal to
Address Operators
ADR
Returns the address of its argument
ADRINST
Within a function block instance returns
the address of the instance
BITADR
Returns the bit offset within the segment
Calling Operators
CAL
Calling a function block or a program
Type conversions
BOOL_TO
Conversion from type BOOL to any other
Conversions
type
TO_BOOL
Conversion from another variable type to
Conversions
BOOL
Conversion
Conversion from an integral number type
between Integral
to another number type
Number Types
REAL_TO-/
Converting from the variable type REAL or
LREAL_TO
LREAL to a different type
conversions
TIME_TO/
Converting from the variable type TIME or
TIME_OF_DAY
TIME_OF_DAY to a different type
Conversion
DATE_TO/DT_T
Converting from the variable type DATE or
O Conversions
DATE_AND_TIME to a different type
STRING_TO
Converting from the variable type STRING
Conversions
to a different type
TRUNC
Converting from REAL to INT
Numeric Operations
ABS
Returns the absolute value of a number.
ABS(-2) equals 2.
SQRT
Returns the square root of a number.
LN
Returns the natural logarithm of a number.
LOG
Returns the logarithm of a number in base
10.
EXP
Returns the exponential function.
____________________________________________________________________________________________________
Getting Started with AC500-eCo Starter-Kit
BOOL,BYTE,WORD,DWORD,SINT,USI
NT,INT,UINT,DINT,UDINT,REAL,LREA
L,TIME,DATE,TIME_OF_DAY,
DATE_AND_TIME and STRING
BOOL,BYTE,WORD,DWORD,SINT,USI
NT,INT,UINT,DINT,UDINT,REAL,LREA
L,TIME,DATE,TIME_OF_DAY,
DATE_AND_TIME and STRING
BOOL,BYTE,WORD,DWORD,SINT,USI
NT,INT,UINT,DINT,UDINT,REAL,LREA
L,TIME,DATE,TIME_OF_DAY,
DATE_AND_TIME and STRING
DWORD
DWORD
DWORD
STRING,BOOL,REAL and LREAL
For the STRING type
DWORD.
variable, the result is a time
constant.
For the STRING type
DWORD.
variable, the result is a time
constant.
IN can be BYTE, WORD, DWORD,
INT, DINT, REAL, SINT, USINT,
UINT, UDINT, OUT must be
type REAL.
IN can be BYTE, WORD, DWORD,
INT, DINT, REAL, SINT, USINT,
UINT, UDINT, OUT must be
type REAL.
IN can be BYTE, WORD, DWORD,
INT, DINT, REAL, SINT, USINT,
UINT, UDINT, OUT must be
type REAL.
IN can be BYTE, WORD, DWORD,
INT, DINT, REAL, SINT, USINT,
UINT, UDINT, OUT must be
type REAL.
- 31 -

Advertisement

Table of Contents
loading

Table of Contents