adccommunitymod (AutomationDirect) asked a question.

P3000 float tag to 4 byte data array

Created Date: January 16,2017

Created By: Ross.K

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I am setting up communications via ethernet/ip to an Endress (E &h) Promass A100 flow meter. ( https://portal.endress.com/wa001/dla...214.pdf#page82 ) Pg 49 The output array for this is 64 bytes, with data boundaries at specific byte locations for x bytes. (See the data link above) However the data required is a mix of integer and floats unfortunately the p3000 implementation of ethernet/ip does not use EDS files (and thus no structured tag format. ) only a single data array can be configured. I can setup an array of unsigned byte integers but specific elements (4 bytes sections) need to be in ieee Need to be in IEEE754 float format any idea on how to take a float tag and convert it bitwise to a 4byte array? Thanks in advance


  • adccommunitymod (AutomationDirect)

    Created Date: January 16,2017

    Created by: Ross.K

    I am setting up communications via ethernet/ip to an Endress (E&h) Promass A100 flow meter.

    ( https://portal.endress.com/wa001/dla...214.pdf#page82 )

    Pg 49

    The output array for this is 64 bytes, with data boundaries at specific byte locations for x bytes. (See the data link above)

    However the data required is a mix of integer and floats

    unfortunately the p3000 implementation of ethernet/ip does not use EDS files (and thus no structured tag format. )

    only a single data array can be configured.

    I can setup an array of unsigned byte integers

    but specific elements (4 bytes sections) need to be in ieee

    Need to be in IEEE754 float format

    any idea on how to take a float tag and

    convert it bitwise to a 4byte array?

    Thanks in advance

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: January 16,2017

    Created by: ADC_CommTeam01

    You can use the unpack word array (UPWA) to unpack bytes out of a word then use the Copy Data (CPD) in binary copy to copy them into floats. If you need to get to the bit level use the Unpack Boolean Array (UPBA) instruction.

  • adccommunitymod (AutomationDirect)

    Created Date: January 16,2017

    Created by: Ross.K

    Thanks I will try that.