17.12.2012 Views

MODBUS/TCP Fieldbus manual - Koco Motion GmbH

MODBUS/TCP Fieldbus manual - Koco Motion GmbH

MODBUS/TCP Fieldbus manual - Koco Motion GmbH

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Revision R020111<br />

6 <strong>TCP</strong>/IP Confi guration Utility<br />

6.5.1 Using the Manual tab to write functions / data<br />

6-6<br />

Manual<br />

&H1<br />

&H0<br />

&HB<br />

&H1<br />

&H10<br />

&H0<br />

&H43<br />

&H0<br />

&H2<br />

&H4<br />

<strong>MODBUS</strong>/<strong>TCP</strong> <strong>Fieldbus</strong> <strong>manual</strong><br />

The following illustration shows an example of writing a function, in this<br />

case a Move to Absolute position 512000.<br />

Transaction ID<br />

Protocol<br />

Length (of following bytes)<br />

Unit ID<br />

Function Code<br />

PDU byte 0x01<br />

PDU byte 0x02<br />

PDU byte 0x03<br />

PDU byte 0x04<br />

PDU byte 0x05<br />

&HD0<br />

&H0<br />

&H0<br />

&H7<br />

Receive<br />

Func. / Error Code<br />

Data:<br />

MA 512000<br />

512000 dec = 0x07D000<br />

PDU byte 0x06<br />

PDU byte 0x07<br />

PDU byte 0x08<br />

PDU byte 0x09<br />

0x10<br />

TransID: 0x01; Protocol:0x00; Length:0x06;<br />

Unit_ID:0x1; Function_Code:0x10; Data(01):0x0;<br />

Data(02):0x43; Data(03):0x0; Data(04):0x02<br />

0x 10 00 43 00 02 04 D0 00 00 07<br />

Function<br />

Code<br />

Move Absolute 512000 steps<br />

Address<br />

Hi byte<br />

Address<br />

Lo byte<br />

Qty of<br />

registers<br />

Hi byte<br />

Qty of<br />

registers<br />

Lo byte<br />

Qty of<br />

data bytes<br />

following<br />

PDU<br />

Response does not contain<br />

the data bytes<br />

Data bytes<br />

Figure 6.6: Writing a function using the Manual tab<br />

07 D0 00<br />

Send

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

Saved successfully!

Ooh no, something went wrong!