28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14<br />

B002<br />

Timing and execution flow<br />

TIMING AND EXECUTION FLOW<br />

Servo cycle<br />

Admin task<br />

PL2 code task<br />

Handle Resolver Inputs...<br />

Handle Digital Inputs and evaluate<br />

interrupt flags<br />

Do all Pr<strong>of</strong>ile and Gear/Cam<br />

calculations<br />

Do Regulator calculations<br />

Do much more...<br />

Handle all Analog Outputs and set<br />

the Current references<br />

Handle the Serial communication<br />

Run Interpreter and execute the<br />

PL2 code<br />

Figure 2. DMC servo cycle.<br />

The firmware executes in two ways:<br />

0<br />

1 ms<br />

SOFTWARE SYSTEM<br />

• One is clock dependent, executing once each system clock cycle. This is<br />

called a servo cycle. (Figure 2.). It handles all real time critical tasks, such as<br />

velocity and position measurement, regulators, motion pr<strong>of</strong>iles, cams and gear<br />

functions. It also updates real time outputs, i.e. analog outputs for monitoring<br />

purposes.<br />

i<br />

These functions are always performed, regardless <strong>of</strong> whether an<br />

application is running or not.<br />

• The rest <strong>of</strong> the firmware execution is done in background. One task is handling<br />

the serial communication. Another task is interpreting and executing the PL2<br />

code.<br />

It is important to realize that most real-time dependent functions are completely<br />

executing in FW. Consider the pr<strong>of</strong>ile generator. It produces new values every ms,<br />

but it does not require any PL2 involvement once the initial pr<strong>of</strong>ile statement has<br />

been executed. From this point onwards, the FW is executing all related<br />

calculations within the servo cycle and the PL2 code may perform other tasks<br />

concurrently. Another example is the output <strong>of</strong> real time data to the analog outputs.<br />

Once the PL2 code has established a ”connection”, for example, from actual speed<br />

to an analog output, the FW performs the real time update <strong>of</strong> the analog output.<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!