Read profile memory status (command code ps) – Despatch Protocol 3 Modbus Communications User Manual

Page 51

Advertising
background image

Modbus Programming Manual

A

DDRESS LIST

Version 2

51

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.13. Read Profile Memory Status (Command Code PS)

This command returns the status of the profile memory used. The response to this command is to
return a table of all the profile numbers that are in use. A value of 0x00 indicates that the profile
position is free and value of 0x01 indicates that the position is used by a profile. Using this
command in conjunction with the read profile name command will give a directory of profile
numbers to profile names.

Read Profile Memory Status - 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 Byte

00

00

Read Quantity Of Registers Low Byte

32

20

Write Start Address High Byte

32

20

Write Start Address Low Byte

06

06

Write Quantity Of Registers High Byte

00

00

Write Quantity Of Registers Low Byte

01

01

Byte Count

02

02

Command Code High Byte

80

50

Command Code Low Byte

83

53

CRC High Byte

A/R

A/R

CRC Low Byte

A/R

A/R

The instrument replies to the Read Profile Memory Status request as follows:

Read Profile Memory Status - Response (from instrument)

Field Name

Data

Comments

(Dec)

(Hex)

Unit Address

A/R

A/R

The ID address of the instrument

Function Code

23

17

The multi read/write function

Byte Count

64

40

Profile 1 Position

0 or 1

0 or 1

For each of the 64 possible profile positions,
a value of 0 is returned if the position is free,
or 1 if the position is empty.

Profile 2 Position

0 or 1

0 or 1

etc…..

Profile 63 Position

0 or 1

0 or 1

Profile 64 Position

0 or 1

0 or 1

CRC High Byte

A/R

A/R

CRC Low Byte

A/R

A/R






Advertising