Operating instructions
PTQ-MCM ♦ Quantum / Unity Platform Reference
Modbus Communication Module
Page 110 of 139 ProSoft Technology, Inc.
April 29, 2008
In this example, the following variables are used:
Variable Address Type Description
BlockID 401001 INT
Variable that contains the block ID. When
this value is equal to 9959 the processor will
trigger the logic to handle the pass-thru
block.
BlockData 401004 WordArr128
This variable is an array that contains the
data within the pass-thru block
Mask 401054 WordArr128
This variable is an array that contains the
mask within the pass-thru block
DestinationData Any WordArr128
This variable is an array where the final data
will be copied to. Only the masked bits will be
copied to this variable.
The following is a sample program in structured text that shows how the data
could be transferred to the processor using the mask information.
8.3 Status Data Definition
This section contains a description of the members present in the status block.
This data is transferred from the module to the processor as part of each read
block.
8.3.1 Status Data Block Structure
Offset Content Description Length (Words)
0 Program Scan Count
This value is incremented each time a
complete program cycle occurs in the
module.
1
1 Product Code
These two registers contain the product
code of "MCM"
2
3 Product Version
These two registers contain the product
version for the current running software.
2
5 Operating System
These two registers contain the month
and year values for the program
operating system.
2