Omron SYSMAC C200HS Operation Manual page 209

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Data Conversion
Flags
Example
00000
The following table shows the functions and ranges of the parameter words:
Parameter
Function
P1
BCD point #1 (A
P1+1
Hex. point #1 (A
P1+2
BCD point #2 (B
P1+3
Hex. point #2 (B
The following diagram shows the source word, S, converted to D according to
the line defined by points (A
Value after conversion
(BCD)
B
Y
R
A
Y
A
X
The results can be calculated by first converting all values to BCD and then using
the following formula.
Results = B
– [(B
Y
ER:
The value in P1+1 equals that in P1+3.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
P1 and P1+3 are not in the same data area, or other setting error.
EQ:
ON when the result, R, is 0000.
When 00000 is turned ON in the following example, the BCD source data in DM
0100 (#0100) is converted to hexadecimal according to the parameters in DM
0150 to DM 0153. The result (#0512) is then written to DM 0200.
@SCL(––)
DM 0100
DM 0150
DM 0200
DM 0150
DM 0151
DM 0152
DM 0153
Range
)
0000 to 9999
Y
)
0000 to FFFF
X
)
0000 to 9999
Y
)
0000 to FFFF
X
, A
) and (B
, B
).
Y
X
Y
X
S
B
X
– A
)/(B
– A
) X (B
Y
Y
X
X
Address Instruction
00000
LD
00001
@SCL(––)
0010
DM 0100
0005
0050
0019
DM 0200
Section 5-18
Comments
---
Do not set P1+1=P1+3.
---
Do not set P1+3=P1+1.
Value before conversion
(Hexadecimal)
– S)]
X
Operands
00000
DM
0100
DM
0150
DM
0200
0100
0512
199

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents