Download User`s manual
Transcript
MCX302 – M23 NOVA electronics Inc. After start of the execution, the function monitors the RR0-D8 (X-HOM) bit and terminates automatic home search if the bit is reset to 0 from 1. If automatic home search did not terminate normally due to an error, the RR0-D4(X-ERR) bit is set to 1 after termination. Analyze the error based on the contents of the XRR2-D7, bits D5 to D0, and bits XRR1-D15 to D12. Example of home search using a home search signal only In this example, high-speed home search is triggered by one home signal that is input to both the STOP0 and STOP1 pins of this IC. [Operation] MCX302 Input signal and logical level Step 1 Step 2 Step 3 Step 4 Near home (STOP0) Signal Low active Home (STOP1) signal Low active Search Search direction speed − 20,000pps − 500pps + 20,000pps Photo Coupler X Home XSTOP0 XSTOP1 (Not executed) (3500 pulse offset driving in the + direction) As shown in the table, the same search direction is specified for the signal logical levels of Step 1 and Step 2.(An opposite logical level may also be set.) High-speed home search is performed in Step 1 and operation stops by decelerating when the home signal becomes active. If the stop position is within the home signal active section, controls escapes in the opposite direction by the irregular operation of Step 2 and searches a home in operation of Step 2. If the Step 1 stop position passed through the home signal Over Run Limit in the Search Direction STOP0=STOP1 active section, the limit in the search direction is set in Step Active Active 2. In this case, irregular operation is performed. Section Section When the automatic home search starting position is in Search Direction Step 1 point A as shown in the diagram, the function performs irregular operation of Step 2 without executing Step 1. When the starting position is in point B in the diagram, the Step 2 function performs irregular operation in Step 2 after A B setting the limit in search direction in Step 1. [Parameter and mode setting] WR0 ← 010Fh Write WR1 ← 0000h Write WR3 ← 4F00h Write ; ; ; ; ; Selects X axis Input signal logical setting: XSTOP0: Low active, XSTOP1: Low active (See 4.4) Input signal filter setting (See 4.6) D15 ~ D13 010 Filter delay: 512μsec D8 1 XSTOP1,0 signal: Enables the filter WR6 ← 014Fh Write ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Writes an automatic home search mode in WR6 D15 ~ D13 000 D12 0 D11 0 Deviation counter clearing output: D10 0 Uses a limit signal as the home signal: D9 0 Z-phase signal AND home signal: D8 1 Clears logical/real position counter: D7 0 Step 4 driving direction: D6 1 Step 4: D5 0 Step 3 search direction: D4 0 Step 3: D3 1 Step 2 search direction: D2 1 Step 2: D1 1 Step 1 search direction: D0 1 Step 1: Set an automatic home search mode to the X axis WR0 ← 0160h Write WR6 ← 3500h Write WR7 ← 000Ch Write WR0 ← 0100h Write ; Range: 8,000,000 (multiple: 10) WR6 ← 004Ch Write WR0 ← 0102h Write ; Acceleration speed: 95,000 PPS/SEC ; 95000/125/10 = 76 WR6 ← 0064h Write WR0 ← 0104h Write ; Initial speed: 1000 PPS WR6 ← 07D0h Write WR0 ← 0105h Write ; Speed of Steps 1 and 4: 20000 PPS WR6 ← 0032h Write ; Speed of Step 2: 500 PPS – 23 – Disable Disable Disable Enable + direction Enable Disable − direction Enable − direction Enable