Interrogation Commands - Galil Motion Control CDS-3310 User Manual

Table of Contents

Advertisement

Interrogation Commands

The CDS-3310 has a set of commands that directly interrogate the controller. When these command are
entered, the requested data is returned in decimal format on the next line followed by a carriage return
and line feed. The format of the returned data can be changed using the Position Format (PF), and
Leading Zeros (LZ) command. For a complete description of interrogation commands, see Chapter 5.
Using PF to Format Response from Interrogation Commands
The command, PF, can change format of the values returned by theses interrogation commands:
The numeric values may be formatted in decimal or hexadecimal* with a specified number of digits to
the right and left of the decimal point using the PF command.
Position Format is specified by:
where m is the number of digits to the left of the decimal point (0 thru 10) and n is the number of digits
to the right of the decimal point (0 thru 4) A negative sign for m specifies hexadecimal format.
*Hex values are returned preceded by a $ and in 2's complement. Hex values should be input as signed
2's complement, where negative numbers have a negative sign. The default format is PF 10.0.
If the number of decimal places specified by PF is less than the actual value, a nine appears in all the
decimal places.
Example
CDS-3310
PR 1000
BGX
AMX
v1=_TPA
posA[1]=_TPA
v1=
BL ?
LE ?
DE ?
PA ?
DP ?
PR ?
FL ?
TN ?
IP ?
VE ?
TP
TE
PF m.n
Instruction
:DP21
:TPA
0000000021
:PF4
:TPA
0021
:PF-4
:TPA
$0015
:PF2
Position Command
Begin
After Motion
Assign Variable v1
Assign the first entry
Print v1
Interpretation
Define position
Tell position
Default format
Change format to 4 places
Tell position
New format
Change to hexadecimal format
Tell Position
Hexadecimal value
Format 2 places
Chapter 7 Application Programming
i
47

Advertisement

Table of Contents
loading

Table of Contents