Omron SYSMAC CV Series Operation Manual page 51

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Data Area Structure
Converting Decimal to
Signed Binary
Bit number
15
14
Contents
0
Bit number
15
14
Contents
1
Bit number
15
14
Contents
1
Positive signed binary data is identical to unsigned binary data (up to 32,767)
and can be converted using BIN(100). The following procedure converts nega-
tive decimal values between –32,768 and –1 to signed binary. In this example
–12345 is converted to CFC7.
1. First take the absolute value (12345) and convert to unsigned binary:
13
12
11
10
09
0
1
1
0
0
2. Next take the complement:
13
12
11
10
09
1
0
0
1
1
3. Finally add one:
13
12
11
10
09
1
0
0
1
1
Reverse the procedure to convert negative signed binary data to decimal.
08
07
06
05
04
0
0
0
0
1
08
07
06
05
04
1
1
1
1
0
08
07
06
05
04
1
1
1
1
0
Section 3-2
03
02
01
00
1
1
0
0
1
03
02
01
00
0
0
1
1
0
03
02
01
00
0
0
1
1
1
39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents