RoboteQ AX2550/2850 TV Converter Box User Manual


 
AX2500/2850 Motor Controller Users Manual 145
RS232 Encoder Command Set
Note that for this function to work, limit switches must be connected to the encoder mod-
ule using the special wiring diagram show in Wiring Optional Limit Switches on
page 137. If no limit switches are present, this query will return the logic levels of each of
the encoders quadrature outputs, which in most cases is not a relevant information.
Syntax: ?w or ?W
Reply: 0n
Where: n = switch status
The relationship between the value of n and the switch status is shown in the table below.
Extracting the status of a given switch from this number is easily accomplished by soft-
ware using masking.
Note that the 0 and 1 levels represents a Closed Switch and Open Switch status, respec-
tively.
Read / Modify Encoder Module Registers and Parameters
Description
These commands make it possible to examine and change parameters that are stored in
the Encoders module MCU RAM. While this command provides unrestricted access to up
to 256 memory locations, a small number of these location should ever be read or altered.
Parameter address and returned values are two digit Hexadecimal numbers (8-bit).
Important Note
Command character has been changed from $ to * starting in version 1.7 of the
controller firmware.
TABLE 24. Reported value and switch status relationship
n Value
Switch
n Value
Switch
4321 4321
0 0000 8 1000
1 0001 9 1001
2 0010 A 1010
3 0011 B 1011
4 0100 C 1100
5 0101 D 1101
6 0110 E 1110
7 0111 F 1111