Kinco-MK
User Manual
(1) All the offset value are the offset bytes related to the table.
(2) When it is set as relative value,then the absolute value of PV data must be greater than
1,or PLC will consider the segment of multiple PV finish and count the number of PV
according to this(Higher priority than setting quantity of PV).
When it is set as absolute value,the difference between two adjacent PV’s absolute
value must be greater than 1,or PLC will consider the segment of multiple PV finish
and count the number of PV according to this(Higher priority than setting quantity of
PV).
(3) “CV=PV” interrupts must execute in sequence,it means that after the counter reaches
the first PV and executes interrupt,then it will compare with the second PV and so
forth.
(4) PV must be set reasonably.Here takes relative value as example,if it is positive
counting,PV must be greater than 0,otherwise the “CV=PV”interrupt will never
execute.If it is negative counting,PV must be less than 0,otherwise the
“CV=PV”interrupt will also never execute.
Relative value and absolute value
In the control byte of each high speed counter, there is one control bit which is used to set PV
as relative value or absolute value.
For HSC0,the control bit is SM141.1.
If SM141.1 is 0,it means PV is absolute value. When counting value is equal to PV,it will
execute “CV=PV” interrupt. For example,if it sets 3 PV values,such as 1000,2000 and
3000,then when counting value reaches 1000,it will execute the first “CV=PV”interrupt. When
the counting value reaches 2000,it will execute the second “CV=PV” interrupt and so forth.
If SM141.1 is 1,it means PV is relative value.If counter takes current counting value as
reference,when the value it continues to count is equal to PV,it will execute “CV=PV”
interrupt.For example,if it sets 3 PV values,such as 10,1000 and 1000,and the current counting
value is 100 before HSC starts,then when the counting value reaches 110,1110 and 2110,it will
execute corresponding“CV=PV” interrupt.
“CV=PV”interrupt cyclic 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.