Convert data in Studio5000

JonasVC

Member
Join Date
Sep 2020
Location
Antwerp
Posts
3
Hi all,

I have a question on how to hande data that i read from a sensor (type IFM) trough IO-Link (1734-4IOL)

I get 2 SINT's (SINT[0] and SINT[1]) with 8 bools in it..

I need to convert this to readable data according to the reference i got from IFM as show in the picture

this is something rockwell did not teach me yet :)

Data.JPG
 
You can create an INT variable and use a COP instruction starting from SINT[0] with the destination being the INT variable. The size of the COPY is the 16 bits from the Destination data type, so it will copy SINT[0] and SINT[1].

After this is done, you can bit shift right twice to get rid of the bits and get the level reading.
 

Similar Topics

I'm working with a customer to copy one of the machines they designed in-house several years ago. The previous PLC programmer had a thing for...
Replies
8
Views
2,083
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...
Replies
4
Views
2,174
I need a good idea to solve a small task. My customer bought a measuring device where the measurement is collected by a controller from a...
Replies
6
Views
3,244
I am helping a company who would like use their Graphtec GL220 data recorder, to record the voltage the KB DC drives are putting out to the...
Replies
15
Views
4,020
How To Convert S5 Data Block To S7? When I Open The Data Block Of S5 Only..km Or Km Or Kh Or..format Allow Me To See. Regards
Replies
1
Views
4,727
Back
Top Bottom