Deleting a segment (command code ds) – Despatch Protocol 3 Modbus Communications User Manual

Page 44

Advertising
background image

A

DDRESS LIST

Modbus Programming Manual

44

Version 2

Copyright © 2012 by Despatch Industries.

All rights reserved. No part of the contents of this manual may be reproduced, copied or transmitted in any form or by any
means including graphic, electronic, or mechanical methods or photocopying, recording, or information storage and
retrieval systems without the written permission of Despatch Industries, unless for purchaser's personal use.

2.9.5.7. Deleting a Segment (Command Code DS)

The delete segment command deletes the specified segment from the specified profile. The
following segments are moved up one place in the profile (e.g. if segment 6 is deleted segment 7
now becomes segment 6).

Delete A Segment - Request (to instrument)

Field Name

Data

Comments

(Dec)

(Hex)

Unit Address

A/R

A/R

The ID address of the instrument

Function Code

23

17

Requires the multi read/write function

Read Start Address High Byte

32

20

Read Start Address Low Byte

06

06

Read Quantity Of Registers High

00

00

Read Quantity Of Registers Low

01

01

Write Start Address High

32

20

Write Start Address Low

06

06

Write Quantity Of Registers High

00

00

Write Quantity Of Registers Low

03

03

Byte Count

06

06

Command Code High Byte

68

44

Command Code Low Byte

83

53

Profile Number High Byte

A/R

A/R

Number of the profile that the segment
wants to be deleted from

Profile Number Low Byte

A/R

A/R

Segment Number High Byte

A/R

A/R

Number of the segment that wants to be
deleted

Segment Number Low Byte

A/R

A/R

CRC High Byte

A/R

A/R

CRC Low Byte

A/R

A/R

The instrument replies to this message with an Edit Response Message Section 2.9.5.9.

2.9.5.8. Getting the Number of Segments Remaining (Command Code SR)

Returns the number of unused segments remaining in the instrument. The number will be
between 0 and 255, depending on how many have been used in the profiles so far created.

Get Segments Remaining - Request (to instrument)

Field Name

Data

Comments

(Dec)

(Hex)

Unit Address

A/R

A/R

The ID address of the instrument as required

Function Code

23

17

Requires the multi read/write function

Read Start Address High Byte

32

20

Read Start Address Low Byte

06

06

Read Quantity Of Registers High

00

00

Read Quantity Of Registers Low

01

01

Write Start Address High

32

20

Write Start Address Low

06

06

Write Quantity Of Registers High

00

00

Write Quantity Of Registers Low

01

01

Byte Count

02

02

Advertising