c4

en

name

Comment should not contain comment start marker

description

Comment should not contain comment start marker (e.g, “/ *”, “( *”). In addition to that, nested comments are forbidden (IEC11631 §2.1.5, system requirement 1.5.1 d).

Detailed explanation : The presence of a comment start marker is often a symptom of a comment end marker forgotten, which can lead to inhibition of part of the program. In some PLC workbenches, a global projects option enables or disables support for nested comment.

Example

/* A comment with the end marker has been forgotten

Critical_section_that_must_be_executed_which_is_found_in_the comment();

/* <- The comment of the first comment start marker is now commented because the end marker of the previous comment has been forgotten */

Level : Mandatory

errorMessage

  • a) Comment at {LOCATION} contains a start comment marker: {STR}

fr

name

Les commentaires ne doivent pas contenir le marqueur de début de commentaire

<note important> Le titre ne doit plus comporter {id} comme précédemment </note>

description

Les commentaires ne doivent pas contenir le marqueur de début de commentaire (par exemple, “/ *”, “( *”).

Explication complémentaire : La présence d'un marqueur de début de commentaire dans un commentaire est souvent le symptôme d'un oubli de marqueur de fin de commentaire, pouvant conduire à la non-exécution d'une partie de code.

Exemple:

/* Un commentaire quelconque dont le marqueur de fin a été oublié


Section_critique_qu_il_faut_a_tout_prix_executer();
/* Ce commentaire ne suit pas la norme */

Niveau conseillé : Obligatoire

errorMessage

  • a) Le commentaire en {LOCATION} contient un début de commentaire : {STR}

it

name

I commenti non devono contenere il contrassegno di inizio del commento

<note important> Il titolo non deve più comprendere {id} come in precedenza </note>

description

I commenti non devono contenere il contrassegno di inizio del commento (per esempio “/ *”, “( *”). In caso contrario, i commenti nidificati sono vietati.

Spiegazione supplementare: la presenza di un indicatore di inizio commento in un commento segnala spesso che è stato dimenticato l'indicatore di fine commento, e questo può comportare la non esecuzione di una porzione di codice. In alcuni ambienti di programmazione di PLC, un'opzione globale per il progetto abilita o disabilita il supporto dei commenti nidificati.

Esempio:

/* Un commento qualunque di cui è stato dimenticato l'indicatore di fine


Sezione_molto_importante_che_deve_essere_assolutamente_eseguita();
/* Questo commento non segue la regola */

Livello consigliato: obbligatorio

errorMessage

  • a) Il commento in {LOCATION} contiene un indicatore di inizio commento: {STR}

de

name

Kommentare dürfen nicht die Anfangsmarkierung eines Kommentars enthalten

description

Kommentare dürfen nicht die Anfangsmarkierung eines Kommentars enthalten (z.B. “/ *”, “( *”). Darüber hinaus sind eingebettete Kommentare verboten (IEC11631 §2.1.5, system requirement 1.5.1 d).

Vertiefende Erklärung : Das Vorhandensein einer Kommentar-Anfangsmarkierung kann ein Symptom einer vergessenen Kommentar-Endmarkierung sein, welches zu Ausfällen in Teilen des Programms führen kann. In einigen SPS-Umgebungen gibt es eine globale Option, die eingebettete Kommentare zuläßt oder nicht.

Beispiel

/* Ein Kommentar mit einer vergessenen Endmarkierung

Critical_section_that_must_be_executed_which_is_found_in_the comment();

/* <- Hier wurde der gesamte Kommentar kommentiert, da die Endmarkierung des vorherigen Kommentars vergessen wurde. */

Level : Obligatorisch

errorMessage

  • a) Der Kommentar {LOCATION} enthält die Anfangsmarkierung eines Kommentars: {STR}