Instruction sequence to read a profile – West Control Solutions ProVU 4 User Manual

Page 115

Advertising
background image

ProVU4 Controller, Profiler & Recorder/Controller - Product Manual

Page 114

Modbus Parameters

59407, Issue 1 – March 2008

Instruction Sequence to create a profile at a specified profile position

CAUTION:

If this profile number is already in use then the profile header data is overwritten but
the segments associated with it are kept.

1. Determine which profile positions are being used by using the Command Code value PS

(0x50, 0x53). This command will return a list of all the profile positions currently being
used.

2. Choose a location that is not being used and write the profile header data using the

Command Code value WP (0x57, 0x50).
The profile number is echoed back by the instrument in the Edit Response Message.

3. Write the first segment using the Command Code value Code WS (0x57, 0x53). This

command will fill the next available segment position and link it to the profile created in
step 1.

4. Write the second segment, again using Command Code WS. This fills the next available

segment position and links it to the segment created in step 2.

5. Continue writing segments until the profile is complete (whilst remaining within the overall

limit of 255 segments for all profiles combined). Each of these segments fills the next
available position and links it to the previous segment specified.

6. The very last segment of the profile must be one of the end type segments. Thereafter, no

more segments can be added to the specified profile. To add a segment to an existing
profile the insert segment command must be used.

Instruction Sequence to edit an existing Profile Header

When a profile header is changed, the segments associated with it remain unchanged. They
must be edited separately if required.

7. Determine the number of the profile to be edited. The Command Code value PS (0x50,

0x53). This command returns a list of all profile positions/numbers currently in use.

8. Write a new profile header data using the Command Code value EP (0x45, 0x50).

The profile number is echoed back by the instrument in the Edit Response Message.

Instruction Sequence to read a profile

1. Use the command RP to read the profile header data

2. Use the command RS to read the 1

st

segment’s data

3. Use the command RS to read the 2

nd

segment’s data.

4. Repeat steps 2 and 3 until an end segment is reached.

Advertising