Appendix; Ps501 Control Builder Operators Overview - ABB AC500-eCo Starter-Kit Getting Started

Table of Contents

Advertisement

4. Appendix

4.1 PS501 Control Builder Operators Overview

Name
Meaning
Arithmetic Operators
ADD
Addition
MUL
Multiplication
SUB
Subtraction
DIV
Division
MOD
Modulo division
MOVE
Assignment of a variable to another variable of
an appropriate type
INDEXOF
find the internal index for a POU
SIZEOF
determine the number of bytes required by the
given variable
Bitstring Operators
AND
Logic AND
OR
Logic OR
XOR
Logic XOR
NOT
Negative
Bit-Shift Operators
SHL
Bitwise left-shift of an operand : erg:= SHL
(in, n) in gets shifted to the left by n bits.
SHR
Bitwise right-shift of an operand: erg:=
SHR (in, n) in gets shifted to the right by n
bits.
ROL
Bitwise rotation of an operand to the left:
erg:= ROL (in, n) in will be shifted one bit
position to the left n times while the bit that
is furthest to the left will be reinserted from
the right.
ROR
Bitwise rotation of an operand to the right:
erg = ROR (in, n) in will be shifted one bit
position to the right n times while the bit
that is furthest to the left will be reinserted
from the left.
Selection Operators
SEL
Binary selection
MAX
Maximum function
MIN
Minimum function
LIMIT
MAX is the upper and MIN the lower limit for
the result
MUX
Multiplexer
Comparison Operators
GT
Greater than
LT
Less than
LE
Less than or equal to
____________________________________________________________________________________________________
Getting Started with AC500-eCo Starter-Kit
Variable Type
BYTE,WORD,DWORD,SINT,USINT,IN
T,UINT,DINT,UDINT,REAL and LREAL
BYTE,WORD,DWORD,SINT,USINT,IN
T,UINT,DINT,UDINT,REAL and LREAL
BYTE,WORD,DWORD,SINT,USINT,IN
T,UINT,DINT,UDINT,REAL and LREAL
BYTE,WORD,DWORD,SINT,USINT,IN
T,UINT,DINT,UDINT,REAL and LREAL
BYTE,WORD,DWORD,SINT,USINT,IN
T,UINT,DINT and UDINT
BOOL, BYTE, WORD or DWORD
BOOL, BYTE, WORD or DWORD
BOOL, BYTE, WORD or DWORD
BOOL, BYTE, WORD or DWORD
BYTE, WORD, DWORD
BYTE, WORD, DWORD
BYTE, WORD, DWORD
BYTE, WORD, DWORD
Any type of variable
Any type of variable
Any type of variable
Any type of variable
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
- 30 -

Advertisement

Table of Contents
loading

Table of Contents