브랜드

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

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

슈나이더 일렉트릭 코리아 웹사이트 방문자 분들 모두 환영합니다.
		
오늘 무엇을 도와드릴까요?
SCADAPack 474: Logic Blocks for Pulse Counting and DI-Based Reset

This article explains how to implement a pulse counting mechanism using SCADAPack 474 logic, leveraging a soft counter and a digital input (DI) for reset functionality. The logic is designed to work with physical I/O constraints, where the external counter retains its value and cannot be reset to zero.


Connections

  • Pulse Input: Connect the pulse signal to PIO_SP474_CI1, which acts as the physical counter input.
  • Soft Counter: Use a SoftCounter variable to track the pulse count logically.
  • Reset Input: Connect a digital input to PIO_SP474_DI1, which will be used to trigger a logical reset.

Key Logic Operations

  1. Copy Counter Value to SoftCounter
    The current value from PIO_SP474_CI1 is copied to SoftCounter.VALUE during each scan cycle.

  2. Reset Temporary Counter Value
    A MOVE block resets tempCounterValue when required.

  3. Trigger-Based Reset Using DI1
    When PIO_SP474_DI1 transitions from high to low (falling edge), the value of PIO_SP474_CI1 is loaded into tempCounterValue. This simulates a reset by establishing a new reference point.

  4. Calculate Difference and Update SoftCounter
    The logic compares PIO_SP474_CI1.VALUE with tempCounterValue using GT, LT, and EQ blocks.
    Based on the comparison, a SUB_UDINT block calculates the difference and updates SoftCounter.VALUE.


Working Principle

Since the physical counter (PIO_SP474_CI1) cannot be reset, the logic uses a reference value (tempCounterValue) to simulate a reset. The SoftCounter reflects the number of pulses counted since the last reset trigger, calculated as:

The below image shows a screenshot of the counter working principle.

Working principle of the counter

This approach ensures accurate pulse tracking while respecting the hardware limitations of SCADAPack I/O.

슈나이더 일렉트릭 Korea

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