EasyManua.ls Logo

Technology SPX5 - Math Functions over Database Values

Technology SPX5
35 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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)
Figure
31
.
Configuration of the
Ethernet
/IP Data Transfer of a converted value