Deleting profiles (command code dp and da) – Despatch Protocol 3 Modbus Communications User Manual
Page 43
Modbus Programming Manual
A
DDRESS LIST
Version 2
43
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.
Segment Type
Segment Info
Description
A
B
1 = Time of day
Start Time
Wait until time of the day “B” in seconds since
midnight.
Loop
Number of times to
repeat 1 to 9999
Segment number
Loop to the specified segment number “B” from this
point. Repeat this “A” times. Only segments below the
current segment can be entered. Two loops must not
cross each other.
Join
Null
Profile number
On completion of this
profile jump run profile “B”
End
0 = Control off
Null
Turn off all control outputs.
1 = Maintain profile
setpoint
Null
Stay at the final setpoint of the profile
2 = Control off with
events
Null
Turn off the outputs but maintain the events.
Repeat
Sequence Then
End
0 = Outputs off
Number of times to
repeat sequence
Repeat the profile sequence number “B” times, then
turn off the control outputs
1 = Maintain profile
setpoint
Repeat the profile sequence number “B” times, then
hold the last profile setpoint.
2 = Control off with
events
Turn off the outputs but maintain the events.
2.9.5.6. Deleting Profiles (Command Code DP and DA)
An individual profile can be deleted, or all profiles can be cleared with a single message.
Deleting a profile removes the header of the specified profile and any segments associated with it.
Delete all profiles wipes all profiles and segments from the instrument.
Delete Profiles - 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
02 or 01
02 or 01
Delete A Profile (DP) = 02dec / 0x02hex
Delete All Profiles (DA) = 01dec / 0x01hex
Byte Count
04 or 02
04 or 02
Delete A Profile (DP) = 04dec / 0x04hex
Delete All Profiles (DA) = 02dec / 0x02hex
Command Code High Byte
68
44
Delete A Profile (DP) = 17488dec /
0x4450hex
Delete All Profiles (DA) = 17473dec /
0x4441hex
Command Code Low Byte
80 or 65
50 or 41
Profile Number High Byte
A/R
A/R
Note: The profile number is not included
in the message when deleting all profiles.
Profile 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.