Table of Contents - TG Drives
Table of Contents - TG Drives
Table of Contents - TG Drives
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
200<br />
Computer Mode<br />
Record<br />
type<br />
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9<br />
COMMUNICATION PROTOCOL<br />
Description Example<br />
End <strong>of</strong> data record.<br />
Is sent after a program has been completely up/downloaded<br />
and disables download <strong>of</strong> program<br />
code.<br />
Prepare for download.<br />
Stops Execution initializes the program area and<br />
enables download <strong>of</strong> program code.<br />
:00000001FF<br />
:00000002FE<br />
Stop program execution. :00000003FD<br />
Start execution at first line <strong>of</strong> program. :00000004FC<br />
Set Terminal Mode.<br />
The same as the statement [LET] Comm.Mode =<br />
0. Used to exit the Computer Mode.<br />
Upload all programs Memory.<br />
The contents <strong>of</strong> the program memory are sent as<br />
type 0 records, ending with a type 1 record. Only<br />
Non-empty records are sent;.<br />
Read system tables.<br />
This record type can be used by the PL compiler<br />
or similar program to determine what commands<br />
are supported by the current version <strong>of</strong> the<br />
DMC 2 firmware.<br />
Current Format (Addr <strong>Contents</strong>):<br />
0 DMC Version number (0 for all Ver 0.XX)<br />
1 TBLROOT -- Pointer to pointer to Com<br />
mand name definition tables.<br />
2 XGWPTR -- Pointer to write pointer in<br />
X-group table<br />
3 XGROUP -- Pointer to base <strong>of</strong> X-group<br />
table<br />
4 XGDISTAB - Pointer to Xgroup R/W<br />
dispatch table<br />
5 1F -- To be defined later --<br />
If the field is >= 1, then the field<br />
is a 16-bit address in the firmware memory. The<br />
first data byte indicates the number <strong>of</strong> bytes <strong>of</strong><br />
firmware memory to return starting at . It<br />
is not possible to read addresses 0..1F.<br />
Get a register value.<br />
Specifies the number <strong>of</strong> the register to<br />
get. Valid numbers are from 0 to 255 or an<br />
Xregister descriptor. The value <strong>of</strong> the register is<br />
returned in a record <strong>of</strong> type 8, with a field<br />
equal to 4.<br />
Set one or more registers.<br />
Specifies the first register to set. <br />
Len * 4 specifies the number <strong>of</strong> registers to load<br />
with the following data. Four bytes <strong>of</strong> data are<br />
required for each register.<br />
If the PL program is executing time-critical code,<br />
:00000005FB<br />
:00000006FA<br />
:0008<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001