3. Send the appropriate MB command. Use function code 16. Start at address 30000 and write to 2 registers
using the data in the array pump[]
MBB=,16,30000,2,pump[]
Results:
Analog output will be set to 0x40933333 which is 4.6V
Data Record
The DMC-40x0 can provide a binary block of status information with the use of the QR and DR commands. These
commands, along with the QZ command can be very useful for accessing complete controller status. The QR
command will return 4 bytes of header information and specific blocks of information as specified by the command
arguments:
QR ABCDEFGHST
Each argument corresponds to a block of information according to the Data Record Map below. If no argument is
given, the entire data record map will be returned. Note that the data record size will depend on the number of
axes.
Data Record Map Key
Acronym Meaning
UB Unsigned byte
UW Unsigned word
SW Signed word
SL Signed long
UL Unsigned long
General Controller Information and Status
general input block 0 (inputs 1-8)
general input block 1 (inputs 9-16)
general input block 2 (inputs 17-24)
general input block 3 (inputs 25-32)
general input block 4 (inputs 33-40)
general input block 5 (inputs 41-48)
general input block 6 (inputs 49-56)
general input block 7 (inputs 57-64)
general input block 8 (inputs 65-72)
general input block 9 (inputs 73-80)
general output block 0 (outputs 1-8)
thread status – see bit field map below
general output block 1 (outputs 9-16)
general output block 2 (outputs 17-24)
Segment Count for Contour Mode
general output block 3 (outputs 25-32)
Buffer space remaining – Contour Mode
general output block 4 (outputs 33-40)
segment count of coordinated move for S plane
21 UB general output block 5 (outputs 41-48) 64-65 UW coordinated move status for S plane – see bit field map
below
22 UB general output block 6 (outputs 49-56) 66-69 SL distance traveled in coordinated move for S plane
Chapter 4 Software Tools and Communication ▫ 58 DMC-40x0 User Manual