Componentes de texto estructurado: Comentarios

Para hacer que su texto estructurado sea más fácil de interpretar, añádale comentarios.
  • Los comentarios le permiten usar un lenguaje llano para describir cómo funciona el texto estructurado.
  • Los comentarios no afectan a la ejecución del texto estructurado.
Para añadir comentarios a su texto estructurado:
Para añadir un comentario
Use uno de estos formatos
en una única línea
//comment
(*comment*)
/*comment*/
al final de una línea de texto estructurado
dentro de una línea de texto estructurado
(*comment*)
/*comment*/
eso abarca más de una línea
(*start of comment. . .end of comment*)
/*start of comment. . .end of comment*/
Por ejemplo:
Formato
Ejemplo
//comment
Al comienzo de una línea
//Comprobar dirección de cinta transportadora
IF conveyor_direction THEN...
Al final de una línea
ELSE //If conveyor isn’t moving, set alarm light
light := 1;
END_IF;
(*comment*)
Sugar.Inlet[:=]1;(*open the inlet*)
IF Sugar.Low (*low level LS*)& Sugar.High (*high level LS*)THEN...
(*Controls the speed of the recirculation pump. The speed depends on the temperature in the tank.*)
IF tank.temp > 200 THEN...
/*comment*/
Sugar.Inlet:=0;/*close the inlet*/
IF bar_code=65 /*A*/ THEN...
/*Gets the number of elements in the Inventory array and stores the value in the Inventory_Items tag*/
SIZE(Inventory,0,Inventory_Items);
Entregue su opinión
¿Tiene dudas o comentarios acerca de esta documentación? Por favor deje su opinión aquí.
Normal