AB with Prosoft MV156-MNET and control logix

duncan1984

Member
Join Date
Nov 2010
Location
Scotland
Posts
1
I am using Modbus Ethernet to read from a Statcom using a Prosoft MV156-MNET module. I am able to read the digital and analogue signals fine (into the correct registers i have created) however with the analoges i get incorrect values back.

The automatically created addresses by the MNET module are 16bit INT and the statcom signals are Reals. I have tried the functions within the MNET module to swap the words, bytes and bits etc and also obviously converting from INT to REAL with no luck.

Can anyone suggest how i can manipulate the data im receiving so it mirrors whats being sent out by the statcom?

Thanx in advance!!

Examples Below.

Statcom Send -- Value MNET Receive Value DEC(BIN)
Statcom Sends Value 1 -- MNET Receives Value 16256 (00111111 10000000)
2 -- 16384 (01000000 00000000)
3 -- 16448 (01000000 01000000)
4 -- 16512 (01000000 10000000)
5 -- 16544 (01000000 10100000)
6 -- 16576 (01000000 11000000)
7 -- 16608 (01000000 11100000)
8 -- 16640 (01000001 00000000)
9 -- 16656 (01000001 00010000)
10 -- 16672 (01000001 00100000)
20 -- 16800 (01000001 10100000)
30 -- 16880 (01000001 11110000)
 
Last edited:
You should be able to use the COP or CPS instruction to move two of those 16-bit integer tags into a single Real type tag.

The COP instruction moves a bit pattern, while the MOV instruction moves a value. A-B automatically converts between data types (SINT, INT, DINT, REAL) when you use MOV, but not when you use COP or CPS.

Remember that the Length argument for a COP or CPS instruction is the number of destination elements, not the number of source elements.

You also will want to find a way to use the Prosoft control program to make sure you're looking at a whole updated data table; you could have a lot of trouble if only 1 of the 2 16-bit halves of the 32-bit data type is updated.
 

Similar Topics

I have got a ASCII device communicating with CLX, by using the Prosoft Module MV 156 GSV, the data from the device is stored in the CLX as a...
Replies
2
Views
2,545
Hi, We have an application that has a device that goes through a reboot (appears un-graceful) What then happens is the MVI module appears to hang...
Replies
0
Views
73
I am working on setting up a Prosoft Datalogger model PLX51-DLplus-232. This unit will be collecting data from a SLC 5/05 on the DB9 port set to...
Replies
3
Views
103
Hello. I am trying to use a Prosoft AN-X4 to improve the communications for a new panelview plus 7. This is going from a SLC-500 through DH+ to a...
Replies
9
Views
288
Hi. I'm using a Modbus ProSoft where I basically map data to a big INT array. Example, where GX_I_63HPU is a REAL, MNETC.DATA.WriteData[200] an...
Replies
21
Views
428
Back
Top Bottom