Here is the code:
Here is also some info on the locks:
POWER LOCK SYSTEM
The power lock system uses non-switched battery
current received through a fused B(+) fuse in the Totally Integrated Power Module (TIPM) so that the system remains operational regardless of the ignition switch position. The TIPM is the primary power lock system controller. The power lock switches are hard wired to their respective Driver Door Module (DDM) or Passenger Door Module (PDM). The TIPM, the DDM, the PDM and the rear door control modules all communicate with each other and with other electronic modules in the vehicle over the Controller Area Network (CAN) data bus.
When a door module receives an input from a power lock switch, it sends the appropriate electronic Lock Request or Unlock Request message to the TIPM over the CAN data bus. The TIPM responds to these request messages by providing the appropriate outputs to each of the power lock motors to lock or unlock each of the door and liftgate latches. The TIPM also monitors hard wired inputs from the door and liftgate ajar switches. The TIPM uses these inputs and internal programming to determine whether or not to provide the output necessary to operate the power lock motors for the automatic or rolling door locks and automatic unlock features.
The TIPM also stores the power lock system Customer Programmable feature settings received over the CAN data bus from the Electronic Vehicle Information Center (EVIC) circuitry of the ElectroMechanical Instrument Cluster (EMIC) (also known as the Cab Compartment Node/CCN). The TIPM uses these settings and internal programming along with hard wired and electronic message inputs to determine the proper outputs needed to produce each of the appropriate power lock system features.
The power lock system circuits are continually monitored and controlled by the microcontroller and software contained within the TIPM, the DDM, the PDM and the rear door control modules. When one of these modules monitors a problem in any of the power lock system circuits or components, it stores a fault code or Diagnostic Trouble Code (DTC) in its memory circuit. The hard wired circuits between components related to the power lock system may be diagnosed using conventional diagnostic tools and procedures. Refer to the appropriate wiring information. The wiring information includes wiring diagrams, proper wire and connector repair procedures, details of wire harness routing and retention, connector pin out information and location views for the various wire harness connectors, splices and grounds.
However, conventional diagnostic methods will not prove conclusive in the diagnosis of the power lock system or the electronic controls or communication between other modules and devices that provide features of the power lock system. The most reliable, efficient, and accurate means to diagnose the power lock system or the electronic controls and communication related to power lock system operation, as well as the retrieval or erasure of a DTC requires the use of a diagnostic scan tool. Refer to the appropriate diagnostic information.
POWER LOCK SYSTEM
The power lock system includes the following major components, which are described in further detail elsewhere in this service information:
•Door Modules - Vehicles equipped with certain options are equipped with an electronic front door control module (also known as the Driver Door Module/DDM, the Passenger Door Module/PDM or the Front Door MUX Modules) on both the driver and passenger front doors. Vehicles equipped with the front door control modules and certain other options may also be equipped with an electronic rear door control module (also known as the Module Door Left Rear or Right Rear and Module Sliding Door Actuator, but not to be confused with the Module Power Sliding Door Left or Right, or the Module Sliding Door Track) on either or both rear sliding doors. (Refer to 08 - Electrical/8E - Electronic Control Modules/MODULE, Door - Description) .
•Electronic Vehicle Information Center - The Electronic Vehicle Information Center (EVIC) is a digital display integral to the ElectroMechanical Instrument Cluster (EMIC) (also known as the Cab Compartment Node/CCN), which is located on the instrument panel in front of the driver. (Refer to 08 - Electrical/8M - Message Systems/Message Center/CENTER, Electronic Vehicle Information - Description) .
•Power Lock Motors - A reversible electric power lock motor is integral to the latch of each front and rear door and the liftgate.
•Power Lock Switches - A power lock switch is integral to the switch module located on the forward end of the arm rest of each front door inside trim panel.
•Totally Integrated Power Module - The Totally Integrated Power Module (TIPM) is located in the left front corner of the engine compartment. (Refer to 08 - Electrical/8W - Wiring/Power Distribution/MODULE, Totally Integrated Power (TIPM) - Description).
If the wiring is good and you have a new switch it's possibly the TIPM..
Let me know,