Cte error codes, 4 read and write mstr operations, Control block utilization – Schneider Optics Web Embedded Server User Manual

Page 41: Read and write mstr operations

Advertising
background image

The MSTR Instruction

840 USE 115 00 Version 1.0

31

CTE Error Codes

The following error codes are returned if there is a problem with the Ethernet
configuration extension table (CTE) in your program configuration.

3.2.4

Read and Write MSTR Operations

An MSTR Write operation (type 1 in the displayed register of the top node)
transfers data from a master source device to a specified slave destination device
on the network. An MSTR Read operation (type 2 in the displayed register of the
top node) transfers data from a specified slave source device to a master
destination device on the network. Read and Write use one data master transaction
path and may be completed over multiple scans.

Note: TCP/IP Ethernet routing must be accomplished via standard third-party
Ethernet IP router products.

Control Block
Utilization

The registers in the MSTR control block (the top node) contain the Read or Write
information as described in the following table:

Hex Error Code

Meaning

5047

The MTU is invalid

5048

The hardware length is invalid.

5049

The route specified cannot be found.

504A

Collision in select call: these conditions have already been selected by
another task.

504B

The task id is invalid.

Hex Error Code

Meaning

7001

There is no Ethernet configuration extension.

7002

The CTE is not available for access.

7003

The offset is invalid.

7004

The offset + length is invalid.

7005

Bad data field in the CTE.

Register

Function

Content

Displayed

Operation Type

1 = Write, 2 = Read.

First Implied

Error status

Displays a hex value indicating an MSTR error.

Exception response, where
response size is incorrect.

Exception code
+ 3000

Exception response where
response size is incorrect.

4001

Read Write

Advertising