Math Functions Over Database Values - Technology SPX5 User Manual

Industrial gateway
Table of Contents

Advertisement

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
output= math.sqrt (input)
mainDatabase:setFLOAT(2*105,output,0)
Figure 31. Configuration of the Ethernet/IP Data Transfer of a converted value
IZI Technology Inc, 3651 Pegasus Dr. Ste. 117 Bakersfield, CA 93308 USA.
Tel: (661) 412-3494 -- email:
www.izitechnology.com
=mainDatabase:getUINT16(2*100,0)
sales@izitechnology.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents