thomassorensen
Member
Hi
In the attempt to create my first RS-Logic program, I have met a small challenge, on how to cast/convert data.
I receive an array of 255 SINT from profibus. In this 255, I know that SINT[4] to SINT[24], is a 20 charater ASCII string.
My problem is, that I can’t find a instruction, that I can use to extract this as a string.
I have tried something like this without any luck.
Does anyone have a suggestion on how I can do this conversion ?
In the attempt to create my first RS-Logic program, I have met a small challenge, on how to cast/convert data.
I receive an array of 255 SINT from profibus. In this 255, I know that SINT[4] to SINT[24], is a 20 charater ASCII string.
My problem is, that I can’t find a instruction, that I can use to extract this as a string.
I have tried something like this without any luck.
Code:
BATCH_ID := "";
FOR Iterator := 4 to 24 DO
CONCAT(BATCH_ID, MVI56PDPMV1.PROFIBUSData.Input[ Iterator ], BATCH_ID);
END_FOR;
Does anyone have a suggestion on how I can do this conversion ?