![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hs/sysmac-c200hs_operation-manual_742436209.webp)
199
The following table shows the functions and ranges of the parameter words:
Parameter
Function
Range
Comments
P1
BCD point #1 (A
Y
)
0000 to 9999
---
P1+1
Hex. point #1 (A
X
)
0000 to FFFF
Do not set P1+1=P1+3.
P1+2
BCD point #2 (B
Y
)
0000 to 9999
---
P1+3
Hex. point #2 (B
X
)
0000 to FFFF
Do not set P1+3=P1+1.
The following diagram shows the source word, S, converted to D according to
the line defined by points (A
Y
, A
X
) and (B
Y
, B
X
).
A
X
S
B
X
Value after conversion
(BCD)
B
Y
R
Value before conversion
(Hexadecimal)
A
Y
The results can be calculated by first converting all values to BCD and then using
the following formula.
Results = B
Y
– [(B
Y
– A
Y
)/(B
X
– A
X
) X (B
X
– S)]
Flags
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.
Example
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 0150
DM 0100
00000
DM 0200
Address
Instruction
Operands
00000
LD
00000
00001
@SCL(––)
DM
0100
DM
0150
DM
0200
DM 0150
0010
DM 0151
0005
DM 0152
0050
DM 0153
0019
DM 0100
0100
DM 0200
0512
Data Conversion
Section 5-18
Содержание SYSMAC C200HS
Страница 1: ...Cat No W235 E1 05 C200HS SYSMAC Programmable Controllers...
Страница 2: ...C200HS Programmable Controllers Operation Manual Revised February 2002...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 379: ...371 SR word Corresponding key s Bit 279 03 04 05 3 06 07 VER 08 09 Monitoring Operation and Modifying Data Section 7 1...
Страница 470: ...468 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage...
Страница 471: ...469 Programmer Program Date Page TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters...