Communication
C3I20T11 / C3I32T11
296
192-120103 N13 C3I20T11 / C3I32T11 December 2010
5.2.2.
ASCII - record
The general layout of a command string for Compax3 is as follows:
[Adr] command CR
Adr
RS232: no address
RS485: Compax3 address in the range 0 ... 99
Address settings can be made in the C3 ServoManager under "RS485 settings"
Command
valid Compax3 command
CR
End sign (carriage return)
A command consists of the representable ASCII characters (0x21 .. 0x7E). Small
letters are converted automatically into capitals and blanks (0x20) are deleted, if
they are not placed between two quotation marks.
Separator between places before and after the decimal is the decimal point (0x2E).
A numeric value can be given in the Hex-format if it is preceded by the “$” sign.
Values can be requested in the Hex-format if the CR is preceded additionally by
the “$” sign.
All commands requesting a numeric value from Compax3 are acknowledged with
the respective numeric value in the ASCII format followed by a CR without
preceding command repetition and following statement of unit. The length of these
answer strings differs depending on the value.
Commands requesting an Info-string (e.g. software version), are only
acknowledged with the respective ASCII character sequence followed by a CR,
without preceding command repetition. The length of these answer strings is here
constant.
Commands transferring a value to Compax3 or triggering a function in Compax3
are acknowledged by:
>CR
if the value can be accepted resp. if the function can be executed at that point in
time.
If this is not the case or if the command syntax was invalid, the command is
acknowledged with
!xxxxCR
.
The 4 digit error number
xxxx
is given in the HEX format; you will find the meaning
in the
appendix
(see on page 353).
When using RS485, each answer string is preceded by a “
*
“" (ASCII - character:
0x2A).
Compax3 commands
RS232: O [$] Index , [$] Subindex [$]
RS485: Address O [$] Index , [$] Subindex [$]
The optional "$" after the subindex stands for "hex-output" which means that an
object value can also be requested in hex;
For example "
O $0192.2$
": (Object 402.2)
Command
Answer strings
RS485 answer string
Read object