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. When the logger is stopped and the "Output to USB" button is pressed it copies the file to the USB flash drive, reads it back, renames it to either CAN1log or CAN2log depending on which CAN port is selected then copies that file onto the USB Flash drive. This is all accomplished using a script routine.
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.
Instructions:
- Plug in USB Flash drive into display
- Select CAN 1 page
- Start CAN log
- Stop CAN log when enough data is logged. File size is limited to the MAX size shown on the display.
- Output to USB - wait for status indicator to turn green and show complete. This will take a minute so be patient.
- Clear the log file
- Go to CAN 2 page and repeat these steps if needed
More detailed information is available in the notes section of the configuration.
Comments
0 comments
Article is closed for comments.