Project

General

Profile

programT_G_H.txt

Kyle Hazelwood, 01/15/2015 12:01 PM

 
1
Time table:
2

    
3
1. The last slot dependent value played is to be retained until
4
the beginning of next cycle. A table is ended at a first encounter of 
5
0 tick slot. To explain important points using following example:
6

    
7
slot#		dt		t		amps
8
1		0.1		0.1		3.
9
2		0.1		0.2		4.
10
3		0.1		0.3		8.
11
4		0.1		0.4		6.
12
5		0.		0.4		X
13

    
14

    
15
a) 'whole slot' scaled settings (dt(ticks),amps). c453 runs 720Hz
16
	clock so 720 ticks per sec.
17
b) amps value of slot is at end of dt(ticks) for the slot. So t=0.1 
18
is end of slot 1. At t=0 -> amps=6. if last slot played before next cycle begins.
19
c) At t=0.05 output=4.5, extrapolated between 6 and 3.
20
d) ramp ends at t=0.4 no matter what data existing in slots after 
21
slot 5.
22

    
23
G/h table:
24

    
25
1. the independent settings are in range (-32767,32767) that are
26
limits. use wg_scale_mdat_data_c to determine real limits in between raw and enginerring unit.
27

    
28
2. If MDAT=40(MI pdot), a single slot setting:
29
  (9993.9 CUs(32748 raw),-0.783 amps)
30
This plays the constant -0.783 amps all the time. 
31

    
32
If two slots as:
33
  (1000 CUs,-0.2 amps)
34
  (9993.9 CUs(32748 raw),-0.783 amps)
35
pdot < 1000: output -.2 amps
36
1000 < pdot < 5000:output is extrapolated between the 2 slots
37
at 5000 output = (-0.783 + 0.2)* 4000 / 8993.9
38

    
39
3. If the independents - dependents is linear two slots are
40
enough: 
41
The two independents are the two limits to cover possible extreames.
42
using two full raw words.
43
Convert them to eng units and the calc the two dependents in eng.
44
unit.
45