
2.4 Instruction Details
1
2
3-117
Chapter 2 Instructions
Example
Coding
Operation in the above example
Measures pulse-to-pulse interval or pulse width for input relay 0000.
ITVL instruction has two functions:
• Measures pulse-to-pulse interval (cycle) or pulse width. (Minimum unit: 10 ms)
• Obtains the average of the contents of data memory.
Each input has the following functions:
• PLS
Executes measurement. In data memory measurement, however, PLS input is
disabled in modes 0006 to 1999. Values are fetched only at the scan when PLS
input is ON in modes 10000 to 11999.
The measured value is written into the specified data memory (DM).
➞ In the above example, the measured value of input relay 0000 is
written into DM0004 (DM0000 + 4 addresses).
• PAUSE
Pauses the measurement when turned ON.
• RES
Initializes the contents of data memory (DM) when turned ON.
➞ In the above example, DM0004 to DM0015 are reset to "#00000".
• DM0000 to DM0003 are designated as the area to write the initial setting.
Note: ITVL operand relay Nos. cannot be duplicated in a program.
Operands
* Note that of I/O Nos.7000 to 9915, those that are not assigned to expansion or remote I/O
unit ports can be used for internal utility relays.
Key operation
ITVL: Interval Timer
Measures pulse-to-pulse interval or pulse
width in specified mode.
ITVL
PLS
DMnnnn
PAUSE
mmmm
RES
ITVL
#TM
0000
0001
0002
PLS
DM0000
PAUSE
1000
RES
ITVL
"Reset" input
"Pulse" input
Beginning of workpiece data table
"Measurement Pause" input
First flag relay
ITVL
#TM
First operand
(nnnn)
Second operand
(mmmm)
ENT
R-SRCH
Line No. Instruction Operand
0000 LD 0000
0001 LD 0001
0002 LD 0002
0003 ITVL DM0000 1000
:
ITVL
Visual KV KV-300 KV-10/16 KV-24/40/80
Data table No.: Data table No.: DM0000 to DM0985 DM0000 to DM1985
DM0000 to DM1984 DM0000 to DM9985 1000 to 1912 1000 to 1912
1000 to 1912 Flag relay No.: 3000 to 6912
Flag relay No.: 1000 to 1912
3000 to 9912 3000 to 9912
*7000 to 9915
KVNKA Chap 02_4bP.p65 08.3.11, 0:00 PM117
Comentários a estes Manuais