11.01.2014 Views

DeviceNet Master Protocol API

DeviceNet Master Protocol API

DeviceNet Master Protocol API

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DeviceNet</strong>-<strong>Master</strong> Fundamentals • 23<br />

2.3.3 Obtaining useful Information about the Communication Channel<br />

A communication channel represents a part of the Dual Port Memory and usually consists of the<br />

following elements:<br />

• Output Data Image<br />

is used to transfer cyclic process data to the network (normal or high-priority)<br />

• Input Data Image<br />

is used to transfer cyclic process data from the network (normal or high-priority)<br />

• Send Mailbox<br />

is used to transfer non-cyclic data to the netX<br />

• Receive Mailbox<br />

is used to transfer non-cyclic data from the netX<br />

• Control Block<br />

allows the host system to control certain channel functions<br />

• Common Status Block<br />

holds information common to all protocol stacks<br />

• Extended Status Block<br />

holds protocol specific network status information<br />

This section describes a procedure how to obtain useful information for accessing the communication<br />

channel(s) of your netX device and to check if it is ready for correct operation.<br />

Proceed as follows:<br />

1) Start with reading the channel information block within the system channel (usually starting<br />

at address 0x0030).<br />

2) Then you should check the hardware assembly options of your netX device. They are<br />

located within the system information block following offset 0x0010 and stored as data<br />

type UINT16. The following table explains the relationship between the offsets and the<br />

corresponding xC Ports of the netX device:<br />

0x0010<br />

0x0012<br />

0x0014<br />

Hardware Assembly Options for xC Port[0]<br />

Hardware Assembly Options for xC Port[1]<br />

Hardware Assembly Options for xC Port[2]<br />

0x0016<br />

Table 11: Address Assignment of Hardware Assembly Options<br />

Hardware Assembly Options for xC Port[3]<br />

Check each of the hardware assembly options whether its value has been set to<br />

RCX_HW_ASSEMBLY_DEVICENET = 0x0040. If true, this denotes that this xCPort is<br />

suitable for running the <strong>DeviceNet</strong>-<strong>Master</strong> protocol stack. Otherwise, this port is designed<br />

for another communication protocol. In most cases, xC Port[2] will be used for field bus<br />

systems, while xC Port[0] and xC Port[1] are normally used for Ethernet communication.<br />

Hilscher Gesellschaft für Systemautomation mbH – Rheinstr. 15 – D-65795 Hattersheim<br />

Edition 3 – <strong>API</strong>:<strong>DeviceNet</strong>-<strong>Master</strong>#EN– 2009/01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!