Omron NJ-series User Manual page 229

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

Advertisement

6 Programming
Version Information
The following table gives the unit version of the CPU Units and the Sysmac Studio version that
are required to specify member offsets.
Unit version of CPU Unit
1.01 or later
1.00
* You cannot select the memory offset type. You can set member offsets.
Setting Offsets
If you set the memory offset type to User, you can set memory offsets for each member of the struc-
ture. There are byte offsets and bit offsets. If you set the memory offset type to NJ or CJ, the mem-
ory configuration is determined automatically. You do not need to set offsets.
The meanings of the offsets are as follows:
Offset
Byte offset
Bit offset
Example:
This example shows the memory configuration when the following settings are made with the Struc-
ture Editor.
Name
StrA
VarA
VarB
VarC
Bit 7
First byte
First byte + 1
First byte + 2
First byte + 3
First byte + 4
First byte + 5
First byte + 6
First byte + 7
First byte + 8
First byte + 9
First byte + 10
First byte + 11
Offsets That You Can Set
Even if you set the memory offset type to User, the offsets cannot be changed for some data types.
The following table shows when offsets can be set.
6-42
1.01 or lower
Not possible.
Not possible.
The byte offset is the offset of a member from the start of the
structure. Bytes offsets are used for all basic data types and
derivative data types.
The bit offset is the offset of a member from the start of the byte
position that is specified with the byte offset.
Data type
Offset type
STRUCT
User
DINT
INT
DINT
Bit 0
Memory
Byte offset: 0
Bit offset: 0
VarA
Byte offset: 4
VarB
Bit offset: 0
Byte offset: 6
VarC
Bit offset: 0
Sysmac Studio version
1.02
Possible.*
Not possible.
Meaning
Byte offset
0
4
6
NJ-series CPU Unit Software User's Manual (W501)
1.03 or higher
Possible.
Not possible.
Range of
Unit
values
Byte
0 to 1,023
Bit
0 to 63
Bit offset
0
0
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents