Relays, Memory Areas and Constants
1-56
1.3.7 Set Value Area for Timer/Counter (SV)
Function of set value areas (SV)
A set value for a timer or counter is stored in the set value area (SV) with the same
number as the timer or counter.
TM n, K30
Set value
SVn
K30
(Decimal number)
A decimal number or SV area number is specified for the set value when the TM or CT
instruction is entered in the program.
An SV is a one−word, 16−bit memory area which stores a decimal number from K0 to
K32767.
Using set value area (SV)
During RUN mode, a set value for a timer or counter can be changed by rewriting the
corresponding set value area.
The value in a set value area can be read and changed from the program by specifying
the destination and other information in F0 (MV) data transfer instruction.
The set value area can be read and rewritten using a programming tool.
For the FP2/FP2SH/FP10SH, if the Initialize/Test switch is set to the upper side (the
Initialize side) in the PROG mode, all timer/counter setting value areas (SV) are cleared
to 0. Even if a hold type has been specified, these are cleared to 0.
Note
With the FP2SH/FP10SH, system register 4 can be set in such a
way that these areas not cleared even if the Initialize/Test switch
is set to the upper side.
Example:
SV and EV areas are in a one−to−one correspondence with
timers and counters.
Timer/Counter number Set value area (SV) Elapsed value area (EV)
T0
T1
:
T99
SV0
SV1
:
SV99
EV0
EV1
:
EV99
C100
:
SV100
:
EV100
: