N2

en

name

Elements name length should be in a given range

  • a) The names of program variables must contain at least Min chars
  • b) The names of program codes must contain at least Min chars
  • c) The names of program variables must contain no more than Max chars
  • d) The names of program codes must contain no more than Max chars
  • e) The names of program types must contain no more than Max chars
  • f) The names of program types must contain at least Min chars
  • g) The name of the program application must contain at least Min chars

description

The names of program elements must contain at least Min characters and not more of Max characters.

Detailed explanation : A minimum number of characters ensures more meaningful naming. A maximum of characters allows depending on PLC manufacturer to avoid the mnemonics truncated in display or export, or to improve readability

Level :

<fieldset id="config"> <legend>Mnemonic length</legend> <label for="min">Minimum for variables</label> <input name="data[{id}a][minLength]" type="number" min="3" max="128" title="Range is between 3 and 128 characters" value="4"> </input> <label for="max">Maximum for variables</label> <input name="data[{id}c][maxLength]" type="number" min="3" max="128" title="Range is between 3 and 128 characters" value="30"> </input> <label for="min">Minimum for types</label> <input name="data[{id}f][minLength]" type="number" min="3" max="128" title="Range is between 3 and 128 characters" value="4"> </input> <label for="max">Maximum for types</label> <input name="data[{id}e][maxLength]" type="number" min="3" max="128" title="Range is between 3 and 128 characters" value="30"> </input> </fieldset>

errorMessage

  • a) Variable {VARIABLE} name is shorter than required
  • b) Routine {FULLNAME} name is shorter than required
  • c) Variable {VARIABLE} name is longer than required
  • d) Routine {FULLNAME} name is longer than required
  • e) Type {FULLNAME} name is longer than required
  • f) Type {FULLNAME} name is shorter than required
  • g) Program {NAME} name is shorter than required

fr

name

Les noms des éléments du programme doivent avoir une taille minimum et maximum

  • a) Les noms des variables du programme doivent comporter au moins Min caractères
  • b) Les noms des codes du programme doivent comporter au moins Min caractères
  • c) Les noms des variables ne doivent pas contenir plus de Max caractères
  • d) Les noms des codes du programme ne doivent pas comporter plus de Max caractères
  • e) Les noms des types du programme ne doivent pas comporter plus de Max caractères
  • f) Les noms des types du programme doivent comporter au moins Min caractères
  • g) Le nom du programme doit comporter au moins Min caractères

description

Les noms des éléments du programme doivent comporter au moins un certain nombre de caractères et ne doivent pas être trop long.

Explication complémentaire : Un nombre minimum de caractères assure que le nommage est plus significatif.

Niveau conseillé : Obligatoire

<fieldset id="config"> <legend>Longueur du mnemonique</legend> <label for="min">Minimum pour les variables</label> <input name="data[{id}a][minLength]" type="number" min="3" max="128" title="celle-ci doit etre comprise entre 3 et 128 caracteres" value="4"> </input> <label for="max">Maximum pour les variables</label> <input name="data[{id}c][maxLength]" type="number" min="3" max="128" title="celle-ci doit etre comprise entre 3 et 128 caracteres" value="30"> </input> <label for="min">Minimum pour les types</label> <input name="data[{id}f][minLength]" type="number" min="3" max="128" title="celle-ci doit etre comprise entre 3 et 128 caracteres" value="4"> </input> <label for="max">Maximum pour les types</label> <input name="data[{id}e][maxLength]" type="number" min="3" max="128" title="celle-ci doit etre comprise entre 3 et 128 caracteres" value="30"> </input> </fieldset>

errorMessage

  • a) Le nom de la variable {VARIABLE} est plus court que demandé
  • b) Le nom de la routine {FULLNAME} est plus court que demandé
  • c) Le nom de la variable {VARIABLE} est trop long, il risque d'être tronqué
  • d) Le code en {FULLNAME} a un nom trop long. Il risque d'être tronqué
  • e) Le type {FULLNAME} a un nom trop long. Il risque d'être tronqué
  • f) Le nom du type {FULLNAME} est plus court que demandé
  • g) Le nom du programme {NAME} est plus court que demandé

it

name

I nomi degli elementi del programma devono avere una lunghezza minima e una lunghezza massima

  • a) I nomi delle variabili del programma devono essere costituiti da almeno min caratteri
  • b) I nomi dei codici del programma devono essere costituiti da almeno min caratteri
  • c) I nomi delle variabili del programma non devono contenere più di max caratteri
  • d) I nomi dei codici del programma non devono contenere più di max caratteri
  • e) I nomi dei tipi del programma non devono contenere più di max caratteri
  • f) I nomi dei tipi del programma devono essere costituiti da almeno min caratteri
  • g) Il nome del programma deve essere costituito da almeno min caratteri

