IOlink SINT data in AB logix designer convert to decimal

Join Date
Oct 2020
Location
portland
Posts
3
Hi all! looking for help converting an 8 bit word SINT tag into decimal. I have an IFM SBN246 flow sensor wired in my controller (L310ER) and it auto generates the controller tags for the sensor data. I need to somehow convert one of the SINT tags into decimal so i can display the flow value. I tried aliasing the tag to a decimal tag but the signs bit makes it go positive then negative.

Thanks for any help!

Ben
 
Welcome to the PLCTalk Forum community !

In general, the SINT data type is already "in decimal" if you view it as decimal instead of hex or binary or ASCII.

But you probably just need it to be in an INT or DINT format, so that the most-significant bit is treated as 2^8, not the sign bit.

Are you certain the data is just 8 bits unsigned (an "unsigned 8 bit integer") or is it 16 bits and just never gets to the value 512 or higher so it just shows up in the lower 8 bits ?

The easiest way to do this, especially if the SINT after yours is zero, is to do a CPS instruction with a destination tag of INT type, and a Length of 1.
 
Ken,

Thanks for the quick response. I tried the CPS instruction but the result is always zero? (unless i screwed it up somehow) I have attached a couple shots of how IFM parses out the data and a screen capture of my tag values with some flow present at the sensor.

Any other ideas?

ifm data map.PNG channel 2 data.PNG
 
Whoops! I think i got it, copying to an INT works WAAAYYY better when you actually run the routine with the instructions...(facepalm). Thanks to everyone who replied!!
 

Similar Topics

I have an Omron NX PLC NX1p2 which Supports EtherCAT . also I have Balluff BNI00HA Ecat Block(IOlink Master). I have setup communications and...
Replies
0
Views
162
I hope somebody might be able to help me who has done some IO-Link messaging using an S7-1500 (TIA Portal 17) and the CMx8 IOLink module for the...
Replies
11
Views
1,782
Has anyone here on the Forum used the new Banner DXMR90R-4K IOLink Master device with an S7-1500 or similar ProfiNet controller ? Banner has been...
Replies
1
Views
903
Hi all, Apologies in advance for the awful title. I don't really know how to succinctly describe my issue. The platform is AB L320ERS2 v32...
Replies
6
Views
2,422
Hi folks, I am having a hell of a time getting an E+H PMP23 scaled correctly in a CompactLogix PLC. I have tried all sorts of data manipulation...
Replies
19
Views
6,962
Back
Top Bottom