Parameter Area Write: 02 02 - Omron CJ - REFERENCE MANUAL 07-2009 Reference Manual

Communications commands
Hide thumbs Also See for CJ - REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

FINS Commands
PLC Setup Area
I/O Table Registration Area
Routing Table Area
CPU Bus Unit Setup Area
Comments
5-3-8

PARAMETER AREA WRITE: 02 02

Execution Conditions
Parameter Areas
The areas that can be read are shown below, along with their parameter area
codes.
Parameter
area code
8010
8012
8013
8002
Number of words (command and response)
Bits 0 to 14 are used to specify the number of words to be read. (Each word
consists of 16 bits.) Bit 15 must be OFF (0) in the command format. When the
content in the response format contains the last word of data in the specified
parameter area, bit 15 will be ON (1). For example, it would indicate that the
512th word of data is contained in the PLC Setup area.
Data (response)
The data in the specified parameter area will be returned in sequence starting
from the beginning word. The leftmost bits (bits 8 to 15) of each word are read
first, followed by the rightmost bits (bits 0 to 7). The required number of bytes
in total for each read is calculated as follows:
Number of words x 2 (each word consists of 16 bits)
End code (response)
Refer to 5-1-3 End Codes for information on end codes.
All words in the specified parameter area must be read at the same time to
ensure complete data. A maximum of 498 words can be read with each com-
mand. (One word = 16 bits.) To read larger parameter areas, use multiple
commands and specify the beginning word and number of words for each.
If more than 498 words is specified as the number of elements, the maximum
number of words will be read and returned with a response code of 1108 hex.
If the beginning word plus the number of words specified to read exceeds the
capacity of the specified area, the data read through the end of the area and
the actual number of words read will be returned with a response of 1104 hex.
Except for the routing table area, each area must be read or written in its
entirety.
Writes data to the specified number of consecutive CPU Unit parameter area
words starting from the specified word.
Data can be written to the I/O table only when the CPU Unit is in PROGRAM
mode.
Note Some PLC Setup parameters cannot be written in RUN or MONITOR mode.
Access right at
other device
No
RUN mode
OK
Address range
(Hex)
0000 to 01FF (512 words)
0000 to 04FF (1,280 words)
0000 to 01FF (512 words)
0000 to 143F (5184 words)
UM read
DIP switch UM
protection
write protection
OK
MONITOR mode
OK
Section 5-3
Parameter
Address range
area code
(Hex)
0000 to 1F3F
8000
8000 words)
Network write
protection
No
No
PROGRAM mode
OK
181

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents