CQM1 Addressing
CQM1 Addressing
The default data types are shown in bold.
  For more information, refer to String Support and Array Support.
Device Type
Range
Data Type
Access
Auxiliary Relay
AR00-AR27
AR00-AR26
ARxx.00-ARxx.15
Word, Short, BCD, Long
DWord, Float, LBCD
Boolean
Read/Write
Auxiliary Relay as String with HiLo Byte Order
AR00.56H-AR27.02H
.l is string length, range 2 to 56 chars
String
Read/Write
Auxiliary Relay as String with LoHi Byte Order
AR00.56L-AR27.02L
.l is string length, range 2 to 56 chars
String
Read/Write
Auxiliary Relay as String using Only the High Order byte of each word
AR00.28D-AR27.01D
.l is string length, range 1 to 28 chars
String
Read/Write
Auxiliary Relay as String using Only the Low Order byte of each word
AR00.28E-AR27.01E
.l is string length, range 1 to 28 chars
String
Read/Write
Data Memory
DM0000-DM6655
DM0000-DM6654
DMxxxx.00-DMxxxx.15
Word, Short, BCD, Long
DWord, Float, LBCD
Boolean
Read/Write
Data Memory as String with HiLo Byte Order
DM0000.58H-DM6655.02H
.l is string length, range 2 to 58 chars
String
Read/Write
Data Memory as String with LoHi Byte Order
DM0000.58L-DM6655.02L
.l is string length, range 2 to 58 chars
String
Read/Write
Data Memory as String using Only the High Order byte of each word
DM0000.29D-DM6655.01D
.l is string length, range 1 to 29 chars
String
Read/Write
Data Memory as String using Only the Low Order byte of each word
DM0000.29E-DM6655.01E
.l is string length, range 1 to 29 chars
String
Read/Write
Holding Relay
HR00-HR99
HR00-HR98
HRxx.00-HRxx.15
Word, Short, BCD, Long
DWord, Float, LBCD
Boolean
Read/Write
Holding Relay as String with HiLo Byte Order
HR00.58H-HR99.02H
.l is string length, range 2 to 58 chars
String
Read/Write
Holding Relay as String with LoHi Byte Order
HR00.58L-HR99.02L
.l is string length, range 2 to 58 chars
String
Read/Write
Holding Relay as String using Only the High Order byte of each word
HR00.29D-HR99.01D
.l is string length, range 1 to 29 chars
String
Read/Write
Holding Relay as String using Only the Low Order byte of each word
HR00.29E-HR99.01E
.l is string length, range 1 to 29 chars
String
Read/Write
Internal Relay
IR000-IR255
IR000-IR254
IRxxx.00-IRxxx.15
Word,Short, BCD, Long
DWord, Float, LBCD
Boolean
Read/Write
Internal Relay as String with HiLo Byte Order
IR000.58H-IR255.02H
.l is string length, range 2 to 58 chars
String
Read/Write
Internal Relay as String with LoHi Byte Order
IR000.58L-IR255.02L
.l is string length, range 2 to 58 chars
String
Read/Write
Internal Relay as String using Only the High Order byte of each word
IR000.29D-IR255.01D
.l is string length, range 1 to 29 chars
String
Read/Write
Internal Relay as String using Only the Low Order byte of each word
IR000.29E-IR255.01E
.l is string length, range 1 to 29 chars
String
Read/Write
Link Relays
LR00-LR63
LR00-LR62
LRxx.00-LRxx.15
Word, Short, BCD, Long
DWord, Float, LBCD
Boolean
Read/Write
Link Relays as String with HiLo Byte Order
LR00.58H-LR63.02H
.l is string length, range 2 to 58 chars
String
Read/Write
Link Relays as String with LoHi Byte Order
LR00.58L-LR63.02L
.l is string length, range 2 to 58 chars
String
Read/Write
Link Relays as String using Only the High Order byte of each word
LR00.29D-LR63.01D
.l is string length, range 1 to 29 chars
String
Read/Write
Link Relays as String using Only the Low Order byte of each word
LR00.29E-LR63.01E
.l is string length, range 1 to 29 chars
String
Read/Write
Timer/Counter
RC000-RC511
RCxxx.00-RCxxx.15
Word, Short, BCD
Boolean
Read/Write
Timer/Counter status
TC000-TC511
Boolean
Read/Write
 
String Support
The CQM1 model supports reading and writing auxiliary relay (AR), data memory (DM), holding relay (HR), internal relay (IR) and link relays (LR) as an ASCII string. When using any of these device types for string data, each register can contain either two bytes (two characters) of ASCII data or one. The order of the ASCII data within a given register, or the byte to use within a given register can be selected when the string is defined.
 
When using two bytes of ASCII data per register the length of the string can be from 2 to 58 characters (or 2 to 56 for AR) and is entered in place of a bit number. The length must be entered as an even number. The range of registers spanned by the string cannot exceed the range of the device type. The byte order is specified by appending either a "H" or "L" to the address.
 
When using one byte of ASCII data per register the length of the string can be from 1 to 29 characters (or 1 to 28 for AR) and is entered in place of a bit number. The range of registers spanned by the string cannot exceed the range of the device type. The byte to use within a register is specified by appending either a "D" or "E" to the address.
 
Examples
To address a string starting at DM100 with a length of 50 bytes and HiLo byte order, enter: DM100.50H
To address a string starting at DM110 with a length of 8 bytes and LoHi byte order, enter: DM110.08L
To address a string starting at DM200 with a length of 15 bytes and Only the High Order byte, enter: DM200.15D
To address a string starting at DM220 with a length of 7 bytes and Only the Low Order byte, enter: DM220.07E
 
Array Support
Arrays are supported for all data types except Boolean and String. There are two methods of addressing an array. Examples are given using data memory locations.
 
DMxxxx [rows] [cols]
DMxxxx [cols]*
 
*This method assumes "rows" is equal to one.
 
Rows multiplied by cols multiplied by data size in bytes cannot exceed 116 bytes. This limit is imposed by the protocol. Since this driver uses an ASCII protocol, there are 4 bytes for each word, short and BCD, and 8 bytes for each DWord, long, LBCD and float. For example, a 4 X 7 array of words results in an array size of 28 words times 4 bytes for each word = 112 bytes, which would fit within the maximum request size of 116 bytes.
 
Use caution when modifying 32-bit values (DWord, Long, LBCD, and Float). Each address that allows these data types starts at a word offset within the device. Therefore, DWords DM0 and DM1 overlap at word DM1. Writing to DM0 also modifies the value held in DM1. It is recommended that users utilize these data types so that overlapping does not occur. When using DWords, for example, users may want to use DM0, DM2, DM4 and so on to prevent overlapping Words.
 
Was this helpful?