Despatch Protocol 3 Modbus Communications User Manual
Page 41

Modbus Programming Manual
A
DDRESS LIST
Version 2
41
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.
Creating Segments - Request (to instrument)
Field Name
Data
Comments
(Dec)
(Hex)
Segment Info A (Byte 1 - Low)
Segment Info B (Byte 4 - High)
Floating point number
The meaning of the data contained in
Segment Info B depends on the type of
segment it relates to. See section 12.5.5.
Segment Info B (Byte 3)
Segment Info B (Byte 2)
Segment Info B (Byte 1 - Low)
Auto Hold Type High Byte
A/R
A/R
0 = Auto-Hold Off, 1 = Hold above SP,
2 = Hold below SP,3 - Hold above and
below SP
Auto Hold Type Low Byte
A/R
A/R
Auto Hold Value (Byte 4 - High)
Floating point number
Auto Hold Value (Byte 3)
Auto Hold Value (Byte 2)
Auto Hold Value (Byte 1 - Low)
Events High Byte
00
00
The status of the five events are defined by
the lowest 5 bits of the low byte. A bit value
of 1 signifies the event is on.
Bit 0 = event 1, bit 1 = event 2, bit 3 = event
4 and bit 5 = event 4.
Events 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.4. Editing or Inserting a Segment (Command Codes IS and ES)
The Insert Segment command is used to add segments to an existing profile (one that already has
an end segment). This inserts a new segment at the position specified. The Edit Segment
command is used to alter segments of an existing profile. The segment number is in relation to the
profile number, e.g. to edit or insert a segment at position 3 of profile 1 the segment number will
be 3, and to edit or insert a segment at position 3 of profile 6 the segment number will also be 3.
Editing or Inserting Segments - 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
12
0C
Byte Count
24
18
Command Code High Byte
73 or 69
49 or 45
Insert Segment (IS) = 73dec / 0x4953hex
Edit A Segment (ES) = 69dec / 0x4553hex
Command Code Low Byte
83
53