Skip to main content
Skip table of contents

CAN Setup

The Razor PDM can communicate directly with any current Link ECU and with up to 3 other Razor PDMs. Third party ECUs can be configured to communicate with a Razor PDM using the CAN Streams outlined below.

ECU Setup

When connecting to a Link ECU, set up the ECU CAN as per the PCLink helpfile. G4X ECU Tuning Functions > CAN > Link Razor PDM 

Ensure the latest version of PCLink is being used (V6.23 or later) and ensure the latest firmware has been installed.

  • Select User Defined and in one of the channels select Link Razor PDM.

  • Choose an ID that is not being used and a transmit rate.

  • CAN Bus ID is in Decimal format.

There will be 5 IDs used. The one chosen and the four consecutive numbers following that ID.

ID = ECU transmit, ID + 1 = PDM1 IO Status, ID + 2 = PDM1 Keypad Counts, ID + 3 = PDM2 IO Status, ID + 4 = PDM2 Keypad Counts. This allows for up to 2 PDMs connected to the same Link ECU.

12 new runtimes (6 per PDM) have been added for currents, fault flags and status flags received by the ECU from the PDM. 

CAN Aux 1 -16 are used to control the outputs on the PDM.

To setup a Link ECU to transmit the CAN Aux runtimes and receive basic PDM data:

  1. Open the CAN Setup window (PCLink > ECU Controls > CAN Setup).

  2. Select the CAN module to be used

  3. Set the Mode to 'User Defined'.

  4. Configure the Bit Rate to the same Bit Rate as the PDM (Often 1 Mbit/s).

  5. Select a spare CAN channel

  6. Select 'Link Razor PDM' from the Mode drop-down menu.

  7. Set the CAN ID to an appropriate spare Id, the selected ID doesn't matter as long as the PDM is set to match and the next 4 CAN Ids are free (e.g. if Id 500 is used 501 to 504 must also be free and unused).

  8. Set the Transmit Rate to 20Hz, this controls the rate at which the CAN Aux information is transmitted by the ECU, faster or slower rates can be used if desired.

  1. Click Apply and then OK.

  2. Make sure a Store (F4) is performed.

To setup a Link ECU to use one or more of the Razor PDM's ADIO channels or Keypad Functions as an ECU CAN input:

  1. In PCLink connect to the ECU and open CAN -> PDM 1 in the ECU settings menu (or PDM 2, PDM 3 or PDM 4 depending on which PDM the input is coming from).

  2. Select the appropriate ADIO or Keypad Function's setting and set it to an unused CAN Freq, CAN An or CAN DI input.

  3. If all of the above CAN setups have been done correctly the selected CAN input should now show the status or value of the ADIO or Keypad function.

Note: Only ADIO 5-8 can be used as Frequency inputs.

Note: For CAN Keypad Functions a value of 1 or more is considered active when a CAN DI is selected.

PDM Setup

CAN Setup Configuration

Termination

Turns the PDM's terminating resistor On/Off.

Bus Data Rate

Sets the data rate of the PDM CAN bus. The data rate needs to be the same on all devices connected to the same bus.

Multi-PDM Quick Setup

Click on the pencil icon next to the PDM number dropdown to open the Quick Setup dialogue box. The quick setup box is designed to quickly and easily set up a system with an external device and multiple PDM’s.

NOTE: The Multi-PDM Quick setup box will reset all channels with the modes required for the CAN setup system.

Parameter

Description

Base Id

The ID to base the rest of the system off. This ID is the same as the ECU CAN Id.

Keypad Tx

The ID to receive Keypad counts from.

Number Of PDMs

The number of PDMs in the system

PDM Number

The PDM number in the system. These numbers are relative. So the ID’s of PDM 2 will be greater than PDM 1 and less than PDM 3.

The quick setup dialogue sets the mode, can ID’s and transmission rates on the CAN Channels depending on the options selected in the quick setup box. These modes include the IO Status transmission, Keypad Counts transmission, Keypad counts reception, PDM1 IO Status reception, PDM2 IO Status reception, PDM3 IO Status Reception.

The system will have every PDM receive the other IO statuses of all other PDM’s in the system. Each PDM in the system will also have a CAN ID for the reception of keypad counts. This value is set in the dialogue box. The reception of keypad counts can be differ between PDM’s, For example PDM 2 can receive PDM 3’s Keypad counts and have PDM 1 receive PDM 2’s keypad counts and have PDM 4 receive PDM 1’s keypad counts.

The PDM Number in the quick setup window is different than the “PDM Rx IO status number”. This is because of the referential nature of the PDM RX IO Status. When you have PDM 1 it will receive IO Statuses from PDM 2, 3 and 4 however in the Channels they will be setup as PDM 1, 2 and 3.

The “Number of PDMs” value configures the extra CAN id’s needed for the IO status reception of the other PDM’s in the system.

NOTE: Ensure the Number of PDMs is always higher or the same as the PDM Number,

CAN Channel Setup

This is the starting point when setting up CAN on the Razor PDM. Currently, these channels can be used to receive or transmit, depending on the Mode, CAN streams that are detailed below. 

Label

Whatever you wish to call each CAN Channel. By default they are set as CAN Channel 1 - 10.

Mode

Sets the CAN Channel Mode:

  • None - this channel will do nothing

  • CAN Function - a receive mode that gets Status, Frequency and Duty Cycle values that can be used to control PDM Outputs

  • IO Status - a fixed transmit stream that sends Status, Frequency, Duty Cycle, Current and Voltage values of the PDM IO pins

  • Keypad 1 - used to control a CAN keypad

  • Keypad 2 - used to control a second CAN keypad

  • Keypad Counts - a fixed transmit stream that sends the 'Counts' of every configured keypad button

  • Rx Keypad Count - receive a fixed ‘Keypad Counts’ stream from another PDM

  • Rx PDM1 IO Status - receive a fixed ‘IO Status’ stream from another PDM

  • Rx PDM2 IO Status - receive a fixed ‘IO Status’ stream from another PDM

  • Rx PDM3 IO Status - receive a fixed ‘IO Status’ stream from another PDM

CAN ID

The CAN ID the channel will send every message on

Transmit Rate

How often the PDM will transmit the chosen message(s). This option is not required for receive steams.
Note: this is different to the Bus Data Rate.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.