Designating Command Parameters; Designating I/O Memory (Variable) Area Addresses - Omron CJ - REFERENCE MANUAL 07-2009 Reference Manual

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

Advertisement

Designating Command Parameters

5-2
Designating Command Parameters
5-2-1

Designating I/O Memory (Variable) Area Addresses

I/O memory address
designation
4 bytes (8 digits hexa-
decimal)
Memory area code +
word + bit, in order
Example
Bit 13 of CIO 0010:
30000A0D hex
Element Data
Configurations
When reading from and writing to the I/O memory (variable) area, designate I/
O memory area addresses as described below.
I/O memory designation involves the designation of the memory area code
and the address within the memory area code.
• Memory area codes are designated in one byte (two digits hexadecimal),
as shown in the table in 5-2-2 I/O Memory Address Designations.
• Addresses within memory area codes consist of a total of three bytes (six
digits hexadecimal). Of these, two bytes (four digits hexadecimal) desig-
nate the word and one byte (two digits hexadecimal) designates the bit.
Memory area code
1 byte (2 digits hex)
Set by classification
(CIO, WR, etc.).
Note: Also possible
with forced status.
Example
CIO: 30 hex
Example: I/O memory reading
Bit 13 of CIO 0010, i.e., CIO 001013, is read.
Command code
Example: Reading W005
01
01
B1
Command code
Bit Designations
When bits are designated, each bit is considered a single element. The data
for the element is expressed in one byte (ON: 01 hex; OFF: 00 hex). When
data is written, this byte is transmitted. When data is read, this byte is
returned.
Address within I/O memory area
Word
2 bytes (4 digits hex)
From 0000 hex
(Upper limit depends
on memory area
code.)
Example
0010: 000A in hexa-
decimal
Read address
I/O memory area designation (Area: CIO, Data type: Bit)
0D
05
00
Read address
I/O memory designation (Area: WR, Data type: Word)
00 Hex: OFF
01 Hex: ON
Section 5-2
designation
Bit
1 byte (2 digits hex)
00 to 0F hex
Note: Always 00 hex
for word address and
Timer/Counter Com-
pletion Flags.
Example
Bit 13: 0D in hexadec-
imal
163

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents