K
K
K
K inco
inco
inco
inco -K
-K
-K
-K S
S
S
S series
series
series
series
21
counting value reaches 110,1110 and 2110,it will execute corresponding “ CV=PV ” interrupt.
�
�
�
� “
“
“
“ CV=PV
CV=PV
CV=PV
CV=PV ”
”
”
” interrupt
interrupt
interrupt
interrupt cyclic
cyclic
cyclic
cyclic execution
execution
execution
execution
“ CV=PV ” interrupt cyclic execution is only valid when PV is set as relative value.
If SM141.0 is 0,it means “ CV=PV ” interrupt only executes once.When all interrupts finish execution,then it
will stop.If it needs to execute again, it must modify the related registers and execute HSC instruction again.
If SM141.0 is 1,it means “ CV=PV ” interrupt is cyclic execution.When the last PV interrupt finishes
execution,PLC will take the current counting value as reference to calculate new value for PV interrupt,then
it will start to compare the counting value and execute “ CV=PV ” interrupt and so forth.This process will
execute cyclically.
For example,it sets 3 PV values,such as 10,1000 and 1000.And the current counting value is 100 before HSC
starts,then the value for every interrupt is as following table.
Current
Current
Current
Current counting
counting
counting
counting
value
value
value
value
Interrupt
Interrupt
Interrupt
Interrupt times
times
times
times First
First
First
First value
value
value
value Second
Second
Second
Second value
value
value
value Third
Third
Third
Third value
value
value
value
100 1st time 110 1110 2110
2110 2nd time 2120 3120 4120
4120 3rd time 4130 5130 6130
… N time … … …
2.2.4
2.2.4
2.2.4
2.2.4 “
“
“
“ CV=PV
CV=PV
CV=PV
CV=PV ”
”
”
” Envent
Envent
Envent
Envent No.
No.
No.
No.
When it uses single PV mode, the HSC will be fully compatible with K5 (Include “ CP=PV ” event No.).
When it uses multiple PV mode, the HSC will assign a new event No. for 32
PV,
as shown in following table.
High
High
High
High speed
speed
speed
speed
counter
counter
counter
counter
Interrupt
Interrupt
Interrupt
Interrupt No.
No.
No.
No. Description
Description
Description
Description
HSC0
64 “ CV=PV ” interrupt of 1st PV
65 “ CV=PV ” interrupt of 2nd PV
… …
(
Plus 1
)
95 “ CV=PV ” interrupt of 32nd PV
HSC1
96 “ CV=PV ” interrupt of 1st PV
97 “ CV=PV ” interrupt of 2nd PV
… … ( Plus 1 )
127 “ CV=PV ” interrupt of 32nd PV
HSC2 128 “ CV=PV ” interrupt of 1st PV