Appendices
A-34
CP2E CPU Unit Software User’s Manual(W614)
TIME-PRO-
PORTIONAL
OUTPUT
TPO --- Inputs the duty ratio or manipulated variable from the specified
word, converts the duty ratio to a time-proportional output based
on the specified parameters, and outputs the result from the spec-
ified output.
C: First Parameter Word
Bits 04 to 07 of C specify the input type, i.e., whether the input
word contains an input duty ratio or manipulated variable. (Set
these bits to 0 hex to specify a input duty ratio or to 1 hex to
specify a manipulated variable.)
The following diagram shows the locations of the parameter
data.
R: Pulse Output Bit
Specifies the destination output bit for the pulse output.
Normally, specify an output bit allocated to a Transistor Output
Unit and connect a solid state relay to the Transistor Output
Unit.
SCALING SCL @ Converts unsigned binary data into unsigned BCD data according
to the specified linear function.
P1: First Parameter Word
Instruction Mnemonic Variations Symbol/Operand Function
TPO (685)
S
C
R
S: Input word
C: 1st parameter word
R: Pulse output bit
C
815 12 11 0347
Manipulated variable
range
Input type
Input read timing
Output limit function
C+1
C+2
C+3
C+4
C+5
C+6
015
Control period
Output lower limit
Output upper limit
Work area
(3 words, cannot be used by user)
SCL(194)
S
P1
R
S: Source word
P1: 1st parameter word
R: Result word
(BCD)
(BIN)
(BCD)
(BIN)
P
P1 + 1
P1 + 2
P1 + 3
R (unsigned BCD)
Point B
Point A
Scaling is performed
according to the linear
function defined by points
A and B.
Converted
value
Converted
value
S (unsigned binary)
P1
P1+1
P1+2
P1+3
15 0
15 0
15 0
15 0
Scaled value for point A (Ar)
0000 to 9999 (4-digit BCD)
Unscaled value for point A (As)
0000 to FFFF (binary)
Scaled value for point B (Br)
0000 to 9999 (4-digit BCD)
Unscaled value for point B (Bs)
0000 to FFFF (binary)