EasyManuals Logo

Omron CPM1 Programming Manual

Omron CPM1
541 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
Page #295 background imageLoading...
Page #295 background image
274
Conversion Instructions Section 5-19
5-19-11SIGNED BINARY TO BCD SCALING – SCL2(––)
Limitations This instruction is available in the CQM1-CPU4@-E/-EV1 only.
P1 through P1+2 must be in the same data area.
DM 6144 to DM 6655 cannot be used for R.
Description SCL2(––) is used to linearly convert a 4-digit signed hexadecimal value to a 4-
digit BCD value. Unlike BCD(24), which converts a 4-digit hexadecimal value
to its 4-digit BCD equivalent (S
hex
S
BCD
), SCL2(––) can convert the signed
hexadecimal value according to a specified linear relationship. The conversion
line is defined by the x-intercept and the slope of the line specified in the
parameter words P1 to P1+2.
When the execution condition is OFF, SCL2(––) is not executed. When the
execution condition is ON, SCL2(––) converts the 4-digit signed hexadecimal
value in S to the 4-digit BCD value on the line defined by the x-intercept (P1,
0) and the slope (P1+2
÷ P1+1) and places the results in R. The result is
rounded off to the nearest integer.
If the result is negative, then CY is set to 1. If the result is less than –9999,
then –9999 is written to R. If the result is greater than 9999, then 9999 is writ-
ten to R.
The following table shows the functions and ranges of the parameter words:
S: Source word
IR, SR, AR, DM, HR, LR
Ladder Symbols Operand Data Areas
@SCL2(––)
S
P1
R
R: Result word
IR, SR, AR, DM, HR, LR
P1: First parameter word
IR, SR, AR, DM, HR, LR
SCL2(––)
S
P1
R
Parameter Function Range
P1 x-intercept (signed hex.) 8000 to 7FFF (–32,768 to 32,767)
P1+1 X (signed hex.) 8000 to 7FFF (–32,768 to 32,767)
P1+2 Y (BCD) 0000 to 9999

Table of Contents

Other manuals for Omron CPM1

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CPM1 and is the answer not in the manual?

Omron CPM1 Specifications

General IconGeneral
ModelCPM1
ManufacturerOmron
Instruction SetBasic and advanced instructions
Power Supply100 to 240 VAC or 24 VDC
CommunicationRS-232C
I/O Points10, 20, 30, or 40 points depending on the model
TimersYes, multiple timers available
CountersYes, multiple counters available
Input Voltage24V DC
Output TypeRelay or transistor
Number of I/O Points10, 20, 30, 40
Communication PortsRS-232C (optional)
Operating Temperature0°C to 55°C
Storage Temperature-20°C
Humidity10% to 90% (non-condensing)
DimensionsVaries depending on the model
WeightVaries depending on the model
Program Memory2048 steps (2K steps)

Related product manuals