Parker EME
Communication
192-120101 N11 C3I11T11 November 2007
233
5.1.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). Lower
cases 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 ot 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 page 243).
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;
e.g. "
O $0192,2$
": (Object 402.2)
RS232: O [$] Index , [$] Subindex = [$] Value [ ; Value2 ; Value3 ; ...]
RS485: Address O [$] Index , [$] Subindex = [$] Value [ ; Value2 ; Value3 ; ...]
The optional “$” preceding Index, Subindex and value stands for “Hex-input” which
means that Index, Subindex and the value to be transferred can also be entered in
hex (e.g.
O $0192,2=$C8
).
Command
Answer strings
RS485 answer string
Read object
Write object