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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Conversion Instructions
Flags
Examples
15
C: D0
C+1: D1
Zero point offset: 001A hex
C+2: D2
User-specified resolution: Not used.
S: 1000
0
0
D: D200
D+1: D201
Name
Error Flag
Equals Flag
Negative Flag
When CIO 0.00 is ON in the following example, the gray binary code in
CIO 1000 is converted according to the settings in the control data in D0 to D2
and the result is output to D200.
0.00
Example 1: Converting to Binary Data with an 8-bit Resolution and Zero
Point Offset of 001A Hex
12
11
8
7
4 3
0
0
0
Conversion mode: Binary Mode
Operating mode: Gray binary code conversion
001A
0
000
0
0
0
0
0
0
0
0
1
0
Converted and offset.
0017
0000
Label
ER
ON if bits 12 to 15 of C are not 0 hex (operating mode =
gray binary code conversion).
ON if the zero point offset in C+1 is not within the specified
resolution (including user-specified resolutions).
ON if bits 04 to 07 of C are not 0 hex (= Binary Mode),
1 hex (= BCD Mode), or 2 hex (= 360 Mode).
ON if the specified encoder remainder compensation
exceeds the set user-specified resolution when bits 00 to
03 of C are 0 hex (= user-specified resolution).
ON if the converted binary value is less than the encoder
remainder compensation when bits 00 to 03 of C are 0 hex
(= user-specified resolution).
ON if the converted binary value is less than the resolution
when bits 00 to 03 of C are 0 hex (= user-specified resolu-
tion).
OFF in all other cases.
=
OFF in all cases.
N
OFF in all cases.
GRY
D0
C
S
1000
D
D200
0
8
Resolution: 8-bit
1
0
0
1
Gray binary code
Result of binary conversion and offsetting stored.
Section 3-11
Operation
433

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents