EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 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
Loading...
3. Instructions
394
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Example Programming
z 4-to-16 bit Conversion
When CIO 0.00 is ON in the following example, MLPX(076) will convert 3 digits in S beginning with digit
1 (the second digit), as indicated by C (#0021). The corresponding bits in D100, D101, and D102 will be
turned ON.
z 8-to-256 bit Conversion
When CIO 0.00 is ON in the following example, MLPX(076) will convert the 2 bytes in S beginning with
byte 1 (the leftmost byte), as indicated by C (#1011). The corresponding bits in D100 to D115 and D116
to D131 will be turned ON.
C: #
S: 100
S
C
R
Digits
Bits 0 to 3: Starting digit (Digit 1)
Bits 4 to 7: Number of digits (3 digits)
Digit 1 contains 6, so bit 6 is turned ON.
Digit 2 contains A, so bit 10 is turned ON.
Digit 3 contains F, so bit 15 is turned ON.
R: D100
D101
D102
100
D100
0.00
Bits 0 to 3: Starting byte (Byte 1)
Bits 4 to 7: Number of bytes (2 bytes)
Byte 1 contains 2D, so bit 13 (D)
of R+2 is turned ON.
Byte 0 contains 1A, so bit 10 (A)
of R+1 is turned ON.
MLPX
100
#1011
D100
0.00
S
C
R
1
R: D100
D101
D102
D103
D115
D116
D117
D118
D131
012345678915 14 13 12 11
0347815 12 11
10
S: 100
Byte 0Byte 1
A1D2
C: #
1101
1

Table of Contents

Related product manuals