EasyManua.ls Logo

LSIS Master-K K1000S - H S C Instruction; Introduction

LSIS Master-K K1000S
238 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 16 Built-in high speed counter of K200S MASTER-K
16-5
16.5 HSC instruction
16.5.1 Introduction
When use the built-in high speed counter of K200S, the HSC instruction should be used.
The instruction format of HSC is as following;
When the value of operation mode (D4999), PV or SV is not proper, the instruction error
flag (F110) turns on and the HSC instruction is not executed.
1) EN input (Counter enable)
When the EN input turns on, the counter starts counting pulse. When the EN is off, the
counting is stopped and the current value of high speed counter is cleared as 0.
2) U/D input (Up/down)
When the U/D input is off, the high speed counter operates as up counter. When the U/D
is off, it operates as down-counter.
3) PR input (Preset)
When the PR input is on, the current value of high speed counted is replaced with the
preset value (PV).
4) Output relay (F170)
The F170 bit will be turn on when the current value of high speed counter (F18 : lower
word, F19 : upper word) is equal of greater than the set value (SV).
5) Carry flag (F171)
The carry flag turns on when the current value of high speed counter is underflow ( 0 à
16,777,215 ) during down counting or overflow ( 16,777,215 ) during up counting.
6) Current value
The current value of high speed counter is stored at two words, F18 and F19. The lower
word is stored at F18, and upper word is stored at F19.
HSC
EN
U/D PV ( )
PR SC ( )

Table of Contents

Related product manuals