4 STANDARD FUNCTIONS/FUNCTION BLOCKS
4.1 Standard Functions
153
4
Arithmetic operation functions
■Addition
■Multiplication
■Subtraction
■Division
■Remainder
■Exponentiation
■Assignment (move operation)
Bit shift functions
■Shifting data to the left/right by n bit(s)
■Rotating data to the left/right by n bit(s)
Function symbol Processing details Reference
ADD Outputs the sum of input values ((s1)+(s2)++(s28)). Page 1906 ADD(_E)
ADD_E
Function symbol Processing details Reference
MUL Outputs the product of input values ((s1)(s2)(s28)). Page 1908 MUL(_E)
MUL_E
Function symbol Processing details Reference
SUB Outputs the difference between input values ((s1)-(s2)). Page 1910 SUB(_E)
SUB_E
Function symbol Processing details Reference
DIV Outputs the quotient of input values ((s1)(s2)). Page 1912 DIV(_E)
DIV_E
Function symbol Processing details Reference
MOD Outputs the remainder of input values ((s1)(s2)). Page 1914 MOD(_E)
MOD_E
Function symbol Processing details Reference
EXPT Outputs the exponentiation of an input value. Page 1916 EXPT(_E)
EXPT_E
Function symbol Processing details Reference
MOVE Outputs the assignment value of an input value. Page 1917 MOVE(_E)
MOVE_E
Function symbol Processing details Reference
SHL Shifts the input value to the left by (n) bit(s), and outputs the operation result. Page 1919 SHL(_E)
SHL_E
SHR Shifts the input value to the right by (n) bit(s), and outputs the operation result. Page 1921 SHR(_E)
SHR_E
Function symbol Processing details Reference
ROL Rotates the input value to the left by (n) bit(s), and outputs the operation result. Page 1923 ROL(_E)
ROL_E
ROR Rotates the input value to the right by (n) bit(s), and outputs the operation result. Page 1925 ROR(_E)
ROR_E