IZI Technology Inc, 3651 Pegasus Dr. Ste. 117 Bakersfield, CA 93308 USA.
Tel: (661) 412-3494 -- email: sales@izitechnology.com
www.izitechnology.com
Math Functions over Database Values
For this example an unsigned integer value from the SPX5 database word address 100 will be read
and the square root of the value will be set in word address 105 in floating point format. The value
in address 105 will be sent to an Allen Bradley PLC named Qtot.
Continuous
local input
=mainDatabase:getUINT16(2*100,0)
output=
math.sqrt (input)
mainDatabase:setFLOAT(2*105,output,0)
/IP Data Transfer of a converted value