오늘 무엇을 도와드릴까요?

Why don't I see the error code on my READ_REG block?

Goals and Symptoms

This resolution is designed to outline the reasons why a user may not see the error code from a communication block as well as the logic to 'capture' it.

Facts and Changes


Facts and Changes

  • The code below applies to both Concept and Unity Pro.
  • The principle of the code below will also apply to READ_REG, WRITE_REG, READREG, WRITEREG, CREADREG, and CWRITEREG blocks but may require some modification depending on the communication block being use.

Causes and Fixes

Causes and Fixes

Communication block such as the READ_REG take several scans to solve. The error code the block generates is put into the status register for one scan and then replaced by a 0.
For this reason when the block fails to communicate to the slave device the error code is often not seen.

Logic to capture the error code must be added.

The READ_REG's STATUS output is configured as a located 4X WORD 400001. The code below is actually running in a controller communicating to a device that does not exist, so the block is currently in an error condition. The status register displays a 0 for say 9 out of 10 scans. Only during one of those say 10 scans, will register 400001 display an error code.
The code below is designed to 'capture' the error code. When the error output on the block goes high during that scan the error code will be moved to the STATUS output. The R_TRIG (rising edge trigger) will move the value in the status register into a table of register provided by the R2T (register to table)

Note: It is important to note the solve order of the blocks; the R_TRIG and R2T cannot be solved before the READ_REG.

example

슈나이더 일렉트릭 Korea

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

도움이 필요하신가요?

도움이 필요하신가요?

제품 선택기

제품 선택기

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

견적 받기

견적 받기

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

구매처

구매처

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

지원 센터

지원 센터

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

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