Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Object development - DataTagAccess as InternalElement

    Object development - DataTagAccess as InternalElement

    FabianSIK
    Established Member

    Hi all,

    I try to develop a new object which should utilize the DataTagAccess as an "InternalElement". Building the object was no problem, but while testing TwinCat always gives me an exeption when using the read and write commands of the DataTagAccess.

    I followed the "Press with 2 cylinders" example from the training and double checked everything. The exeption is thrown in the Extension OnCall method of the DataTagAccess object. I guess that some internal methods are not called correctly. Also the OutHmi struct of the Extension is not filled.

    I used the code from an already testet subtree which works just fine. Just converting it to an object gives me problems.

    Has anyone tried to build an object using internal elements and maybe got the same problem?

    Thanks for any help.

    Regards
    Fabian

    7 REPLIES 7

    nexidator
    Community Moderator
    Community Moderator

    Hard to tell what's wrong without looking at your implementation. Maybe it's easiest if you contact the Helpdesk in this case so we can contact you directly.

    FabianSIK
    Established Member

    How about publishing my implementation here?

    TommyF
    Member

    Which version of the DataTagAccess object is used?

    The actual version is 1.2.12.0 with a bugfix in

    V1.2.10.0  assigned address to OutCmd.pData to prevent 0-pointer exeption in case of read-/write-timeout

    FabianSIK
    Established Member

    I use the version 1.2.12.0.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist