Kinco-KS series
relative value or absolute value. It supports “CV=PV” interrupt cyclic execution.
Follows take HSC0 as example to describe PV value function and setting.
How to select “multiple PV” mode
In the control byte of each high speed counter, there is one control bit for enable multiple
preset value.
In HSC0, this control bit is SM141.0.
If SM141.0 is 0,it will use single PV value, same as K5 PLC.SMD42 is for new PV
value,SM37.5 is to update this new PV value.
If SM141.0 is 1,it will use multiple PV values. In this situation,SM37.5 and SMD42 is invalid.
All the PV values will be in the PV table(SMW142 is for starting address of the
table),SM141.4 defines whether it use the data in PV table or not.If SM141.4 is 1,it means
when HSC starts, it will get the data from PV table. If SM141.4 is 0,when HSC starts,it will
ignore the data in PV table and get the data from last preset value.
If using PV table,all the PV value will get from PV table.
Each HSC provides one control word which is used to set the starting address of PV table.If
using multiple PV,then all PV value will get from PV table.The starting address of PV table is
odd address of V area,such as 301(Means VB301).
The format of PV table is as follows.
(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).