I don't know for sure what your setup looks like, but this tech note might help. It includes images of the PowerFlex setup and some programming examples.
The 300 series are compatible with TIA Portal but check the compatibility list, I know for sure that the 319 2PN/DP IS compatible however most of the older ones are not.