Panasonic FP E Series User Manual page 104

Table of Contents

Advertisement

Elapsed value write and read instruction (F1)
• This instruction changes or reads the elapsed value of the high-speed counter.
• Specify this instruction together with the special data register DT90044.
• The elapsed value is stored as 32-bit data in the combined area of special data registers DT90044 and
DT90045.
• Use this F1 (DMV) instruction to set the elapsed value.
Example 1: Writing the elapsed value
Example 2: Reading the elapsed value
Target value match ON instruction (F166)
Example 1:
Example 2:
Target value match OFF instruction (F167)
Example 1:
Example 2:
6-14
Set the initial value of K3000 in the high-speed
counter.
Read the elapsed value of the high-speed
counter and copies it to DT100 and DT101.
If the elapsed value (DT90044 and DT90045)
for channel 0 matches K10000, output Y7 turns
on.
If the elapsed value (DT90200 and DT90201)
for channel 2 matches K20000, output Y6 turns
on.
If the elapsed value (DT90048 and DT90049)
for channel 1 matches K30000, output Y4 turns
off.
If the elapsed value (DT90204 and DT90205)
for channel 3 matches K40000, output Y5 turns
off.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents