84
Communications Commands
Section 6-2
Mask Bit Write
Reads the 2 bytes of data from the specified start address, masks it with the
specified mask data, and writes data to the bits that are not masked. For the
mask data, set a hexadecimal value with the bits to be masked turned ON.
Each command execution processes 2 bytes (i.e., 1 word).
Note
1.
The bits that are turned ON in the data set for the Command Option will be
masked and will not be changed. The bits that are OFF in the mask data
will be written.
2.
Verification will not be performed if No Verification is set for writing.
Example for a Masked Bit Write
1 1 1 1 0 0 0 0
0 0 0 0 1 1 1 1
=
0 0 0 1 1 1 0 1
1 1 0 0 0 1 0 0
Data Specified
for Option
0
1
2
7
0 0 0 0 1 1 0 1
1 1 0 0 0 0 0 0
Write Data in
Data Storage Area
0
1
2
7
Data Written to
Data Carrier
0
1
2
7
0 0 0 1 0 0 1 0
0 0 1 1 0 1 0 0
The data in boxes is held.
Data Carrier Data
0
1
2
7
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Word address
Bit No.
Type
Bit name
Description
Head 1 of
CS1W-
V600C11,
CS1W-
V600C12,
CJ1W-
V600C11,
or CJ1W-
V600C12
Head 2 of
CS1W-
V600C12
or CJ1W-
V600C12
n + 1
n + 11
08 to 15
Command
Command code
04 (hex)
04 to 07
Communications Specifi-
cation (Refer to page 52.)
Specify the communications method
with the Data Carrier.
0
Trigger
1
Single auto
2
Repeat auto
00 to 03
Processing Specification
(Refer to page 46.)
Specify the mask data storage order.
0
Leftmost
→
Rightmost
1
Rightmost
→
Leftmost
n + 2
n + 12
00 to 15
Processing Address
Specify the first Data Carrier address to
process.
n + 3
n + 13
00 to 15
Number of Processing
Bytes
Not used
n + 4
n + 14
00 to 15
Data stor-
age area
Data Storage Word
Address (rightmost 4 dig-
its)
Specify the write data storage destina-
tion. Refer to page 46 for details.
n + 5
n + 15
12 to 15
Data Storage Area
08 to 11
Bank Specification
00 to 07
Data Storage Word
Address (leftmost 2 dig-
its)
n + 6
n + 16
00 to 15
Option
Command Option
Mask data (0000 to FFFE (hex))
Содержание CJ - 12-2004
Страница 2: ...SYSMAC CS CJ Series ID Sensor Units Operation Manual Revised December 2004...
Страница 3: ...iv...
Страница 11: ...xii...
Страница 55: ...36 Connections and Wiring Section 3 4...
Страница 69: ...50 I O Data Allocations Section 4 3...
Страница 91: ...72 Data Check Section 5 7...
Страница 141: ...122 Sample Programming Appendix B...
Страница 147: ...128 Revision History...