Chapter 16. Built-in high speed counter of GM6-CPUC
16-9
C H S C _ S E T
C H S C _ S E T
GM1
GM2
GM3
GM4
GM5
GM6
λ
FUNCTION BLOCK
Description
REQ
STAT
DONE
BOOL
CHSC_SET
BOOL
USINT
SET
UDINT
I n p u t
REQ : Request signal for F/B execution
SET : Set a setting value (0 ~ 16,777,215)
O u t p u t
DONE : Turns on after the F/B is executed with no
error.
STAT : Indicates the operation status of F/B
Run a task program when the current value of HSC reaches to the setting value.
To run a task program, define a high speed counter task program as following figure,
and write a task program.
Assign a setting value to be compared
with the current value of HSC
HSC