1. Disconnect the engine and automatic transaxle. (ATX) (See AUTOMATIC TRANSAXLE REMOVAL/INSTALLATION.)
2. Disconnect the engine and manual transaxle. (MTX) (See MANUAL TRANSAXLE REMOVAL/INSTALLATION.)
3. Remove the intake-air system. (See INTAKE-AIR SYSTEM REMOVAL/INSTALLATION.)
4. Remove the exhaust system. (See EXHAUST SYSTEM REMOVAL/INSTALLATION.)
5. Remove the generator.
6. Remove the ignition coils. (See IGNITION COIL REMOVAL/INSTALLATION.)
7. Remove the CKP sensor. (See CRANKSHAFT POSITION (CKP) SENSOR REMOVAL/INSTALLATION.)
8. Assemble in the reverse order of disassembly.
Engine removal/installationMazda 6 Service Manual: Air intake actuator inspection
1. Connect battery positive voltage to terminal D or F and ground to terminal
F or D of the air intake actuator.
2. Verify that the air intake actuator operates as shown below.
If not as specified, replace the air intake actuator.
...
Mazda 6 Service Manual: Troubleshooting procedure
Basic flow of troubleshooting
DTC troubleshooting flow (on-board diagnostic)
Diagnostic trouble codes (DTCs) are important hints for repairing
malfunctions that are difficult to simulate.
Perform the specific DTC diagnostic inspection to quickly and accurately
diagnose the malfunction.
The ...