Command enable/disable blocks – ProSoft Technology MVI46-MBP User Manual

Page 44

Advertising
background image

MVI46-MBP ♦ SLC Platform

Reference

Modbus Plus Communication Module

Page 44 of 101

ProSoft Technology, Inc.

February 19, 2008

Offset Description

Length

0 9003

1

1

Number of commands to add

1

2 to 61

List of command indexes

60

Word 1 of the block sets the number of commands listed in the block. Up to 60
commands can be sent to the command queue using this block. Words 2 to 61
contain the command indexes to be added to the queue. After the module has
processed the block, the M0 file is set with the following data:

Offset Description

Length

0

Done Flag (0)

1

1 9003

1

2

Number of commands added to the queue

1

Command Enable/Disable Blocks
Block codes 9010, 9011 and 9012 alter the enable code for a set of commands
in the module's command list. Word 1 in each block defines the number of
commands to be considered by the module in the list of command indexes
provided. This data is passed to the module in the M0 file.

Block 9010 disables one or more commands in the command list by setting the
enable code to a value of zero. The format of the block is as follows:

Offset Description

Length

0 9010

1

1

Number of commands to disable

1

2 to 61

List of command indexes

60

Block 9011 sets the enable code for the commands in the list to a value of one.
The format of the block is as follows:

Offset Description

Length

0 9011

1

1

Number of commands to enable

1

2 to 61

List of command indexes

60

Block 9012 sets the enable code for the commands in the list to a value of two.
The format of the block is as follows:

Offset Description

Length

0 9012

1

1

Number of commands to enable

1

2 to 61

List of command indexes

60

After the command blocks are processed by the module, word zero of the M0 file
will be set to a value of zero.

You can look at the enable code to determine if the enable code has changed or
to see the value of the code by using the Debug port. You can restore the original
command enable code forcing the module to perform a cold boot and thereby
copying the new commands to the MVI46-MBP module.

Advertising
This manual is related to the following products: