10.07.2015 Views

cubloc_manual2.pdf

cubloc_manual2.pdf

cubloc_manual2.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DO..LOOPDO..LOOP 문은 조건에 따라서 명령문을 계속 실행할 것인지의 여부를 결정합니다. DO WHILE 구조와 DO UNTIL 구조가 있으며, 빠져나올때에는 EXIT DO 를 사용합니다.DoLoop명령문Dim K As IntegerDoK=Adin(0) ‘ 0 번 채널에서 AD 입력Debug Dec K,CrDelay 1000Loop위와 같이 조건없이 DO..LOOP 문을 사용하면 무한루프가 됩니다. 무한루프를 탈출하기 위해서는EXIT DO 또는 GOTO 명령을 사용합니다.Do While [조건]명령문[Exit Do]LoopDo명령문[Exit Do]Loop While [조건]DO..WHILE 구조는 조건이 참인동안 계속해서 명령문을 반복실행합니다.Do Until [조건]명령문[Exit Do]LoopDo명령문[Exit Do]Loop Until [조건]DO..UNTIL 구조는 조건이 거짓인동안 계속해서 명령문을 반복실행 합니다.153

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

Saved successfully!

Ooh no, something went wrong!