FAILURE OR IMPROPER SELECTION OR IMPROPER USE OF THE PRODUCTS AND/OR SYSTEMS DESCRIBED
HEREIN OR RELATED ITEMS CAN CAUSE DEATH, PERSONAL INJURY AND PROPERTY DAMAGE.
•is document and other information from Parker Hannin Corporation, its subsidiaries and
authorized distributors provide product and/or system options for further investigation by users
having technical expertise.
•e user, through its own analysis and testing, is solely responsible for making the nal selection
of the system and components and assuring that all performance, endurance, maintenance,
safety and warning requirements of the application are met. e user must analyze all aspects
of the application, follow applicable industry standards, and follow the information concerning
the product in the current product catalog and in any other materials provided from Parker or its
subsidiaries or authorized distributors.
•To the extent that Parker or its subsidiaries or authorized distributors provide component or
system options based upon data or specications provided by the user, the user is responsible for
determining that such data and specications are suitable and sucient for all applications and
reasonably foreseeable uses of the components or systems.
•e user will be solely responsible for nal disposal of all products.
II
CM0504 User Guide
Page 3
Contents
Publication History ......................................................................................................................... VI
Safety VII
Safety symbols ..................................................................................................................................... VII
General safety regulations .................................................................................................................. VII
Welding after installation ...................................................................................................................VIII
Construction regulations ................................................................................................................... VIII
Safety during installation ...................................................................................................................VIII
Safety during start-up .........................................................................................................................VIII
Safety during maintenance and fault diagnosis ...............................................................................VIII
1. Understanding the CM0504 ............................................................................................ 1
10.5.5. Voltage .....................................................................................................................................39
11.2.4. Input status message ..............................................................................................................58
11.2.5. Output duty cycle control message .......................................................................................59
11.2.6. Output frequency control message .......................................................................................59
11.2.7. Output status message ...........................................................................................................59
IV
CM0504 User Guide
Page 5
Publication History
e following table provides an overview of the changes made to this document over the course of its
publication history.
Release DateDescription of Change
Rev. 001First release of this document
Rev. 002Pin-outs updated and input characteristics added from HW
desc. 1038F11.00A, 6/24/2016
Rev. 003Input and output section capabilities updated, other minor
edits per engineering feedback, 1/31/2017
Rev. 004Associated input names to correct pins and minor edits
throughout per engineering feedback from 7/6/2017
Rev. 005Edit wire size in connector section. Clarify input types.
Rev. 006Edits per feedback from HY-JG, 2/12/2018. Software section
and Diagnostic (cong) Tool screen captures added.
Rev. 007Edit Environmental specs. Fix table size in software section.
Rev. 008Add Quick Start chapter. Edits to H-Bridge section.
V
CM0504 User Guide
Page 6
Safety
Do not perform the procedures in this manual unless you are experienced in the handling of electronic
equipment.
Contact the manufacturer if there is anything you are not sure about or if you have any questions
regarding the product and its handling or maintenance.
e term “manufacturer” refers to Parker Hannin Corporation.
Safety symbols
e following symbols are used in this document to indicate potentially hazardous situations:
Danger! Risk of death or injury.
Warning! Risk of damage to equipment or degradation of signal
When you see these symbols, follow the instructions carefully and proceed with caution.
General safety regulations
Work on the hydraulics control electronics may only be carried out by trained personnel who are wellacquainted with the control system, the machine, and its safety regulations.
Follow the manufacturer’s regulations when mounting, modifying, repairing, and
maintaining equipment. e manufacturer assumes no responsibility for any accidents
caused by incorrectly mounted or incorrectly maintained equipment. e manufacturer
assumes no responsibility for the system being incorrectly applied, or the system being
programmed in a manner that jeopardizes safety.
Do not use the product if electronic modules, cabling, or connectors
are damaged or if the control system shows error functions.
Electronic control systems in an inappropriate installation and in combination with
strong electromagnetic interference elds can, in extreme cases, cause an unintentional
change of speed of the output function.
VI
CM0504 User Guide
Page 7
Welding after installation
Complete as much as possible of the welding work on the chassis before the installation of the system. If
welding has to be done afterwards, proceed as follows:
Do not place the welding unit cables near the electrical wires of the control system.
1. Disconnect the electrical connections between the system and external equipment.
2. Disconnect the negative cable from the battery.
3. Disconnect the positive cable from the battery.
4. Connect the welder’s ground wire as close as possible to the place of the welding.
Construction regulations
e vehicle must be equipped with an emergency stop which disconnects the supply voltage to the
control system’s electrical units. e emergency stop must be easily accessible to the operator. If
possible, the machine must be built so that the supply voltage to the control system’s electrical units is
disconnected when the operator leaves the operator’s station.
Safety during installation
Incorrectly positioned or mounted cabling can be inuenced by radio signals, which can
interfere with the functions of the system.
Safety during start-up
Danger! Risk of death or injury. Do not start the machine’s engine before the control
system is mounted and its electrical functions have been veried.
Do not start the machine if anyone is near the machine.
Safety during maintenance and fault diagnosis
Before performing any work on the hydraulics control electronics, ensure that
•e machine cannot start moving.
•Functions are positioned safely.
•e machine is turned o.
•e hydraulic system is relieved from any pressure.
•Supply voltage to the control electronics is disconnected.
VII
CM0504 User Guide
Page 8
1. Understanding the CM0504
e Controller Module (CM) 0504 is a general purpose input / output controller that includes a single
CAN interface, 5 inputs and 4 outputs with error checking. e main function of the module is to
provide a means of controlling high current loads through messages on the CAN bus. e outputs can be
congured as either high-side or low-side drivers. e module outputs can be congured to support up
to two full H-bridge motor drives to control directional motors.
e CM0504 is only available as a CAN slave module and does not support standalone operation.
However, it does support limited congurability, to specify things like input congurations, and update
rates for the messages presented on the CAN bus. e conguration tool is available from our website,
www.parker.com/ecd under ‘Support’.
Figure 1.1. CM0504 controller module
e CM0504 is designed to communicate through a J1939-based Controller Area Network (CAN) and can
be used in any CAN 2.0B application.
e CM0504 has many features, as follows:
•e CM0504 can monitor up to 5 inputs:
•1 active-high with wake up input (can be used as power control).
•4 programmable inputs (can be used as analog, digital, resistive, or frequency).
•e CM0504 has 4 outputs:
•up to 25 A load, module total 100 A (can be congured as high-side or
low-side).
•standard 500 Hz PWM default (capable of up to 2 kHz, engineering review required to verify for
each application).
•e CM0504 has 4 connectors (2x Deutsch DTHD 1 position, 1x Deutsch DTP 4 position, 1x Deutsch
DTM 12 position) that are used to interface with the inputs, outputs, power and CAN.
is manual describes the hardware components of the CM0504, but does not explain how to congure
the software. For more information about software, refer to the appropriate software manual or contact
your Parker Vansco Account Representative.
1
CM0504 User Guide
Page 9
1.1. Diagram conventions
e following symbols are used in the schematic diagrams in this document:
SymbolMeaning
General input
General output
Frequency input
Analog input
Frequency sensor
Pulse sensor
Resistive sensor
General sensor
Application switch
Load
Pull-down resistor
2
CM0504 User Guide
Page 10
SymbolMeaning
Pull-up resistor
Battery
Fuse
Resistor
Ground
Chassis ground
3
CM0504 User Guide
Page 11
2. CM0504 Quick start
is section provides step-by-step instructions on how to connect the CM0504, install the required
software tools, and congure the CM0504 software. e following is a high-level overview of the steps
involved with this section:
1. Gather the required materials.
2. Install the required software tools provided by Parker.
3. Connect the CM0504 and power it up.
4. Congure CM0504 for its application. (optional)
5. Include the CM0504 slave messaging into your master module(s).
2.1. Gather Required Materials
e following materials are required for the procedures in this section:
•CM0504
•personal computer (PC)
•harness
•Data Link Adapter (DLA) kit (comes with cables needed for connecting the DLA to your PC and to
the rest of the system)
•power supply compatible with the CM0504 and loads
•software tools and les required for programming and downloading software for the CM0504.
2.2. Install the Required Software Tools
Before using the CM0504, install the following software tools onto your PC:
•Data Link Adaptor (DLA) drivers
•e DLA acts as the interface between the PC and the CM0504. Before using the DLA, you must
install the DLA drivers.
•CM0504 Diagnostic Tool
•Parker provides the CM0504 Diagnostic Tool to download software for the CM0504 and congure its
behavior.
2.2.1. Install the Data Link Adapter Driver Software
A Data Link Adaptor (DLA) is needed when connecting the CM0504 in a development system.
Note: Parker provides the latest DLA software releases through its web site. Please contact your Parker
Account Representative for details on how to download the latest DLA driver software.
e Parker DLA requires the installation of drivers on your PC. To install the Parker DLA drivers:
1. Download the driver, run the extracted le, and follow the Install Wizard. Do not connect the USB
DLA until the driver installation is completed.
2. Connect the USB DLA to a USB port on your PC. e Found New Hardware screen opens.
3. Select Install the software automatically (Recommended), and then click Next. If the driver is not
4
CM0504 User Guide
Page 12
detected automatically, you can browse to the folder containing the driver (default path C:\Program
les\Vansco\USB-DLA).
4. After installation is nished, click Finish. e USB DLA is now recognized and ready to be used.
See the Parker USB DLA kit user manual for more detailed instructions.
2.2.2. Install the CM0504 Diagnostic Tool
e CM0504 Diagnostic Tool is for downloading software for the CM0504 and conguring its behavior.
Note: Please contact your Parker Account Representative for details to obtain and download this
software.
To install:
1. Download the software.
2. Save the EXE le in a known location on your PC.
3. Simply double click the EXE to run (i.e there is no installer).
2.3. Connect the CM0504 to a System
e following shows how to connect the CM0504 to a power supply:
Figure 2.1. CM0504 power connection
Warning! Size fuses for both the Logic Power and High Current Power appropriately.
Improper fusing can result in a re.
Note: By default the CM0504 will wake-up whenever power is applied to pin J1-12 but it may also be
congured to wake on J1-4 or CAN. See sections 3.2.1, 3.2.2, and module settings in 10.1.1 for details.
Important: Both J2 and J4 must always be connected as shown above.
Important: ere are 2 ground reference pins in connector J1 – they must not be connected to the power
supply return.
5
CM0504 User Guide
Page 13
To use the CM0504 diagnostic tool, the PC must be connected to the CM0504 through the Parker USBDLA as shown in the following diagram:
Power
Controller
DLA
PC
Figure 2.2. Connect Parker USB-DLA
2.4. Configure CM0504 for its application
e CM0504 comes with the J1939 slave application preinstalled and a default conguration that may
meet the needs of your application. However, in case the conguration needs to be changed, Parker
provides the CM0504 Diagnostic tool. e tool may be used to congure the following features of the
CM0504:
•Input type (e.g. digital, analog, frequency)
•Output type (e.g. high side, low side, or H-Bridge)
•Wakeup options (e.g. always on, wake on input, or wake on CAN)
•J1939 slave messages used (e.g. PGN, SA, DA, and broadcast rate)
For details, see sections:
•10.2 -- default conguration
•10.1 – detailed instructions for the CM0504 Diagnostic tool
2.5. Include CM0504 slave messaging in your master module
e CM0504 is a slave module which requires a master on the J1939 network to process the value of its
inputs and tell it the desired state of its outputs. e J1939 messages used by the CM0504 for this purpose
are described in section 10.2. is document assumes the development environment used for the master
module provide the facilities to construct these 4 J1939 messages as required.
6
CM0504 User Guide
Page 14
3. Connectors
e CM0504 has 1 Deutsch DTM 12 position connection:
•J1: DTM04-12PA
is connector is used to connect to the inputs, and communication channels used by the CM0504. e
required connector is:
Figure 3.1. DTM06-12SA connector
e CM0504 has 1 Deutsch DTP 4 position connection.
•J3: DTP04-4P
is connector is used to connect to the outputs used by the CM0504. e required connector is:
Figure 3.2. J3 connector
e CM0504 also has 2 Deutsch DTHD 1 position connections for power and ground:
•J2: DTHD04-1-4P
•J4: DTHD04-1-4P
e required connector is:
Figure 3.3. J2 & J4 connector
e maximum wire gage for the J2 and J4 connectors is 6 AWG with GXL insulation.
7
CM0504 User Guide
Page 15
e following table shows the part numbers for the mating connectors and terminals that are used in the
vehicle harness.
ConnectorShell part no.Wedge part no.Terminal part no.
Pins connect to inputs, outputs, and communication channels. ey provide the interface between the
vehicle harness and the internal circuitry of the CM0504.
e following tables show the pinouts for each connector:
PinI/O NameFunction
1
2
3
4
5
6
7
8
9
10
11
12
Mating Connector Part Numbers
GND
CAN_L
CAN_SHLD
INPUT5
INPUT1
ADDR_L/GND
ADDR_H/SENSOR
INPUT2
INPUT3
INPUT4
CAN_H
+VBATT
1062-20-0144
1062-12-0144
0462-203-04141
0462-203-04141
J1 Connector Pinout
Ground (logic / sensor ground)
CAN low
CAN shield
General purpose input Type 2
Active high digital wake up input
Address low, IDtag / (sensor ground)
Address high, IDtag / (+5 V supply)
General purpose input Type 1
General purpose input Type 1
General purpose input Type 2
CAN high
Logic power (positive battery terminal)
J2 Connector Pinout
PinI/O NameFunction
1
PinI/O NameFunction
1
2
3
4
8
GND
OUTPUT2_25A
OUTPUT4_25A
OUTPUT3_25A
OUTPUT1_25A
Negative battery terminal (LS output ground)
J3 Connector Pinout
High-side or low-side output, 25 A
High-side or low-side output, 25 A
High-side or low-side output, 25 A
High-side or low-side output, 25 A
CM0504 User Guide
Page 16
J4 Connector Pinout
PinI/O NameFunction
1
+VBATT
Positive battery terminal (HS output power)
9
CM0504 User Guide
Page 17
4. Inputs
e CM0504 has analog, digital, resistive, and frequency inputs.
e following table shows the input numbers and their possible congurations:
Analog, type 2XXXX
Resistive, type 1XXX
Frequency, type 1XXXX
Frequency, type 2XX
Digital, type 1
(active low)
Digital, type 2
(active high)
TypeInput1Input2Input3Input4Input5IDTag (addr)
Wake upX
XX
XXX
Damage to equipment! Do not connect inputs directly to unprotected inductive loads
such as solenoids or relay coils, as these can produce high voltage spikes that may
damage the CM0504. If an inductive load must be connected to an input, use a protective
diode or transorb.
4.1. Analog input Type 2
ere are 4 analog Type 2 inputs (INPUT2, INPUT3, INPUT4, INPUT5).
e primary function of the Analog input Type 2 is to interface 0-5V sensors in an application.
4.1.1. Analog input Type 2, circuit characteristics
e following table provides specications for the analog input:
Analog inputs are susceptible to system noise, which can aect the accuracy of the signal. Signal
accuracy can also be aected by ground level shift, which can cause inputs to activate when they
shouldn’t.
System noise
To prevent noise pickup on the sensors,
•Use the shortest possible wires when connecting analog inputs to sensors.
e following shows how to connect an analog input to reduce system noise:
Sensor
Analog Input
Internal to product
Sensor Ground
Figure 4.1. Analog input for system noise reduction
Ground level shift
To reduce ground level shift:
1. Dedicate one of the 2 system ground inputs (GND) to sensors that have dedicated ground wires, and
connect all sensor grounds to this system ground input.
2. Splice the other system ground inputs together in the vehicle harness (close to the connector) to
provide a better ground for the noisier low-side outputs and digital circuits.
3. Position the sensor’s ground connection near the system ground connections to ensure that the
signal remains within the digital activation range of the input.
Note 1: e system ground inputs are rated for low-current signals, which ensures the sensor’s ground is
very close in voltage potential to the system ground.
Note 2: Sensors that don’t have a dedicated ground wire are typically grounded to the vehicle chassis
through the sensor’s body.
11
CM0504 User Guide
Page 19
Sensor Power
Active Sensor
Internal to product
Analog Input
Pull-up
Resistor
Resistive Sensor
Figure 4.2. Analog input ground shift connection for sensors that have dedicated ground wires
Analog Input
4.2. Power control digital input
e CM0504 has 1 active-high power control digital input that is used for waking up (turning on) the
product (INPUT1).
is type of input has a pull-down resistor option only. When the input is active it turns on the power
supply pass transistor to power up the unit. e input is sensed directly by the microprocessor.
4.2.1. Power control input, circuit characteristics
e following table provides specications for the CM0504 power control digital input:
Power control digital input characteristics
ItemMINNOMMAXUNIT
Input voltage range032V
Over-voltage36V
Pull-down resistance21.2kΩ
Capacitance at pin1000pF
Input Power Up Threshold2.54.3V
Note: e power control digital input voltage must be greater than 4.3 V before it is considered an active
high input.
e power control digital input wakes up the CM0504 when switched high to a voltage of 4.3 V or greater.
e CM0504 will shut o when an open circuit condition occurs on the power control digital input,
unless it is congured to ‘Wake on CAN’.
12
CM0504 User Guide
Page 20
4.2.2. Power control digital input connections
If the active high digital input is congured to wake up the module:
•e power control digital input is usually connected to the vehicle ignition, but it can be connected
to any power source in a system.
•To protect the harness that connects the CM0504 to the ignition, place a fuse of 200 mA or higher in
the circuit that feeds the CM0504.
•When battery power (VBATT) is connected, and the power control digital input is inactive, the
CM0504 will go into sleep mode.
•e CM0504 has ‘Wake on CAN’ capability. Even when it is not congured for wake on CAN, the bus
must be completely silent in order for the CM0504 to stay in low power sleep mode. Until the correct
wakeup conditions are sensed, the CM0504 will appear “o” (outputs o and no CAN tx) but there is
no way to keep its power supply o if there is CAN activity on the bus.
If your CM0504 must always be powered, the power control digital input does not need to be used. e
CM0504 can be congured to always be powered using the CM0504 Conguration Tool software.
e following diagram shows a typical power control digital input connection:
Internal to product
Application Switch
Power Control Input
Power
Control
Pull-Down
Resistor
Battery
Figure 4.3. Power control digital input installation connections
4.3. INPUT2 and INPUT3, alternate functions
e alternate functions for inputs INPUT2 - INPUT3 is as digital (active-low) inputs and as frequency
(type 1 & type 2) inputs.
13
CM0504 User Guide
Page 21
4.3.1. INPUT2 and INPUT3, Frequency or Digital active-low
characteristics
e following table provides specications for INPUT2 and INPUT3:
An active-low digital input is typically connected to a switch that is either open or closed.
•When the switch is open, the pull-up resistor will ensure no signal exists on the input pin, which will
be interpreted by the CM0504 as inactive.
•When the switch is closed, the input is connected to ground, which will be interpreted by the
CM0504 as active.
e active-low input must be connected to ground to ensure there is a ground connection when the state
of the input changes.
e following shows a typical active low digital input connection:
Internal to product
Application Switch
Active High
Digital Input
Battery
Figure 4.4. Active low digital input connections
14
CM0504 User Guide
Page 22
4.4. INPUT4 and INPUT5, alternate functions
e alternate functions for inputs INPUT4 - INPUT5 is as digital (active-high) inputs and as frequency
(type 2) or resistive (type 1) inputs.
4.4.1. INPUT4 and INPUT5, Resistive characteristics
e following table provides specications for INPUT4 and INPUT5:
A digital input is typically connected to a switch that is either open or closed.
•When an active-high switch is open, the pull-down resistor ensures that no voltage exists on the
input signal, which will be interpreted by the CM0504 as inactive.
•When the switch is closed, the input is connected to battery voltage, which will be interpreted by the
CM0504 as active.
For an input that is active-high
•It must be connected to battery power so that there is a battery connection when the state of the
input changes.
15
CM0504 User Guide
Page 23
•e power provided to the digital switch connected to the input must be provided through a fuse in
Deutsch DTM
the wire harness.
A typical active-high digital input connection is shown below:
Internal to product
Application switch
Figure 4.5. Active high digital input
4.5. Addressing
e CM0504 supports addressing of the module using resistor tags.
is input circuit has been optimized to support standard Parker (IDtag) addressing resistors (0.5%
resistors to be used for module addressing).
e CM0504 measures the resistance of an IDtag resistor connected between ADDR_H and ADDR_L
pins. ere can be up to 8 CM0504 modules in a system when address tags are used.
Marked with address
acc. to table
Active Low
Digital Input
16
CM0504 User Guide
Page 24
e following table shows the part numbers for the address resistors:
AddressOrdering part number*Resistance (ohms)
05030160294
15030161590
25030162976
350301631.5k
450301642.23k
550301653.36k
650301665.3k
750301679.53k
* - addressing resistors are sold in bags of 10
4.5.1. Addressing installation connections
e IDtag dening the address for the module is inserted into the CM0504 connector positions ADDR_H
and ADDR_L.
e following shows a typical module ID connection:
Internal to product
+5Vdc
ADDR_H
IDtag
ADDR_L
Figure 4.6. Typical IDtag installation
17
CM0504 User Guide
Page 25
5. Outputs
e CM0504 has 4 solid-state outputs. Output currents are capable of up to 25 A.
e CM0504 has 3 types of outputs depending on conguration. e outputs can be congured as highside, low-side or two outputs combined (1 high, 1 low) can become an H-Bridge output:
•High-side outputs capable of 25 A
•Low-side outputs capable of 25 A
•H-Bridge conguration (please see H-Brdge Connection section)
5.1. High-side outputs
e CM0504 may be congured to support up to 4 high-side outputs:
•OUTPUT1_HS to OUTPUT4_HS
e high-side outputs share pins with the low-side outputs and are congured with the software tool.
5.1.1. High-side output capabilities
ese outputs provide 25 A maximum continuous current. All 4 outputs can be operated at 25 A output at
the same time for a total module current of 100 A maximum.
Note: When outputs are ganged together, the achievable maximum current won’t be multiplied.
e following table provides specications for the high-side outputs:
High-Side Output Specifications
ItemMINNOMMAXUNIT
Maximum output current25A
Output Resistance - w.r.t. ground: Output off 100.9kΩ
Output Resistance - w.r.t. VBATT: Output on 2.32.7mΩ
Leakage current, strobe off - output off0.120.24mA
Turn on delay (Off to On state)4.48µs
Turn off delay (On to Off state)8.39µs
Output pin capacitance950pF
PWM frequency (see note 1)500Hz
Duty cycle resolution, up to max frequency%
Note 1: Output PWM frequency can go up to 2000Hz. Parker application engineering would need to
review each application request for an output PWM frequency above the default 500 Hz.
5.1.2. High-Side Output Diagnostics and Fault Detection
e CM0504’s high-side outputs have the ability to report many dierent fault conditions, and are
protected against short-circuit and over-current, open load, and short-to-battery faults.
18
CM0504 User Guide
Page 26
5.1.2.1. Short-to-Battery
Short-to-battery faults occur when a high-side output pin is connected to battery voltage.
e high-side output circuit uses voltage on the output pin to determine if a short-to-battery condition
exists.
5.1.2.2. Open load (high-side)
Open load faults occur when a high-side output pin is open circuit (not connected to a load). e
high-side output circuit uses a small amount of current on the output pin to determine if an open load
condition exists.
Note: High-side outputs must be o to detect an open load fault.
5.1.2.3. Over-current (high-side)
Over-current faults occur when the current through a high-side output pin exceeds a threshold dened
in the CM0504.
5.2. Low-side outputs
e CM0504 may be software congured to support up to 4 low-side outputs:
•OUTPUT1_LS to OUTPUT4_LS
e low-side outputs share pins with the high-side outputs and are congured with the software tool.
5.2.1. Low-side output capabilities
e low-side outputs in the module provide a switched GROUND (open drain) digital output from the
CM0504 for loads. e outputs do not support PWM.
e following table provides specications for the CM0504’s low-side outputs:
Low-Side Output Characteristics
ItemMINNOMMAXUNIT
Output voltage range (operational/nonoperational)
Output current025A
Output ON state resistance (w.r.t. GND)2.02.5mΩ
Output OFF state leakage current0.30.6mA
Turn ON time to ON state1.39µS
Turn OFF time to OFF state5.78µS
Output pin capacitance950pF
032V
5.2.2. Low-Side Output Diagnostics and Fault Detection
e CM0504’s low-side outputs have the ability to report many dierent fault conditions, and are
protected against short-circuit and over-current, open load, and short-to-ground faults.
19
CM0504 User Guide
Page 27
5.2.2.1. Short-to-Ground
Short-to-ground faults occur when a low-side output pin is connected to ground.
5.2.2.2. Open load (low-side)
Open load faults occur when a low-side output pin is open circuit (not connected to a load).
Note: Low-side outputs must be on to detect an open load fault.
5.2.2.3. Over-current (low-side)
Over-current faults occur when the current through a low-side output pin exceeds a threshold dened in
the CM0504.
5.3. High-Side/Low-Side Output Configuration
e following diagram shows the possible conguration for high-side/low-side outputs:
You must be aware of the following when connecting high-side outputs:
•High-side outputs are connected to the VBATT pins, which can be connected to a +12 V or +24 V
battery. e VBATT powers 4x 25 A outputs. Maximum load on the VBATT is 100 A.
•High-side outputs can provide switched battery power to a variety of load types in a vehicle.
If large inductive loads are used, and the high-side output is providing a continuous PWM signal, then
the PWM peak current must not be greater than the specied continuous current for the output (in
continuous mode, the average current ow through the diode at 50% duty cycle is approximately equal to
½ the peak current).
20
CM0504 User Guide
Page 28
When connecting high-side outputs, ensure you follow these best practices:
•High-side outputs should not be connected to loads that will draw currents greater than the
maximum peak current, or maximum continuous current.
•e grounds for the loads should be connected physically close to the CM0504 power grounds.
e following shows a typical high-side output connection:
You must be aware of the following when connecting low-side outputs:
•Low-side outputs are connected to the ground pins, which are connected to battery negative
terminal. Maximum load on each output is 25 A. Maximum load on the ground is 100 A
•Low-side outputs can provide switched ground path to a variety of load types in a vehicle.
e following shows a typical low-side output connection:
Internal to product
Low-Side
Output
Application
Load
Battery
Figure 5.3. Typical low-side output connection
21
CM0504 User Guide
Page 29
5.3.1.3. H-Bridge Connection
e high-side/low-side outputs can be congured to be an H-Bridge (controlled by activating the one you
want to be high side). An H-Bridge allows loads to be controlled by both high side and low side switches
at the same time.
H-Bridge connection allows loads to have current reversed through them which allows several load types
to reverse direction (motors, solenoids, etc).
ere are 2 H-Bridge options that the CM0504 can accommodate. ese are congurable in the Software
Tool. Congurations are:
•2 separate H-Bridges that function independent of one another and can handle up to 25 amps each.
Please reference the Software Tool for how you must pin the CM0504
•1 H-Bridge that gangs output pins together. In this conguration that CM0504 can sustain up to 50
amps across this H-Bridge. Please reference the Software Tool for how you must pin the CM0504
Size your fuses and wires accordingly when altering the output conguration.
Improper fusing and wiring can result in a re.
Note: Fusing of the Bus Bar(s) is not shown in the examples below.
e following gures show a typical setup for an H-Bridge. ese show how the H-Bridge is used to
reverse current ow direction.
MODULE
Busbar (VBAT)
Output X (HS)
active
Output X (LS)
inactive
Busbar (VBAT)
Output Y (HS)
inactive
Output Y (LS)
active
LOAD
Current flow
direction
Figure 5.4. H-bridge forward direction
22
CM0504 User Guide
Page 30
MODULE
Busbar (VBAT)
Output X (HS)
inactive
Output X (LS)
active
LOAD
Busbar (VBAT)
Output Y (HS)
active
Output Y (LS)
inactive
Current flow
direction
Figure 5.5. H-bridge reverse direction
To activate the H-Bridge as shown above, use the CM0504 Conguration Tool software to set up the out
puts for current ow to be controlled in the forward and reverse directions.
23
CM0504 User Guide
Page 31
6. Power
e CM0504 is powered by the vehicle battery. e CM0504 operates in a 12 V or 24 V system, and can
operate from 9 V up to 32 V, with over-voltage protection at 36 V.
When the CM0504 is congured to go into sleep mode, the controller is turned on by applying power to
the power control (wake-up) input or a CAN message.
6.1. Logic and output power
e CM0504 has 2 pins, labeled VBATT, dedicated to providing power for logic and outputs, and 2 pins,
labeled GND, dedicated to grounding the CM0504.
Note: e power and ground connections are usually paralleled over several pins to minimize voltage
drops on higher current applications.
6.1.1. Logic and output power capabilities
e VBATT pins that provide logic and output power are internally connected inside the CM0504.
Logic power refers to the logic circuit, which consists of the microprocessor, RAM, etc. e logic circuit
can draw a maximum of 250 mA.
Output power refers to the output circuits connected to the battery positive and ground terminals. Each
output circuit can draw a maximum of 25 A.
e following table provides specications for the CM0504 logic and output power:
Logic and Output Power Specifications
ItemMinNomMaxUnit
Input voltage range932V
Over voltage36V
Current draw in on state (excluding outputs)250mA
Current draw in sleep mode (see note 1)0.61.7mA
Inline fuse required on power circuit pin130A
Number of VBATT pins2-
Number of ground pins2-
Note 1: Current draw in sleep mode depends on the output conguration. Sleep mode current draw will
be lesser value when the outputs are congured as HS output.
6.1.2. Logic and output power connections
When connecting the CM0504 logic and output power, note that:
•Logic and output power connections are made using the VBATT and GND pins.
•When there are multiple output power pins, the number of wires needed to connect the CM0504
power depends on the amount of current required by the application.
•It is recommended that you use the largest AWG wire allowed by your connector for the VBATT
and GND pins, to meet the amount of expected output current; however, this is not always true
and depends on your application.
24
CM0504 User Guide
Page 32
•e CM0504 is protected against reverse-battery connections by an internal high-current conduction
path that goes from ground to power.
•Select fuse sizes by multiplying the maximum continuous current during normal operation by
1.333 (75% de-rating factor). Do not use slow blow fuses for this application.
•All power connections to the CM0504 should be fused to protect the vehicle harness.
25
CM0504 User Guide
Page 33
7. Communication
e only type of communication available to the CM0504 is Controller Area Network (CAN)
communication.
7.1. Controller area network
e CM0504 has 1 Controller Area Network (CAN) communication port(s) available. e CM0504
hardware provides controller area network (CAN) communication according to the SAE J1939
specication, making the CM0504 compatible with any CAN-based protocol through software.
CAN communication is used to communicate the status of multiple modules that are connected together
in the same network.
7.1.1. J1939 CAN Capabilities
e CAN communicates information at a rate of 250 kbps. CM0504 input and output information is
transmitted through the CAN at a broadcast rate of 40 Hz. Lack of regular CAN communication is an
indication that there is either a problem with a module in the network, or a problem with the CAN bus.
e following table provides specications for the CAN:
ItemMinNomMaxUnit
Onboard terminator option-No-
Wake on CAN option-Yes-
Baud rate-250-kbps
J1939 compliant-Yes-
7.1.2. J1939 CAN Installation Connections
e CAN connection for the CM0504 should conform to the J1939 standard. e J1939 standard is a
robust automotive specication that is a good CAN installation guideline even when the J1939 CAN
protocol is not being used.
For a list of J1939 connection considerations, refer to the SAE J1939 specications available through the
Society for Automotive Engineers. SAE J1939-11 covers the physical aspects of the CAN bus including
cable type, connector type, and cable lengths.
Note: e standard variant of the CM0504 does not have a CAN termination resistor, which is based on
the assumption that the CAN bus is terminated in the harness.
e following lists the elements that are required for a J1939 CAN connection:
•CAN Cable: A shielded twisted-pair cable should be used when connecting multiple modules to
the CAN bus. e cable for the J1939 CAN bus has three wires: CAN High, CAN Low, and CAN
Shield (which connect to the corresponding CAN_HIGH, CAN_LOW, and CAN_SHIELD pins on the
connector). When a module does not have a CAN_SHIELD pin, the CAN Shield should be connected
to an available ground terminal attached to the negative battery. e CAN cable must have an
impedance of 120 .
26
CM0504 User Guide
Page 34
•e CAN cable is very susceptible to system noise; therefore, CAN shield must be connected as
CAN Network Backbone
follows:
a. Connect CAN Shield to the point of least electrical noise on the CAN bus.
b. Connect CAN Shield as close to the center of the CAN bus as possible.
c. Use the lowest impedance connection possible.
Note: Ground loops can damage electronic modules. e CAN Shield can only be grounded to one point
on the network. If grounded to multiple points, a ground loop may occur.
•CAN Connectors: Industry-approved CAN connectors are manufactured by ITT Cannon and
Deutsch, and come in either T or Y congurations.
•CAN Harness: e CAN harness is the main backbone cable that is used to connect the CAN network.
is cable cannot be longer than 40 meters and must have a 120 terminating resistor at each end.
e 120 terminating resistors eliminate bus reections and ensure proper idle-state voltage levels.
•CAN Stubs: e CAN stubs cannot be longer than 1 meter, and each stub should vary in length to
eliminate bus reections and ensure proper idle state voltage levels.
•Max Number of Modules in a System: e CAN bus can handle a maximum of 30 modules in a
system at one time.
e following shows a typical CAN connection using the SAE J1939 standard:
(less than 40 meters long)
120 ohm
Terminator
Variable length
Node
Node
Figure 7.1. J1939 CAN connection
Node
Node
CAN stub (<1m)
T connectors
Node
120 ohm
Terminator
27
CM0504 User Guide
Page 35
8. Installation
184
Because every system is dierent, it is not feasible to provide detailed installation instructions that will be
suitable for every assembly. is chapter therefore provides only high-level guidelines on installing the
CM0504.
e vehicle manufacturer is responsible for creating procedures for mounting the CM0504 in
a vehicle during production assembly.
8.1. Mechanical Requirements
Review the following mechanical requirements before selecting a mounting location for the CM0504:
•e CM0504 should be mounted vertically so moisture will drain away from it.
•e wire harness should have drip loops incorporated into the design to divert water away from the
CM0504.
•e harness should be shielded from harsh impact.
•e harness should connect easily to the connector and have adequate bend radius.
•e labels should be easy to read.
•e CM0504 should be in a location that is easily accessible for service.
8.2. Dimensions
e following shows the dimensions of the CM0504 in millimeters:
167
106
2X 6.5
141
42
Figure 8.1. CM0504 dimensions
28
CM0504 User Guide
Page 36
8.3. Selecting a Mounting Location
e CM0504 can be installed in the vehicle’s cab, engine compartment, or on the chassis. If used for a
marine application, ensure it is protected from excessive salt spray.
Before mounting the CM0504, ensure you review the following environmental and mechanical
requirements.
Do not install the CM0504 close to any signicant heat sources, such as a turbo, exhaust
manifold, etc. Also avoid installing the CM0504 near any drive-train component, such
as a transmission or engine block.
e CM0504 should be mounted with the connectors facing down, so that moisture drains away from it,
as shown in the following:
Figure 8.2. CM0504 mounting orientation
8.4. Mounting the CM0504 to a Vehicle
It is up to the original equipment manufacturer (OEM) to ensure the product is securely mounted to the
vehicle.
e following guidelines are related to physically attaching the CM0504 to a vehicle:
•Secure the CM0504 with bolts in all bolt holes using Hex Head 1/4”-20 or equivalent metric size (6
mm) bolts.
•e bolts should be tightened according to the fastener manufacturer’s tightening torque
specications
29
CM0504 User Guide
Page 37
8.5. Designing and Connecting the Vehicle Harness
e vehicle manufacturer is responsible for designing a vehicle harness that mates with the CM0504
connector(s).
e vehicle harness design depends on the following:
•How the CM0504’s inputs, outputs, communication, and power pins are congured.
•Other components on the vehicle and their physical locations.
•e routing of the harness.
Details on recommended wire diameters for use with the product connector are covered in the
connector manufacturer’s datasheet. Wire diameters used should be sucient for the expect module
current.
Once the vehicle harness is designed, it can be connected to the CM0504 simply by clicking the mating
connectors into the connector ports on the CM0504.
30
CM0504 User Guide
Page 38
9. Environmental Protection
e CM0504 is manufactured and tested to meet stringent industry standards as shown below.
If any additional information is required, please contact your Parker Vansco representative for more
details.
9.1. General
Operating Temperature –40°C to +85°C
Storage Temperature –40°C to +85°C
9.2. Environment
Humidity (soak) ANSI/ASAE EP455 DEC 1990 (R2008) section 5.13.2
Humidity (cyclic)ANSI/ASAE EP455 DEC 1990 (R2008) section 5.13.1
Dust/Water Ingress
Protection
Salt Spray MIL-STD-202G Method 101E condition B
Shock ANSI/ASAE EP455 Dec 1990 (R2008) Section 5.14.1
Random Vibration BS EN7691:1994 section 6.6.1 severity level 3
e purpose of this section is to provide examples of how the CM0504 can be used for dierent purposes.
e following examples (used for illustrative purposes only) are covered in this section:
•Implementing safety interlocks
•Controlling indicator lights
•Controlling a proportional valve
•Controlling motor speed
•Using one analog input as two digital inputs
•Connecting sensors
10.1. Implementing Safety Interlocks
Safety is paramount when creating controls for a vehicle.
One safety feature that can be implemented with the CM0504 is to ensure the vehicle doesn’t move when
it is not being used, and no one is sitting in the operator’s seat.
To prevent the vehicle from moving when no one is sitting in the operator seat:
1. Place a seat switch interlock on the operator seat and connect the switch to a
digital input.
2. Write application code for the digital input so that it shuts down critical vehicle
functions when the switch is open (when no one is sitting in the seat).
Note: e example above may cause unwanted shutdowns if the operator moves around while
controlling the vehicle. To prevent this, use software ltering that will prevent the vehicle from shutting
down unless the switch is open for more than a dened period of time.
e following diagram shows a typical seat switch interlock connection:
Internal to product
Battery Voltage
Driver Present Switch
Digital Input
Figure 10.1. Seat switch interlock connection
32
CM0504 User Guide
Page 40
10.2. Controlling Indicator Lights
C
Multiple CM0504 can be used together in a system to control a vehicle’s indicator lights. For example, you
could connect three CM0504s, communicating over the CAN bus, as follows.:
•Connect one CM0504 to the rear indicator lights.
•Connect one CM0504 to the front indicator lights.
•Connect one CM0504 to the turn signal and hazard switches.
e following shows how to connect three CM0504s together in a system to control indicator lights:
Rear
Rear Right Signal Light
Rear Left Signal Light
Cabin
VBATVBAT
3.3k3.3k
Right Turn Signal Switch
AN
VBAT
3.3k
Left Turn Signal Switch
Hazard Signal Switch
Front
Front Right Signal Light
Front Left Signal Light
Figure 10.2. Indicator light connections
10.3. Controlling a Proportional Valve
e CM0504 can be used to control a proportional hydraulic valve through a high-side output with PWM
capability, and a low-side output with current sense.
Note: e CM0504 has Proportional-Integral-Dierential (PID) capabilities that make it possible to
control devices like proportional valves through software. Refer to the appropriate software manual, or
contact your Parker Vansco Account Representative for more details about software. is section only
provides hardware connection information.
When making the connection, it is highly recommended to use the high-side and low-side outputs in
pairs to avoid potential problems.
CM0504 User Guide
33
Page 41
•e high-side output would drive power to the valve coil and adjust the duty cycle of a PWM signal.
•e low-side output would be used as a return path to ground for the valve coil, and provides
feedback on the amount of current owing through the valve coil.
e application code should be written so that the PWM duty cycle for the output is adjusted to achieve a
target current through the valve coil.
•If current feedback is lower than target, the PWM duty cycle should increase to boost average current
through the valve coil.
•If the current feedback is higher than target, the PWM duty cycle should decrease to reduce average
current through the valve coil.
e following shows how to connect a high-side and low-side output to control a proportional hydraulic
valve:
Internal to product
High-Side Output
(PWM)
Valve
Coil
Low-Side Output
with current sense
Figure 10.3. Connection for controlling a proportional valve
10.4. Controlling Motor Speed
e CM0504 can be used to control the DC motor speed of motors that provide a tachometer output.
Note: e CM0504 has Proportional Integral Dierential (PID) capabilities that make it possible to
control devices like proportional valves through software. Refer to the appropriate software manual, or
contact your Parker Vansco Account Representative for more details about software. is section only
provides hardware connection information.
To do this, you would use a high-side output with PWM capabilities to control the speed of the motor,
and a DC-coupled frequency input to monitor the output from the motor.
e application code should be written so that the PWM duty cycle for the high-side output is adjusted to
achieve a target speed (frequency) for the motor.
•If the frequency feedback is lower than target, the PWM duty cycle should increase to boost the
average current through the motor to speed it up.
•If the frequency feedback is higher than target, the PWM duty cycle should decrease to reduce
average current through the motor to slow it down.
34
CM0504 User Guide
Page 42
e following shows how to connect the CM0504 to control the speed of a motor:
Internal to product
High-Side Output
(PWM)
Battery Voltage
Frequency Input
Figure 10.4. Connection for controlling motor speed
10.5. Connecting Various Sensors
Motor
ere are many types of sensors that can be connected to the CM0504, as follows:
•Open collector sensors
•Variable resistance sensors
•Variable reluctance sensors
•Switch sensors
•Voltage sensors
•CMOS sensors
•Potentiometer (ratiometric) sensors
Note 1: To optimize the reading accuracy for sensors, dedicate one of the main ground pins (called GND)
as a low-current ground return for all sensors on the vehicle.
Note 2: When connecting sensors to the CM0504, use the sensor’s specication to ensure that the
CM0504 is congured correctly for the sensor.
10.5.1. Open Collector
Open collector sensors are compatible with each type of input on the CM0504.
Open collector sensors are typically used in applications that require digital or frequency measurements.
ey work by pulling voltage down to ground or up to power when activated, and are basically a switch
that turns on and o.
Note: Open collector sensors need a pull-up or pull-down resistor to bias the state of the sensor when the
sensor is not activated. Pull-up and pull-down resistors are internal to the CM0504.
35
CM0504 User Guide
Page 43
e following shows a typical NPN open collector sensor connection:
Internal to product
Digital or frequency Input
Open
collector
Figure 10.5. Open collector sensor connection
e following shows a typical PNP open collector (also called open emitter) sensor connection:
Internal to product
Digital or frequency Input
Figure 10.6. Open collector active high connection
10.5.2. Variable Resistance
Variable resistance sensors change impedance to represent it’s measured value, and are compatible with
analog inputs.
Variable resistance sensors are typically used in thermal and pressure applications. ey work by
changing the voltage reading on the sensor according to changes in pressure or temperature in the
application.
e CM0504 cannot measure resistance directly.
Open
collector
36
CM0504 User Guide
Page 44
To make the CM0504 measure resistance accurately, do the following:
•Include a precision pull-up resistor between the sensor and the sensor power output (called
SENSOR_SUPPLY).
•Ensure the value of the precision resistor allows the maximum possible resolution for the sensor’s
input.
•Dimension the precision resistor to get the maximum voltage range from the sensor.
Note: Variable resistance sensor accuracy may suer at the extremes of the sensor’s range. A tolerance
analysis should be performed to ensure measurement accuracy is acceptable for your application.
e following shows a typical variable resistance sensor connection:
Variable reluctance sensors are typically used in frequency measurement applications, and are
compatible with AC-coupled frequency inputs.
Variable reluctance sensors do not require power (the power is induced), and they create frequency by
out-putting a sine wave type signal. ey work by using an increase or decrease in a magnetic eld to
detect the proximity of a part or device.
37
CM0504 User Guide
Page 45
e following shows a typical variable reluctance connection:
A switch is a type of sensor that uses mechanical contacts in one of two states: open or closed. Sensor
switches are used to turn sensors on and o, and can be wired directly to digital inputs.
Active-low sensor switches are common. To use active-low switches, the internal pull-up resistor on the
input that the sensor is wired to must be enabled.
Use of active-low switches is not recommended. A broken wire on this type of switch, if it
makes contact with the chassis, will activate the function.
Active-high sensor switches are another common type which are generally safer. To use active-high
switches, the internal pull-down resistor for the input that the sensor is wired to must be enabled.
e following shows a typical sensor switch connection:
Internal to product
Battery voltage
Switch
Digital Input
Figure 10.9. Switch sensor connection
38
CM0504 User Guide
Page 46
10.5.5. Voltage
Voltage type sensors work by driving an analog voltage signal to report the sensor’s measured value.
Voltage sensors are compatible with analog inputs, and are typically used in applications that require
variable voltage measurements.
Note: Ensure you congure the analog input voltage (gain and attenuation factors) so the input’s voltage
is close to, but higher than, the maximum output voltage of the sensor.
e following shows a typical voltage sensor connection:
Internal to product
Voltage
Sensor
Analog Input
Figure 10.10. Figure 27: Voltage sensor connection
10.5.6. CMOS
A sensor with a CMOS-type output drives a high and low signal, and is typically used in digital and
frequency applications, and therefore, CMOS sensors can be wired directly to digital and frequency
inputs.
39
CM0504 User Guide
Page 47
e following shows a typical CMOS sensor connection:
Internal to product
Digital or Frequency Input
Figure 10.11. CMOS sensor connection
10.5.7. Potentiometer (Ratiometric)
CMOS
Potentiometers and other ratiometric type sensors can be wired directly to analog inputs.
Potentiometers are resistive devices that use a wiper arm to create a voltage divider. Changes to resistive
measurements happen as the wiper arm moves along a resistive element.
When connecting potentiometer sensors, it is important to do the following:
•Connect one end of the sensor to the SENSOR_SUPPLY pin, and the other end to a GND pin on the
CM0504.
•Connect the sensor signal to an analog input.
e following shows a typical potentiometer sensor connection:
10.6. Using one Analog Input as Two Digital Inputs
e CM0504 allows you to use one analog input as two digital inputs, which is useful in reducing harness
lead or if you are running out of digital inputs in your system.
To do this, you would connect the analog input to a single pole, double throw (SPDT) switch.
Note: You will need to write your application logic to act according to the voltage value readings
provided by the analog input. Refer to the appropriate help le, or contact your Parker Vansco Account
Representative for more information.
When making the connection, ensure there is a voltage dierence between the two pins on the SPDT
switch. is can be done by
•enabling the internal pull-up resistor on the analog input (done through software)
•adding a resistor to one of the pins on the SPDT switch.
e following shows how to connect an analog input to a SPDT switch:
Internal to product
VBAT
3.3 kohm
Analog Input
Figure 10.13. Connecting an analog input to an SPDT switch
3.3 kohm
41
CM0504 User Guide
Page 49
11. Software
e CM0504 software is responsible for providing general mechanisms to control the outputs (including
detecting fault conditions), monitor the inputs, and transmit/receive J1939/CAN messages. e software
on another level uses these mechanisms to implement some sort of application program. e default
application for this product is to perform as a slave controller, which receives CAN messages from a
master controller telling it how to drive the outputs, and transmits CAN messages reporting the state of
inputs and fault status of outputs.
is document is not intended to explain the CM0504 internal code in detail, but rather to document
how to congure and use the CM0504 with its PC conguration tool.
11.1. CM0504 diagnostic tool
ere are a few general things to point out about the tool:
•the GUI is basic — the main menu pops up when you right-click on the tool window
•the tool follows the convention that blue labels/widgets (in this document and in the GUI) denote
congurable properties — “undened” is a valid conguration value for some congurable
properties. Undened values are shown as blank/empty boxes. You can right-click on associated
widgets to pop up a menu allowing you to change a property’s value to undened. By denition,
operational values cannot be undened.
•green labels/widgets (in this document) denote one-time congurable properties that generally
were congured at the factory
•gray labels/widgets denote properties that cannot be changed by the user
•GUI appearance/behaviour may change depending on user selections, and in some cases depending
on the values of some properties. For example, some widgets are hidden or disabled when
operational values are not selected. For channels that are ganged (or part of an H-bridge), only
widgets associated with the gang “leader” (or master “leg” of the H-bridge) are enabled.
•the diagnostic protocol used between the tool and the CM0504 is robust, however, it is possible to
confuse the tool so that it won’t talk to the CM0504. is is especially true if you recongure the
CM0504’s J1939 identity, or if you unplug one CM0504 and plug in another
•there may be multiple modules on the CAN bus, some which are not CM0504’s — generally, the tool
interacts with only one CM0504 at a time (typically the rst one it happens to see, but the user can
choose another)
•for various reasons, a CM0504 may be plugged in to the bus but holding itself silent, so the tool
is unaware of its presence. Similarly, the module may be talking on the bus but the tool does not
recognize it as a CM0504 (because it has been incorrectly congured). e user may need to take
some action to “wakeup” or “unlock” the CM0504, or force the tool to recognize it as a CM0504.
•the tool attempts to be backwards compatible with older versions of CM0504, but there may be
scenarios where an older CM0504 didn’t support a feature, which is not handled well by the tool
•the CM0504 supports selectable CAN bit rates (100K, 250K, 500K & 1M), but PC tool currently only
supports 250K
42
CM0504 User Guide
Page 50
Note: As of the date of this publication, hardware input numbers and software input numbers
are dierent. Keep this in mind as you use the software tool.
In user mode, the tool is a single/main window containing the following elements:
•a drop-down list box (in the upper left corner of the window) showing the SA (Source Address) of the
currently connected CM0504 — if you drop down the list, you can see what other CM0504’s are (or
were) on the bus, and select another one to talk with.
Figure 11.1. Source address claim
43
CM0504 User Guide
Page 51
•radio buttons to select between Operational Values and Cong Settings, i.e. regarding what kind of
values are displayed on the main window, or which are shown in the input/output properties dialog
boxes. When the cong settings option is selected, properties that are not congurable are shown as
blank values.
Figure 11.2. Op values and cong settings
•the Install S/W button — the user will be prompted to select a .pkg le that contains the S/W he
wishes to install. If there are multiple CM0504’s on the bus, the user can select which ones to get
the install. (Currently, the tool installs all components from the pkg — the planned behaviour was
to not reinstall the same version of a component, and to ask the user whether an older version of a
component should be installed over the existing newer version.). A dialog box pops up showing the
progress as each component is installed.
44
CM0504 User Guide
Page 52
Figure 11.3. Install S/W button
Figure 11.4. Software le dialog box
45
CM0504 User Guide
Page 53
•the Outputs group shows the current/congured value of output properties (for each of the 4
channels):
Figure 11.5. Outputs group
•Sync Option radio buttons show/control the syncOption property, i.e. which output channels are
ganged together — if undened, no button is selected. Note - this property can only be changed from
the main window (all other properties, except PWMduty, can only be changed via a dialog box).
•OUT1..OUT4 checkboxes are simply a convenience to allow the user to easily turn outputs on/o, i.e.
toggle PWMduty between 0 and the last user-entered value — they are visible only for operational
values.
•Output Type shows the driveConguration property
•Frequency shows the PWMfreq property
•Duty Cycle shows the PWMduty and corresponding PWMrange properties — when the output is o,
the corresponding OUTi checkbox is unchecked, and the duty cycle shown is the last one entered by
the user
•Status shows various conditions derived from the OUTstatus and OUTfaultSet properties —
additional description t.b.d.
•CFBK shows the CFBK property — note that all feedback values (AFBK and DFBK, too) correspond
to samples taken at the midpoint of a PWM pulse a average current is NOT reported
•CFBK (raw) shows the CFBKinternal property (i.e. voltage level at ADC chip)
•AFBK shows the AFBK property
•DFBK shows the DFBK property
46
CM0504 User Guide
Page 54
•Properties buttons — when pressed, call up the Cong OUTi dialog box allowing you to enter values
for changeable output properties for one channel (see below)
Figure 11.6. Output properties dialog box
•the Inputs group shows the current/congured value of input properties (for each channel) — what
is shown for values varies depending on Input Type:
Figure 11.7. Inputs group
47
CM0504 User Guide
Page 55
•Input Type shows the inputType property of the CM0504’s four general purpose inputs (type of input
is xed for the other input channels), and determines what form of input value(s) are shown below.
Note that columns labeled IN1 to IN4 correspond to the CM0504’s four general purpose inputs, IN5
corresponds to what is considered its 5th input which is also a H/W wakeup signal, IN6 corresponds
to the input used with a keyed resistor as the module’s harness address, and the last 2 columns
correspond to external and internal power supply voltages. Only the four general purpose inputs are
congurable, with input type RIN supported in H/W for channels IN3 & IN4 only.
•depending on input type, Value shows properties DIN, AIN, FINfreq, FINduty, FINcount, or RIN
•what Raw Value shows depends on input type — for AIN, it shows AINinternal; for RIN it shows
AINraw; for all else it shows nothing, except for IN5 (xed as DIN) it shows FINcount
•Raw Ref shows the RINref property
•column IN6 has an additional unlabeled value — it shows the ADDR property
•Change buttons — when pressed, call up the Cong INi dialog box allowing you to enter values for
changeable input properties for one channel (see below)
d
Figure 11.8. Input properties dialog box
•when you right-click on the main window (other than on the Sync Option radio buttons), a menu
pops up which contains the following items:
Figure 11.9. Right click selection window
48
CM0504 User Guide
Page 56
•Kernel status… — calls up a dialog box that shows identication, version and build/install date
properties of all S/W components installed (i.e. kernel must be installed, but user application
and CDB may be missing). It also shows the values of properties: identityFrozen, CANstatus,
RESETstatus, EEPROMstatus, panicSet and userPanicSet.
Figure 11.10. Kernel status
•Module identity… — calls up the Module Identity dialog box (see below) that shows all read-only
(one-time settable) properties that collectively dene the CM0504’s physical identity. It also allows
you to congure the CM0504’s J1939 NAME and SA (base and OEM).
Figure 11.11. Module identity
49
CM0504 User Guide
Page 57
•Module settings… — calls up the Module Settings dialog box (see below) that allows you to view/
change kernel properties.
Figure 11.12. Module settings
•Application settings… — calls up a dialog box that allows you to view/change user application
parameters (or UDP’s), if any.
Figure 11.13. Application settings
•Load settings from pkg… — normally pkg les contain a component that consists of a table of factory
default values for some or all congurable properties, including UDP’s. When this menu command
is invoked, the PC tool prompts for a pkg le, and applies the settings it nds in this table.
•Save settings to pkg… — creates a pkg with a single component that contains a table of setting values
for some or all congurable properties, including UDP’s. Has options for operational vs cong, for
omitting properties with undened values, and for selecting categories of properties to include (i.e.
kernel, module, application, input & output).
50
CM0504 User Guide
Page 58
•LED — has a sub-menu of colors: O, Blue, Green, Cyan, Red, Magenta, Yellow, and White. When
you select one of these, the PC tool sets the LED output property to that value.
Figure 11.14. LED sub-menu
•Simulate Master… — puts the PC tool into a special mode where is plays the role of a very primitive
“master” controller to a CM0504 that is running the slave controller application. While in this
mode, the PC tool displays a dialog box that shows the PWM frequency and duty cycle the master is
requesting for each channel (the user can change these) and the input state and output fault status
being reported by the slave. It also shows the CAN messages being sent and received.
Figure 11.15. Simulate master mode
51
CM0504 User Guide
Page 59
Reset µP — this causes the PC tool to send a special diagnostic protocol command telling the CM0504 to
reset itself.
Figure 11.16. Reset uP
•is is a dierent CM0504 — sometimes the PC tool gets confused and seems to stop talking to the
CM0504, especially after its J1939 SA is changed. is tells the PC tool to start over and try to make
“rst contact” with a CM0504.
Figure 11.17. Tell PC tool to make rst contact with a CM0504
52
CM0504 User Guide
Page 60
•Restart CM0504 in passive mode — this causes the PC tool to send a special diagnostic protocol
command telling the CM0504 user application to go into passive mode. In passive mode, the user
application essentially stops running, other than allowing you to get/set its UDP’s. You might want
to do this if you are trying to use the PC tool to manually control I/O’s, and the user application is
ghting you, or if the user application is hammering the bus with a high CAN message rate (i.e. due
to an incorrect conguration), and you are having trouble trying to recongure it.
Figure 11.18. Put CM0504 in passive mode
53
CM0504 User Guide
Page 61
•Temporarily unlock comatose CM0504 — there are various situations where the CM0504 deliberately
holds itself o the CAN bus. One of the ways this can occur is if the CM0504 is a “asleep” waiting
to Rx a certain PGN to “wake up”, and you don’t know what the value of its keepAlivePGN property
is. is menu item causes the PC tool to send a special CAN message that tells the CM0504 to stop
holding o and announce itself.
Figure 11.19. Unlock CM0504 that is not communicating
e following tables give more details about the Output, Input, and Module dialog boxes referenced
above.
54
CM0504 User Guide
Page 62
e Cong OUTi dialog box contains the following widgets associated with underlying output properties:
WidgetPropertyNotes
Output TypedriveConfigurationoptions permitted are channel-specic &
and may depend on how other channels are
congured (i.e. as H-bridge) or ganged via
syncOption
FrequencyPWMfreqsubject to freqLimitHS/LS
Duty CyclePWMdutythis is NOT expressed as a percent, rather it is
0 to PWMrange
for H-bridge, a separate unlabeled widget is
shown, which allows you to enter a signed duty
−PWMrange to PWMrange
PWM RangePWMrangelimit 1000
Freq Limit
HS
LS
Output FilteroutputFilter3 widgets correspond to this property’s 3
Flyback
Option
DeadtimedeadTime2 widgets correspond to this property’s 2
CFBK OffsetCFBKoptionthere are 2 widgets for this item. The list box
H-bridge
change dir
options
Current LimitcurrentLimitthis property pertains to all output channels,
Shutdown
after . . .
consecutive
trips
freqLimitHS
freqLimitLS
flybackOption
flybackExt
HbridgeChangeDirthis is shown only if the channel is congured
ocFilterLimit
disabled
subelds: dt, Nr & Nf
this is a list box, with 2 additional widgets, min
& max, shown when option “yback off after
delay” is selected, plus widgets: off level(s) &
complementary FET used during PWM
subelds: RE & FE
allows you to choose whether CFBK calibration
is automatic or manual. When manual is
selected, the number box is enabled allowing
you to enter an offset value in mA.
as an H-bridge and it is the master leg for the
H-bridge. There are 3 widgets corresponding
to this property’s 3 subelds: ms delay, skip
delay if already stopped, and levels during
delay
but it can only be changed via OUT1
e Cong INi dialog box contains the following widgets associated with underlying output properties:
WidgetPropertyNotes
Input TypeinputTypeoptions permitted are channel-specic
Pulluppullup
55
CM0504 User Guide
Page 63
e Module Identity dialog box contains the following widgets associated with underlying output
properties:
WidgetPropertyNotes
Unique IDuniqueID
Parker part #ParkerPartNo
OEM part #OEMpartNo
S/N - Final
S/N - PCBA
SAP # - Final
SAP # - PCBA
variant # - Final
variant # - PCBA
manufacture date - Final
manufacture date - PCBA
stuffing optionsboardOptionsshown in hex. Currently not used.
(see notes for this row)J1939optionthere are 4 widgets for this item:
J1939 NAMEbaseNAMEadditional widgets show the J1939
OEM NAMEOEM_NAMEsimilar to above
J1939 SAbaseSA
OEM SAOEM_SAwhen OEM J1939 NAME & SA is
serialNo
PCBserialNo
SAP_No
PCB_SAP_No
variantNo
PCBvariantNo
mfgDate
PCBmfgDate
baseSA1_8
J1939 NAME & SA qualified by ADDR
simply add ADDR to base SA
use OEM J1939 NAME & SA
qualified by ADDR
allowing you to select whether or not
NAME & SA are qualied by ADDR (and
if so, which eld of NAME that ADDR
is added to), to select whether to use
OEM NAME & SA instead, and whether
you wish to enter specic SA’s for each
possible ADDR value, or to simply add
ADDR to the base SA
NAME broken out into individual elds
— you can only set the NAME through
these widgets, but the nal NAME is
also shown as 8 hex bytes
used when not qualied by ADDR,
or when ADDR = 0 corresponding to
ADDR 1..7 and F
selected, use this instead of baseSA,
but continue to use baseSA1_8 when
qualied by ADDR
56
CM0504 User Guide
Page 64
e Module Settings dialog box contains the following elements:
WidgetPropertyNotes
System VoltagenominalVss
CAN speedCANspeedcurrently PC tool only supports
250K bps
Report faults by
DM1
Vbat fault rangesVsysBoundsranges specied relative to
User Panic SPNuserPanicSPNoffsetnumeric value is added to
Kernel Panic SPNkernelPanicSPNoffset
VEP1 Tx periodVEP1txPeriod
Keep-alive SAkeepAliveSAshown in hex. Currently not used.
the following appear only if CM0504 H/W supports sleep mode
Sleep/WakesleepOptionsub-items shown depend on
Bus idle timeoutbusIdleTimeoutsimilar to above
Keep-alive PGNkeepAlivePGN
Keep-alive timeoutkeepAliveTimeout
txDM1optionsub-items shown only when DM1
reporting is enabled
nominalVsys by nibbles of a hex
value
0x7E000 to produce proprietary
SPN #
option selected
11.2. Default J1939 messages
Once congured, the CM0504 behaves as a slave I/O device that simply turns on/o outputs and reports
input and output status via J1939 messages. e following sections describe the messages used by the
default CM0504 conguration.
11.2.1. Configuration summary
e default conguration of the CM0504 has all inputs congured as analog inputs and all outputs
congured as independent high side outputs.
57
CM0504 User Guide
Page 65
11.2.2. J1939 address and identity
e J1939 address and part of the J1939 NAME that the CM0504 uses varies depending on the module
address (determined by the IdTag connected between ADDR_H and ADDR_L).
e CM0504 uses destination specic (PDU1 format) J1939 messages. is means that for messages
received by the CM0504 both the destination address must match it’s own address and the source
address must be the master module’s address. Also, messages that are transmitted by the CM0504 are
sent to the master module’s address. is master module address is 33 (0x21).
11.2.4. Input status message
Direction: Transmitted by the CM0504
Transmission repetition rate: 100 ms
Data length: 8 bytes
Data page: 0
Priority: 6
Parameter Group Number (PGN) 2048 (0x800)
Bytes 1 to 2: Input 1 analog value [LSB rst, 1 mV/bit, offset = 0]
Bytes 3 to 4: Input 2 analog value [LSB rst, 1 mV/bit, offset = 0]
Bytes 5 to 6: Input 3 analog value [LSB rst, 1 mV/bit, offset = 0]
Bytes 7 to 8: Input 4 analog value [LSB rst, 1 mV/bit, offset = 0]
58
CM0504 User Guide
Page 66
11.2.5. Output duty cycle control message
Direction: Received by the CM0504
Transmission repetition rate: 1000 ms
Data length: 8 bytes
Data page: 0
Priority: 6
Parameter Group Number (PGN) 2048 (0x800)
Bytes 1 to 2: Output 1 duty cycle command [LSB rst, 0.004%/bit, offset = -125%]
Bytes 3 to 4: Output 2 duty cycle command [LSB rst, 0.004%/bit, offset = -125%]
Bytes 5 to 6: Output 3 duty cycle command [LSB rst, 0.004%/bit, offset = -125%]
Bytes 7 to 8: Output 4 duty cycle command [LSB rst, 0.004%/bit, offset = -125%]
11.2.6. Output frequency control message
Direction: Received by the CM0504
Transmission repetition rate: 1000 ms
Data length: 8 bytes
Data page: 0
Priority: 6
Parameter Group Number (PGN) 39936 (0x9C00)
Byte 1: Output 1 frequency command [50 Hz/bit, offset =0]
Byte 2: Output 2 frequency command [50 Hz/bit, offset =0]
Byte 3: Output 3 frequency command [50 Hz/bit, offset =0]
Byte 4: Output 4 frequency command [50 Hz/bit, offset =0]
Bytes 5 to 8: not used
11.2.7. Output status message
Direction: Transmitted by the CM0504
Transmission repetition rate: 1000 ms
Data length: 8 bytes
Data page: 0
Priority: 6
Parameter Group Number (PGN) 40192 (0x9D00)
Byte 1: Output 1 state (see table)
Byte 2: Output 2 state (see table)
Byte 3: Output 3 state (see table)
Byte 4: Output 4 state (see table)
Byte 5: Output 1 current [0.2 A/bit, offset = -25 A]
Byte 6: Output 2 current [0.2 A/bit, offset = -25 A]
Byte 7: Output 3 current [0.2 A/bit, offset = -25 A]
Byte 8: Output 4 current [0.2 A/bit, offset = -25 A]
59
CM0504 User Guide
Page 67
Output state encoding table:
ValueMeaning
0OFF (no faults detected)
1ON (no faults detected)
2shorted to opposite polarity (e.g. high side output shorted to ground)
3Current is greater than congured limit (27.5 A)
4Open load detected
5Shorted to driven polarity (e.g. high side output shorted to battery)
6No output supply voltage
7Maybe short (short circuit condition has been detected but the output on time
is too short to tell for sure)
8Output supply voltage is higher than congured limit
9Output supply voltage is lower than congured limit