Description
A write
CTE operation writes the CTE configuration table from the specified data (DATABUF
) to a specified Ethernet configuration extension
table or to a specific slot. To program an MBP_MSTR block to perform
a write CTE operation, use function code 12.
Network Implementation
A write CTE operation can be performed on TCP/IP Ethernet and SY/MAX Ethernet networks.
Control Block Usage for TCP/IP Ethernet
Register |
Meaning |
---|---|
CONTROL[1] |
12 = write CTE |
CONTROL[2] |
Indicates the error status |
CONTROL[3] |
The length setting: a value from 12 to 37. |
CONTROL[4] |
No significance |
CONTROL[5] |
Least significant byte = mapping index Either a value displayed in the byte of the address or is not used. or Most significant byte = network adapter module slot |
CONTROL[6] ... CONTROL[9] |
No significance |
Control Block Usage for SY/MAX Ethernet
Register |
Meaning |
---|---|
CONTROL[1] |
12 = Write CTE (Config extension table) |
CONTROL[2] |
Indicates the error status |
CONTROL[3] |
Number of words transferred |
CONTROL[4] |
Byte offset in the PLC address structure specifying where the CTE bytes are written |
CONTROL[5] |
Most significant byte = NOE module slot Least significant byte = Destination drop number |
CONTROL[6] |
Terminator: FF hex |
CONTROL[7] ... CONTROL[9] |
No significance |
CTE Indicator Implementation
(DATABUF
)
The values in the Ethernet configuration
extension table are displayed in the DATABUF
output
field when a write CTE operation is implemented. The registers are
used to transfer the following CTE data:
CTE indicator implementation
(DATABUF
):
Parameter |
Register |
Contents |
---|---|---|
Frame type |
DATABUF[0] |
1 = 802.3 2 = Ethernet |
IP address |
DATABUF[1] |
First byte of the IP address |
DATABUF[2] |
Second byte of the IP address |
|
DATABUF[3] |
Third byte of the IP address |
|
DATABUF[4] |
Fourth byte of the IP address |
|
Lower netmask |
DATABUF[5] |
Most significant word |
DATABUF[6] |
Least significant word |
|
Gateway |
DATABUF[7] |
First byte of the gateway |
DATABUF[8] |
Second byte of the gateway |
|
DATABUF[9] |
Third byte of the gateway |
|
DATABUF[10] |
Fourth byte of the gateway |