12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

688 Structured Text ProgrammingFor example:Format//commentExampleAt the beginning of a line//Check conveyor belt directionIF conveyor_direction THEN...At the end of a lineELSE //If conveyor isn’t moving, set alarm lightlight := 1;(*comment*)END_IF;Sugar.Inlet[:=]1;(*open the inlet*)IF Sugar.Low (*low level LS*)& Sugar.High (*high levelLS*)THEN...(*Controls the speed of the recirculation pump. Thespeed depends on the temperature in the tank.*)/*comment*/IF tank.temp > 200 THEN...Sugar.Inlet:=0;/*close the inlet*/IF bar_code=65 /*A*/ THEN.../*Gets the number of elements in the Inventory arrayand stores the value in the Inventory_Items tag*/SIZE(Inventory,0,Inventory_Items);Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!