11.07.2015 Views

Programming Manual

Programming Manual

Programming Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

LNC MILLMACRO Program5.10 Flow Control Command (WHILE~DO)Label conditioned statement after WHILE, when the labeled condition is fulfilled, programs execute from DOto END. It the labeled condition is not fulfilled, programs execute content after END.WHILE [conditioned statement] DOIf conditionnot fulfilledIffulfilledconditionData processing;END n;Sequential numbers after DO and END are identification symbols of execution range. Use 1, 2, 3 as theidentification number. If numbers other than 1, 2, 3 are used, system alarm #3170 will be triggered in the Donstatement as: 1 ≤ n ≤ 3 unsatisfied.• WHILE statement syntax:Identification numbers (1~3) can be used for times if needed.WHILE [….] DO 1;Data processing;END 1;….….….WHILE [….] DO 1;Data processing;END 1;….….242 LNC Technology Co., Ltd.

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

Saved successfully!

Ooh no, something went wrong!