Typed Read - Wieland samos PRO Manual

Compact-gateways
Table of Contents

Advertisement

Address
$N140:x
$N141:x
The data range of the number of elements is relative to the assembly sizes. See the table Overview
of assembly databytes of the SP-COP2-ENI module [ch. 8.5.1, p. 97]
80232075
8.4.7.5

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
Packet offset
Total Transaction UINT
Address
Size
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
Type ID
Type ID
Type ID
Type ID
Payload
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:
Wieland Electric GmbH | BA000970 | 07/2019 [9855]
Data type Number of
Description
elements
Output assembly of the logic output, confi-
UINT[n]
n
gured via the input data block 4 to 5 in
samosPLAN  6 ,
x = 0 to 9, n = 10 – 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
Data type
Description
UINT
Offset in number of elements
Number of elements in the transac-
tion
BYTE[m]
PLC-5 system address, m >= 2
UINT
Number of elements to be returned
Data type
Description
BYTE
Data type and size
BYTE
Data type
BYTE
Number of following bytes
BYTE
Data type and size
UINT[n]
2⋅n = Number of data bytes
EtherNet/IP gateway
Data range
0 to 65535
0 to 65535
Data range
0 to value dependent on
the assembly size
"0" to ":", "A" to "Z", "a" to
"z"
Data range
Bit 0 to 3: 10 = Size specifi-
cation in the next but one
byte
Bit 4 to 7: 9 = Type in the
next byte
9 = Field of the same ele-
ments
1 to n+1
Bit 0 to 3: 2 = UINT
Bit 4 to 7: 4 = Integer
0 to 65535
91

Advertisement

Table of Contents
loading

Table of Contents