이시간 부터는 영어가 되는 사람들을 위해 먼저 관리자가 번역기에 의해서 번역을 한뒤에 원본 글을 표기 하겠습니다.
HSC는 High Speed Counter의 약어다.
HSC 명령은 CTU & CTD와는 다르게 분류된다.
CTU & CTD 는 소프트웨어로 처리되는 방면 HSC는 하드웨어 적으로 처리되는 명령어 이다.
HSC를 상용하기 위해서는 CPU에 있는 J2 점퍼 핀을 제거 해야한다.
고속카운터 단자에 쎈서를 연결 한 다음 프로그램을 작성 한다.
위 그림과 같이 레더 프로그램을 작성 할 때 B3:0/1 비트를 ON 시키면 HSC C5:0 카운터가
활성화 되어 카운터를 시작 한다.
설정치(Preset)는 1000이고 현재치(Accum)은 0(Zero) 이다.
HSC 단자에 신호가 들어오면 현재치(Accum)가 증가 하면서 설정치(Preset)에 도달 하면
C5:0/DN 코일이 ON 되고 자동으로 RESET 된다.
이때 C5:0 현재치(Accum)를 강제 적으로 RESET 하고 싶을 때에는 RES 명령에 의해
현재치(Accum)를 초기화 할수 있다.
[-원본글-] The HSC command is used for counting where timed instances are very short and a regular CTU or CTD will not do. They are run differently from the CTU. Where the CTU and CTD instructions are software counters, the HSC is a hardware counter and runs asynchronously to the ladder program scan. The have Enable bits, Done bits, Preset, and Accum values and are set in the same way as the CTU. However, unlike other counters, the HSC runs off of only one input, I:0/0, this determines whether or not the counter is enabled or disabled. The rung which contains the HSC instruction should be unconditional, do not place I:0/0 as the enable instruction for the HSC, this will cause counts to be lost. There is hardware and certain other setups to follow before using a HSC instruction. Jumper J2 must be removed on the controller before using a HSC, and shielded wire should be used for the input I:0/0 to reduce noise. When the Done bit is set, the HSC will automatically reset itself and start from an Accum of 0 (zero).
The Preset value can be changed during operation by using the RES command. The Accumulated value is normally updated each time the HSC rung is evaluated in the ladder program. Only the OTE command is used to transfer this value.
In this example the inputs are both XIC instructions used to make either rung TRUE or FALSE. Because the HSC should always be enabled, we use B3:0/1 and assume that this instruction is always TRUE. The Accumulator automatically reads the I:0/0 and accumulates that value, NOT FALSE-to-TRUE rung transitions, this is why the HSC should always be enabled. Once the Accum reaches 1000, the Done bit will set, and cause the HSC to reset and start over.
|