ProSoft Technology, Inc.
Home > Support > Bulletin Board > inRAx > MVI56-MCMR Supporting Float Point Data
Printable Page
 

Search | Clear


MVI56-MCMR Supporting Float Point Data

« Previous topic | inRAx | Next topic »

You need to be logged in to get access to the forums. You can do so here

bofwanker1

Wednesday 14 March 2007 8:48:52 am

MVI56-MCMR Supporting Float Point Data

I would like to get some information on send Floating Point Data using the MVI56-MCMR. Including the support for the ladder module for sending and receiving of the data.

jsanders

Friday 30 March 2007 3:32:16 pm

RE:MVI56-MCMR Supporting Float Point Data

To send Floating Point (REAL) data from a CLX CPU to the ProSoft MVI56-MCMR module, simply use the COPy instruction in RSLogix to COPy from any REAL-type tags or Tag Arrays to the MCM1.WriteData[x] array. The LENgth of the COPy instruction will need to be twice the number of FP values you wish to send, as each 32-bit FP will be stored in two 16-bit registers in the MCMR.

To read in FP data, simply COPy from the MCM1.ReadData[x] array into a REAL-type tag or tag array. The LENgth of this COPy instruction will be the number of REAL values you want to create. Keep in mind, it will take 2 16-bit array elements to hold one FP value; so there will be twice as many elements used in the ReadData[x] array as there are FP values.


Home : Products : Support : Distributors : Services : News/Events : Contact Us : ProSoft Tested