The CAN data logger is a valuable tool that allows you to gather data of all the activity on the CAN bus. This can be used in Lieu of CANCapture and an E-Com cable. For example if you are uncertain of all the devices on the bus and what messages are being broadcast during your development cycle you can simply load this program, log the data. then analyze.
This example demonstrates how to implement the CAN data logging features available in Powervision on the color display platforms. The example was created for a PV780 however it is easily ported to any other color display hardware.
The application only allows data logging on one CAN port at a time and saves the data to a single file. You have to set which CAN port you want to log data from. The example provided allows you to select which port you want to log data from then when the logger is stopped it copies the file to the USB flash drive and renames it to either CAN1log or CAN2log depending on which CAN port is selected.
Extra text information is provided on the screen for developer education, this may be removed if sending it to a customer to make the HMI cleaner to use.
- 1) Plug in USB Flash drive into display
- 2) Select CAN 1 page
- 3) Start CAN log
- 4) Stop CAN log when enough data is logged. File size is limited to the MAX size shown on the display.
- 5) Output to USB - wait for status indicator to turn green and show complete. This will take a minute so be patient.
- 6) Clear the log file
- 7) Go to CAN 2 page and repeat these steps if needed
More detailed information is available in the notes section of the configuration.