Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 693

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Data Control Instructions
0.00
P1
R
3-17-9 SCALING 3: SCL3(487)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
660
Scaling 1 to 5-V Analog Input to –200 to 200
In the following example, it is assume that an analog signal from 1 to 5 V is
converted and input to CIO 2005 as 0000 to 0FA0 hexadecimal. SCL2(486) is
used to convert (scale) the value in CIO 2005 to a value between –0200 and
0200 BCD.
When CIO 0.00 is ON, the contents of CIO 2005 is scaled using the linear
function defined by X (0FA0), Y (0400), and the offset (07D0). These values
are contained in D100 to D102, and the result is output to D200.
D100
Contents of R (D200)
D200
Offset
07D0 Hex
0200
0220
0.8 V 1 V
Converts signed BCD data into signed binary data according to the specified
linear function. An offset can be input in defining the linear function.
SCL3(487)
S
P1
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
0400 ( Y)
Contents of S (CIO 2005)
5 V
5.2 V
0FA0 Hex
( X)
S: Source word
P1: First parameter word
R: Result word
Step program areas
OK
Section 3-17
P1:
D100
P1+1:
D101
0 F A
0
P1+2:
D102
SCL3(487)
@SCL3(487)
Not supported.
Subroutines
Interrupt tasks
OK
OK
Offset
X
Y

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents