To facilitate connecting to an IX3212 PDM I/O module we have created a library and example application.
This utility provides the same functionality as found in the Powervision IX3212 application for those who are familiar with that IDE.
The library takes care of all the CAN communications between the IX3212 and the uControl module using the Low Level CAN CAA library.
Library Features:
- CAN Communications automatically handled
- Configuration Commands with enumerated settings
- Output Control Commands - PWM and Hbridge
- Digital Input Status
- Analog Input Status
- Output Diagnostic Bits
- Misc Status - Feedback msg, Software Version, Batt Volts
Implementation
To implement this open the example project then install the library included along with the CAA Low Level CAN Library (more on this).
- Set the NetworkDriver parameter pdmSA to 30, 31, 31, or 33 to match PDM SA
- Set the desired output configuration settings, the simplified option is show however advanced options are available by calling pdm.Configure_Output_Advanced and adding all the settings available shown in the inline help.
- To control the outputs set a PWM value of 0 - 100% in the drive_value# variables.
- For H-Bridge control use the Set Hbridge output function and assign the direction and PWM value. Always command just the odd numbered channel in each H-Bridge pair.
- pdm.Set_HBridge_Output(channel_number:=1, direction.FORWARD, value:=drive_value1);
- Test the outputs using the visualization control panel.
Comments
0 comments
Please sign in to leave a comment.