브랜드

Impact-Company-Logo-English Black-01-177x54

슈나이더 일렉트릭 코리아 웹사이트에 방문해 주셔서 감사합니다.

슈나이더 일렉트릭 코리아 웹사이트 방문자 분들 모두 환영합니다.
		
오늘 무엇을 도와드릴까요?
How to script a multi-condition IF/ELSE statement in EcoStruxure Operator Terminal Expert
Issue:
Looking for an example on how to script an IF/ELSE statement in Blockly script in EcoStruxure Operator Terminal Expert

Product Line:
EcoStruxure Operator Terminal Expert (formerly known as Vijeo XD)

Resolution:
Take for example that we need to script the following block of code in Blockly script in EcoStruxure Operator Terminal Expert:
/**********************************************/
if((Var1==1) || (Var2==2) || (Var3==3))
{
Var4 = 1
}
else
{    Var4 = 0
}
/*********************************************/

We can make use of the following items in EcoStruxure Operator Terminal's Blockly script to establish the same multi-conditon IF/ELSE statement:

Blockly

1) First we start with an Orange Trigger Block. For our example, I have chosen the Periodic - When - Do block. This will run every 100 ms.
2) The next block is the Purple If/Do/Else Block.
3) For the Logical "OR" of the 3 conditions, we need to snap two Blue Logicial Conditon Blocks together. If you had more conditions, you would use more of the same blocks.
4) Going deeper into the Logical Condition Blocks, we need to establish our comparison blocks. For this, we will three Blue Comparison Blocks.  Note that these blocks need the blue Variable and Constant blocks as well. The Variable block is used to define the HMI variable and the Constant block is used to define the value to compare the HMI variable to.
5) Finally, we need to make our Do/Else operations. For these, we will use the Bronze Value Change blocks. Again, this block will need the blue Variable and Constant blocks as well. Remember to set the appropriate value to set Var4 to for the Do and Else conditions.

슈나이더 일렉트릭 Korea

자세히 알아보기
제품군
자세히 알아보기
제품군

도움이 필요하신가요?

  • 제품 선택기

    애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.

  • 견적 받기

    영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.

  • 구매처

    해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.

  • 지원 센터

    한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.

  • 제품 문서
  • 소프트웨어 다운로드
  • 제품 선택기
  • 제품 대체 및 교체
  • 지원 및 연락처 센터
  • 영업소 검색
  • 견적 받기
  • 채용
  • 회사 소개
  • 부정 행위 보고
  • 접근성
  • 뉴스룸
  • 투자자
  • Ecostruxure
  • 작업 검색
  • 블로그
  • 개인정보 취급방침
  • 쿠키 공지
  • 사용 약관
  • Change your cookie settings