description

I nomi degli elementi del programma devono essere costituiti da non meno di min caratteri e da non più di max caratteri.

Spiegazione supplementare: un numero minimo di caratteri garantisce che i nomi siano più significativi. Un numero massimo di caratteri consente, a seconda del produttore del PLC, di evitare che il nome sia troncato quando viene visualizzato o esportato, o anche di migliorare la leggibilità.

Livello consigliato: obbligatorio

<fieldset id="config"> <legend>Lunghezza del nome</legend> <label for="min">Minimo per le variabili</label> <input name="data[{id}a][minLength]" type="number" min="3" max="128" title="deve essere compreso fra 3 e 128 caratteri" value="4"> </input> <label for="max">Massimo per le variabili</label> <input name="data[{id}c][maxLength]" type="number" min="3" max="128" title="deve essere compreso fra 3 e 128 caratteri" value="30"> </input> <label for="min">Minimo per i tipi</label> <input name="data[{id}f][minLength]" type="number" min="3" max="128" title="deve essere compreso fra 3 e 128 caratteri" value="4"> </input> <label for="max">Massimo per i tipi</label> <input name="data[{id}e][maxLength]" type="number" min="3" max="128" title="deve essere compreso fra 3 e 128 caratteri" value="30"> </input> </fieldset>

errorMessage

  • a) Il nome della variabile {VARIABLE} è troppo corto
  • b) Il nome della routine {FULLNAME} è troppo corto
  • c) Il nome della variabile {VARIABLE} è troppo lungo, potrebbe essere troncato
  • d) Il codice {FULLNAME} ha un nome troppo lungo e c'è il rischio che venga troncato
  • e) Il tipo {FULLNAME} ha un nome troppo lungo e c'è il rischio che venga troncato
  • f) Il nome del tipo {FULLNAME} è troppo corto
  • g) Il nome del programma {NAME} è troppo corto

de

name

Die Namen der Elemente müssen eine Mindest- oder Maximalgröße

  • a) Die Namen der Programm-variablen müssen mindestens Min Zeichen enthalten
  • b) Die Namen des Programmcodes müssen mindestens Min Zeichen enthalten
  • c) Die Namen der Programm-variablen dürfen nicht mehr als Max Zeichen enthalten
  • d) Die Namen des Programmcodes dürfen nicht mehr als Max Zeichen enthalten
  • e) Die Namen der Programmtypen dürfen nicht mehr als Max Zeichen enthalten
  • f) Die Namen der Programmtypen müssen mindestens Min Zeichen enthalten
  • g) Der Name des Programms muss mindestens Min Zeichen enthalten

description

Die Namen von Programmelementen müssen mindestens “Min” Zeichen und nicht mehr als “Max” Zeichen enthalten.

Detailed explanation : Eine Mindestanzahl von Zeichen sorgt für mehr sinnvolle Namensgebung. Je nach SPS-Hersteller, ein Maximum von Zeichen vermeidet die Bezeichnungen im Display oder Export abgeschnitten werden, und verbessern Sie die Lesbarkeit.

Level :

<fieldset id="config"> <legend>Mnemonic length</legend> <label for="min">Mindeste für Variablen</label> <input name="data[{id}a][minLength]" type="number" min="3" max="128" title="Bereich liegt zwischen 3 und 128 Zeichen" value="4"> </input> <label for="max">Maximale fur Variablen</label> <input name="data[{id}c][maxLength]" type="number" min="3" max="128" title="Bereich liegt zwischen 3 und 128 Zeichen" value="30"> </input> <label for="min">Mindeste fur Typen</label> <input name="data[{id}f][minLength]" type="number" min="3" max="128" title="Bereich liegt zwischen 3 und 128 Zeichen" value="4"> </input> <label for="max">Maximale fur Typen</label> <input name="data[{id}e][maxLength]" type="number" min="3" max="128" title="Bereich liegt zwischen 3 und 128 Zeichen" value="30"> </input> </fieldset>

errorMessage

  • a) Der Name der Variable {VARIABLE} ist kürzer als gefordert
  • b) Der Name der Routine {FULLNAME} ist kürzer als gefordert
  • c) Der Name der Variable {VARIABLE} ist länger als gefordert
  • d) Der Name der Routine {FULLNAME} ist länger als gefordert
  • e) Der Name der Typ {FULLNAME} ist länger als gefordert
  • f) Der Name der Typ {FULLNAME} ist kürzer als gefordert
  • g) Der Name des Programms {NAME} ist kürzer als gefordert