adccommunitymod (AutomationDirect) asked a question.

Bug: P2000 pck instruction

Created Date: January 03,2018

Created By: juance

**** 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.****

There is a bug in the pack boolean array (PBA) instruction. When trying to pack from the same boolean array into a 16-bit and 32-bit integers, the results are different. Result is correct when making bit 17=0, which should be irrelevant. Project is attached.


  • adccommunitymod (AutomationDirect)

    Created Date: January 03,2018

    Created by: juance

    There is a bug in the pack boolean array (PBA) instruction.

    When trying to pack from the same boolean array into a 16-bit and 32-bit integers, the results are different.

    Result is correct when making bit 17=0, which should be irrelevant.

    Project is attached.

  • adccommunitymod (AutomationDirect)

    Created Date: January 03,2018

    Created by: ADC_CommTeam01

    It looks as if you reported this to our tech support team back in December. Our product developers have already looked into it and it will be fixed in the next sw release. Work around until the sw release if you need it in a 32 bit word would be to do the PBA to a 16 bit tag and then pack the 16 bit to 32 bit using the PWA or PKW instruction.