Omron NJ-series User Manual page 627

Machine automation controller cpu unit software
Hide thumbs Also See for NJ-series:
Table of Contents

Advertisement

Appendices
Data Type Definitions
Name
Data type
Structure Y
STRUCT
a
DINT
b
INT
c
DINT
Variable Table
Name
Data type
Variable NJ_X
Structure Y
To align the memory configurations in the NJ-series and CJ-series CPU Units, offsets are set in the Sysmac Studio.
Here, the following offsets are set for member c of data type Y of the structure variable NJ_X.
Memory Bytes
First byte
First byte + 1
Variable a
First byte + 2
First byte + 3
First byte + 4
Variable b
First byte + 5
First byte + 6
Not used.
First byte + 7
First byte + 8
First byte + 9
Variable c
First byte + 10
First byte + 11
Set a byte offset of 6 and a bit offset
of 0 (no offset) for variable c.
A-100
NJ-series Structure
Variable NJ_X
Bytes
a
First byte
b
First byte + 4
Communications is
First byte + 6
Not used.
not possible
c
First byte + 8
because the memory
configuration is not
the same.
(1) Offset type is set to CJ.
(1) Offset Type
Specify User.
First byte
First byte + 1
First byte + 2
First byte + 3
First byte + 4
First byte + 5
First byte + 6
First byte + 7
The location of
First byte + 8
variable c changes
First byte + 9
according to the
First byte + 10
offsets.
First byte + 11
Data Type Definitions
Name
Data type
Structure Y
STRUCT
a
DINT
b
INT
c
DINT
Variable Table
Name
Data type
Variable CJ_X
Structure Y
(3) Bit Offset
Set the location of the first bit of the member variable.
(2) Byte Offset
Set the location of the first byte of the member
from the beginning of the structure variable.
Memory Bytes
Variable a
Variable b
Variable c
NJ-series CPU Unit Software User's Manual (W501)
CJ-series Structure
Variable CJ_X
Bytes
First byte
a
First byte + 4
b
First byte + 6
c
(2) Byte Offset
Variable c starts from the 6th byte
from the start of the structure.
(3) Bit Offset
Variable c starts from the 0th
bit from the start of the byte.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents