PMAC Product Guide These timers are particularly useful when the related capture and compare registers are utilized for precise event marking and control, including triggered time base. The SLCK frequency is determined by the crystak clock frequency and E34-E38. I902, I907, ... I977 Encoder n Position Capture Control Encoder I-Variable 2 Range: 0 .. 15 Default: 1 Units: none This parameter determines which signal or combination of signals (and which polarity) triggers a position capture of the counter for encoder n. If a flag input (home, limit, or fault) is used, I903 (etc.) determines which flag.
Proper setup of this variable is essential for a successful home search which depends on the position-capture function. The following settings may be used: Note that several of these values are redundant. To do a software-controlled position capture, preset this parameter to 0 or 8; when the parameter is then changed to 4 or 12, the capture is triggered (this is not of much practical use, but can be valuable for testing the capture function).
I-Variables 127 Setting Meaning 8 Timer counting up at SCLK/10 9 Timer counting up at SCLK/10 10 Timer counting up at SCLK/5 11 Timer counting up at SCLK/2.5 12 Timer counting down at SCLK/10 13 Timer counting down at SCLK/10 14 Timer counting down at SCLK/5 15 Timer counting down at SCLK/2.5 Setting Meaning 0 Software Control 1 Rising edge of CHCn (third channel) 2 Rising edge of Flag n (as set by Flag Select) 3 Rising edge of [CHCn AND Flag n] -- Low true index, high true Flag 4 Software Control 5 Falling edge of CHCn (third channel) 6 Rising edge of Flag n (as set by Flag Select) 7 Rising edge of [CHCn/ AND Flag n] -- Low true index, high true Flag 8 Software Control 9 Rising edge of CHCn (third channel) 10 Falling edge of Flag n (as set by Flag Select) 11 Rising edge of [CHCn AND Flag n/] -- High true index, low true Flag 12 Software Control 13 Falling edge of CHCn (third channel) 14 Falling edge of Flag n (as set by Flag Select) 15 Rising edge of [CHCn/ AND Flag n/] -- Low true index, low true Flag