## programT_G_H.txt

 1 ```Time table: ``` ```1. The last slot dependent value played is to be retained until ``` ```the beginning of next cycle. A table is ended at a first encounter of ``` ```0 tick slot. To explain important points using following example: ``` ```slot# dt t amps ``` ```1 0.1 0.1 3. ``` ```2 0.1 0.2 4. ``` ```3 0.1 0.3 8. ``` ```4 0.1 0.4 6. ``` ```5 0. 0.4 X ``` ```a) 'whole slot' scaled settings (dt(ticks),amps). c453 runs 720Hz ``` ``` clock so 720 ticks per sec. ``` ```b) amps value of slot is at end of dt(ticks) for the slot. So t=0.1 ``` ```is end of slot 1. At t=0 -> amps=6. if last slot played before next cycle begins. ``` ```c) At t=0.05 output=4.5, extrapolated between 6 and 3. ``` ```d) ramp ends at t=0.4 no matter what data existing in slots after ``` ```slot 5. ``` ```G/h table: ``` ```1. the independent settings are in range (-32767,32767) that are ``` ```limits. use wg_scale_mdat_data_c to determine real limits in between raw and enginerring unit. ``` ```2. If MDAT=40(MI pdot), a single slot setting: ``` ``` (9993.9 CUs(32748 raw),-0.783 amps) ``` ```This plays the constant -0.783 amps all the time. ``` ```If two slots as: ``` ``` (1000 CUs,-0.2 amps) ``` ``` (9993.9 CUs(32748 raw),-0.783 amps) ``` ```pdot < 1000: output -.2 amps ``` ```1000 < pdot < 5000:output is extrapolated between the 2 slots ``` ```at 5000 output = (-0.783 + 0.2)* 4000 / 8993.9 ``` ```3. If the independents - dependents is linear two slots are ``` ```enough: ``` ```The two independents are the two limits to cover possible extreames. ``` ```using two full raw words. ``` ```Convert them to eng units and the calc the two dependents in eng. ``` ```unit. ```