Professional Documents
Culture Documents
KV-5000/3000 Series
KV-5000/3000 Series
Application examples
Unit conversion and data analysis for analog measurement data
Calculating production line availability factors (%)
and failure rates (ppm)
Calculating angles for alignment control
Conventional PLCs
Failure rate (ppm) = Failure count ×1000000 ÷ Production count Mathematical expressions are difficult to
D1004 = D1002 ÷ 1000000 / D1000 understand without comment
(statement) lines.
MO
FLT D1002 D2000
Execute Failure count For temporary
mathematical cache 1
operation to
calculate E∗ D2000 E1000000 D2002 The failure count and the production
failure rate in For temporary For temporary count need to be temporarily stored in a
parts per cache 1 cache 2 separate device while processing the
million (ppm).
mathematical operation.
DFLT D1000 D2004
Production For temporary
count cache 3
Full 32-bit Almost no loss of speed even with extensive use of 32-bit
processing : mathematical operation commands such as 2-word or real-number
floating decimal point operations.
Built-in FPU : A built-in FPU (floating-point unit: a dedicated unit for floating-point
real-number operations) gives KV-5000/3000 Series models vastly
superior real-number mathematical operation ability.
MO
D0 = (D10000 + 5 ) / 10 ∗ 10
Execute
rounding.
Area script
IF D15 〈 2000 THEN Has no execution condition,
D20.T = “Normal”
ELSE
so it is always executed.
D20.T = “Error”
END IF
Ctrl B
Ctrl (SPACE)
www.keyence.com
Copyright (c) 2009 KEYENCE CORPORATION. All rights reserved. KV-WW-GB1-E 0079-1 600601