EtherNet/IP gateway
Wieland Electric GmbH | BA000970 | 07/2019 [9855]
91
Address Data type Number of
elements
Description
Data range
$N140:x UINT[n]
n
Output assembly of the logic output, confi-
gured via the
input data block 4 to 5
in
samosPLAN
6,
x = 0 to 9, n = 10 – x
0 to 65535
$N141:x UINT[n]
n
Output assembly of the logic output, confi-
gured via the
input data block 4 to 5
in
samosPLAN
6,
x = 0 to 4, n = 5 – x
0 to 65535
The data range of the number of elements is relative to the assembly sizes. See the table
of assembly databytes of the SP-COP2-ENI module [ch. 8.5.1, p. 97]
80232075
Typed Read
The SP-COP2-ENI module supports “Read PLC-5 input” according to the following table:
Table 55: Read request data structure of PLC-5 word range
Name
Data type Description
Data range
Packet offset
UINT
Offset in number of elements
Total Transaction UINT
Number of elements in the transac-
tion
0 to value dependent on
the assembly size
Address
BYTE[m]
PLC-5 system address, m >= 2
“0” to “:”, “A” to “Z”, “a” to
“z”
Size
UINT
Number of elements to be returned
The answer of the SP-COP2-ENI module is listed in the following table. The first byte of the type ID is
0x9a = 0b1001 1010, meaning that the data type is given in the following byte and the data size in the
byte after that. The fourth byte of the type ID is 0x42 = 0b0100 0010, standing for an integer data ty-
pe of size 2.
Table 56: Feedback to the SP-COP2-ENI module for reading the data structure of the PLC-5 input
Name
Data type Description
Data range
Type ID
BYTE
Data type and size
Bit 0 to 3: 10 = Size specifi-
cation in the next but one
byte
Bit 4 to 7: 9 = Type in the
next byte
Type ID
BYTE
Data type
9 = Field of the same ele-
ments
Type ID
BYTE
Number of following bytes
1 to n+1
Type ID
BYTE
Data type and size
Bit 0 to 3: 2 = UINT
Bit 4 to 7: 4 = Integer
Payload
UINT[n]
2
⋅
n = Number of data bytes
0 to 65535
The command data of all assembly instances can be recorded using “Read input”.
In contrast to native addressing of EtherNet/IP assembly instances, the PLC-5 system address con-
tains an element offset which can be used.
The SP-COP2-ENI module supports fields (arrays) of UINT as PCCC data types. Due to the odd size of
the assembly instance 57, the firmware contained in the SP-COP2-ENI module assigns an additional
byte, to provide an even number of bytes.
The address scheme supported by the SP-COP2-ENI module for Read PLC-5 input is shown in the
following table:
8.4.7.5