스트럭쳐드 텍스트 구성 요소: 주석

스트럭쳐드 텍스트를 해석하기 쉽도록 하려면 주석을 추가합니다.
  • 주석을 사용하면 스트럭쳐드 텍스트가 작동하는 방법을 일반 언어로 설명할 수 있습니다.
  • 주석은 스트럭쳐드 텍스트의 실행에는 영향을 주지 않습니다.
스트럭쳐드 텍스트에 주석을 추가하려면:
주석을 추가하려면
다음 형식 중 하나를 사용
단일 줄에
//comment
(*comment*)
/*comment*/
스트럭쳐드 텍스트 줄의 끝에
스트럭쳐드 텍스트 줄 내에
(*comment*)
/*comment*/
두 줄 이상에
(*start of comment. . .end of comment*)
/*start of comment. . .end of comment*/
예:
형식
예
//comment
줄의 시작에
//Check conveyor belt direction
IF conveyor_direction THEN...
줄의 끝에
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);
의견을 작성 부탁드립니다.
이 자료에 대한 문의사항이나 요청사항이 있습니까? 여기에 요청사항을 작성 부탁드립니다.
Normal