10.07.2015 Views

cubloc_manual2.pdf

cubloc_manual2.pdf

cubloc_manual2.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

SELECT..CASE조건에 따라 여러명령문 블록중에서, 하나의 명령블록을 실행하는 명령입니다.Select Case 수식[Case 값 [,값],…[명령문블록 1]][Case 값 [,값],…[명령문블록 2]][Case Else[명령문블록 3]]End SelectSelect Case ACase 1B = 0Case 2B = 2Case 3,4,5,6B = 3Case Is < 1B = 3Case ElseB = 4End Select‘값이 여러 개일때에는 콤마(,)로 분리합니다.‘부등호를 사용할때에는 IS 예약어를 사용합니다.‘그외의 경우에는 ELSE 를 사용합니다.Dim K As IntegerDim R As IntegerK=Adin(0)Select Case KCase Is < 10R = 0Case Is < 40R = 1Case Is < 80R = 2Case Is < 100R = 3Case ElseR = 4Next K‘ 0 번 채널에서 AD 입력‘10 보다 작은 값일 경우‘40 보다 작은 값일 경우152

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

Saved successfully!

Ooh no, something went wrong!