Example of the STRING_TO_x block in FBD using Control Expert (formerly Unity Pro ) .
Goals and Symptoms
This resolution is intended to outline the operation of the STRING_TO_x blocks from Control Expert (formerly Unity Pro) instruction set
Causes and Fixes
The STRING_TO_x blocks will convert strings of ASCII decimal characters stored in multiple contiguous registers into one tag.
The Unity Pro instruction set has three blocks
STRING_TO_INT
STRING_TO_DINT
STRING_TO_REAL
For this application, we will use the INT version.
Two tags are created:
String_In of type STRING located at %MW1 and
Int_Out type INT located at %MW100.
String_In occupies %MW1-%MW3
Each byte of the memory words contain one ASCII decimal character. These ASCII decimal characters are converted into one integer value containing the integer equivalents located at %MW100.
If the String_In is pulled up in the animation table you will see something like the example below:
If the three occupied %M's are pulled up in the animation table you will see the individual characters; two ASCII decimal characters per %MW:
The converted string is shown below both by pulling the tag and the %MW location itself:
If this FAQ did not solve your issue, you can chat with us at chat with us or e-mail us at customer.services@se.com to create a case with our Technical Support Team.
If you are not located in North America, please contact your local Customer Care Center for assistance:
게시 대상: 슈나이더 일렉트릭 Korea
도움이 필요하신가요?
제품 선택기
애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.
견적 받기
영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.
구매처
해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.
지원 센터
한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.