EasyManua.ls Logo

Panasonic FP0R - Elapsed Value Write and Read Instruction; Target Value Match on Instruction

Panasonic FP0R
348 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8-14
Elapsed value write and read instruction (F1)
This instruction writes or reads the elapsed value of the high-speed counter.
Specify this instruction together with the elapsed value area of high-speed counter after the special
data register DT90300.
If the F1 (DMV) instruction is executed specifying DT90300, the elapsed value will be stored as 32-bit
data in the combined area of special data registers DT90300 and DT90301.
Use this F1 (DMV) instruction to set the elapsed value.
Example 1: Writing the elapsed value
Set the initial value of K3000 in the high-speed
counter.
Example 2: Reading the elapsed value
Read the elapsed value of the high-speed
counter and copies it to DT100 and DT101.
Note:
The elapsed value area varies during scanning. Replace it with an arbitrary data register at the beginning
of the program as necessary in cases such as using it several times in the program.
Target value match ON instruction (F166)
Example 1:
If the elapsed value (DT90300 and DT90301)
for channel 0 matches K10000, output Y7 turns
on.
Example 2:
If the elapsed value (DT90308 and DT90309)
for channel 2 matches K20000, output Y6 turns
on.
Target value match OFF instruction (F167)
Example 1:
If the elapsed value (DT90304 and DT90305)
for channel 1 matches K30000, output Y4 turns
off.
Example 2:
If the elapsed value (DT90312 and DT90313)
for channel 3 matches K40000, output Y5 turns
off.

Table of Contents

Related product manuals