FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
10-13-2023 02:40 PM
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 !
How can we solve this to get a integer.
(I don't want to use the business rule additional).
Regards,
Stefan
10-26-2023 04:18 PM - edited 10-26-2023 04:19 PM
Hello,
Can we have the raw input range passed onto expression "x"
Thanks
Product Support
11-07-2023 04:29 PM
Hello,
dou you mean what is the raw format ?
It's directly from the datalayer/fieldbus:
12-04-2023 04:09 PM - edited 12-04-2023 04:11 PM
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
12-05-2023 07:32 AM - edited 12-05-2023 07:33 AM
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
12-06-2023 06:16 PM
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.