You are on page 1of 4

HSC_Mode0 User Defined Function Block

Name MJ Date 30 JAN 2013

Rev 5058-CO900C

Copyright 2012 Rockwell Automation, Inc. All rights reserved.

Disclaimer
HSC_Mode0 UDFB provide a easy to use interface for user to use Micro800 High speed counter Mode 0 without PLS function. It helps user to read current counter value without the need of doing parameter setting Mode 0 description: Up Counter The accumulator is immediately cleared (0) when it reaches the high preset. A low preset cannot be defined in this mode. This UDFB was created using CCW 2.0, it requires CCW 2.0 to work Please refer to User manual: 2080-um002-en-e.pdf Chapter 10 for detailed information of HSC function
Copyright 2012 Rockwell Automation, Inc. All rights reserved. 2

Parameters
Parameter
FBEN HSC_ID Start Stop InitialValue MaxValue RstCnt

Data Type
BOOL UINT BOOL BOOL DINT DINT BOOL

Description
Function block enable. Specify which HSC input is using for the counting. Range: 0~5. Please refer to User manual: 2080um002-en-e.pdf Chapter 10 Start Counting Triggering at Rising edge of Start Stop Counting Triggering at Rising edge of Stop The value user wants to start counting with The maximum value of Counting range Reset Counter. It will stop the counting and load the Initial Value to counter accumulator. Triggering at rising edge After reset, user need to re-start the counter to launch the initial value Current accumulator value
Copyright 2012 Rockwell Automation, Inc. All rights reserved. 3

CntValue

DINT

Sample Code

Copyright 2012 Rockwell Automation, Inc. All rights reserved.

You might also like