Chapter 16. Built-in high speed counter of GM6-CPUC
16-6
16.5. Programming
16.5.1. Function block (F/B)
CHSC_WR
CHSC_WR
GM1
GM2
GM3
GM4
GM5
GM6
λ
FUNCTION BLOCK
Description
REQ
CT_E
PRE_
I/E
STAT
DONE
MULT
PHS
DOWN
CY_R
U/D_
I/E
BOOL
BOOL
USINT
BOOL
BOOL
BOOL
BOOL
BOOL
CHSC_WR
BOOL
USINT
I n p u t
REQ : Request signal of F/B execution
PHS : Operation modes selection
0 (1-phase counter), 1(2-phase counter)
MULT : Assign the multiplication factor
(MULT = 1, 2, or 4)
U/D_I/E : Assign the count direction (up/down)
selector
0 : Set by sequence program
1 : Set by B-phase input signal
(1:up-count, 0:down-count)
CY_R : Carry reset signal ( 1: reset).
DOWN : Select the count direction (0:up/1:down)
when the counter is set as 1-phase counter
and up/down is selected by sequence
program. (PHS=0 & U/D_I/E=0)
CT_E : Counter enable signal
(0 : Counter disable, 1 : Enable)
PRE_I/E : Assign PRESET input
0 : PRESET by sequence program
1 : PRESET by external input at the
PRESET terminal
O u t p u t
DONE : Turns on after the F/B is executed with no
error.
STAT : Indicate the operation status of F/B
- The MULT input will be dummy input when the HSC is set as 1 -phase counter (PHS =
0). When the HSC is set as 2-phase counter, the U/D_I/E and DOWN input will be
dummy input. (PHS = 1)
- The current value of HSC will be cleared as 0 when the CT_E (counter enable) is 0.