Nos marques

Bienvenue sur le site Web de Schneider Electric

Bienvenue sur notre site Web.
		
En quoi pouvons-nous vous aider aujourd'hui ?
Example of the STRING_TO_xxx block in FBD using Control Expert (formerly Unity Pro ) .

Goals and Symptoms

This resolution is intended to outline the operation of the STRING_TO_xxx blocks from Control Expert (formerly Unity Pro) instruction set

Causes and Fixes


STRING_TO_INT

The STRING_TO_xxx 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:

Animation Table

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:

Animation Table
The converted string is shown below both by pulling the tag and the %MW location itself:
Animation Table

Schneider Electric Belgium

En savoir plus
Gamme :
En savoir plus
Gamme :

Besoin d'aide ?

  • Sélectionnez le bon produit

    Trouvez rapidement et facilement les produits et accessoires adaptés à vos applications.

  • Obtenir un devis

    Effectuez une demande de renseignements en ligne et un expert vous contactera.

  • Où acheter ?

    Trouvez facilement le distributeur Schneider Electric local le plus proche.

  • Centre d'aide

    Trouvez des ressources de support pour tous vos besoins, en un seul endroit.

  • Documentation produits
  • Téléchargement de logiciels
  • Sélecteur de produits
  • Substitution et remplacement de produits
  • Centre d'aide et de contact
  • Trouver nos sites
  • Obtenir un devis
  • Où acheter
  • Communauté Schneider Electric
  • Carrières
  • Qui sommes-nous ?
  • Signaler une mauvaise conduite
  • Accessibilité
  • Salle de presse
  • Partenaires
  • EcoStruxure
  • Nos emplois
  • Blog
  • Soyez informé des nouveautés en premier ?
  • Protection des données
  • Mention sur les cookies
  • Conditions d utilisation
  • Conditions générales de vente et d'achat
  • Change your cookie settings