cancel
Showing results for 
Search instead for 
Did you mean: 

DeviceBridge: Converter output string instead of integer

DeviceBridge: Converter output string instead of integer

stefanAT_ctrlX
New Contributor

Hello,

when we use a converter for a tag: e.g.     ((x-4000)*(150-(-20))/16000)+(-20)

then the output value after converting is a string ! Without using the CONVERTOR the datalayer-tag is a integer !

stefanAT_ctrlX_0-1697020758638.png

How can we solve this to get a integer.

(I don't want to use the business rule additional).

Regards,

Stefan

 

5 REPLIES 5

DvB_Support
Long-established Member

Hello,

Can we have the raw input range passed onto expression "x"

Thanks
Product Support

Hello,

dou you mean what is the raw format ?

It's directly from the datalayer/fieldbus:

stefanAT_ctrlX_0-1699370979207.png

 

DvB_Support
Long-established Member

Hello Stefan,

Apologies.

our response got delayed due to business trips.
we will look into this concern and get back to you at the earliest

Thanks
Product Support

DvB_Support
Long-established Member

Hello Stefan,

Tried simulating the above scenario (9503 of type Int16 as raw input passed onto converter)
Output seems to be a double value and not a string by applying the converter logic to the tag

Kindly find the attached document (RawValue_Conversion performed step by step) and do let us know for any further clarifications

Thanks
Product Support

Hello ! Thank you for the informations !

I just tried with the Json to Datalayer. Yes, in the datalayer WITH a converter comes a double value but in the result of the service monitoring is a STRING !

WITHOUT the converter the datalayer shows a int16 and the result in the service monitoring is a number not a string.

 

stefanAT_ctrlX_0-1701882960260.pngstefanAT_ctrlX_1-1701882967616.png

 

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