What audio interface, driver mode and buffer size?
Is that interface set as both Playback and Record Timing Master in Preferences > Audio > Driver Settings?
Are any other clock sources or A/D interfaces involved in the hardware setup?
Are you monitoring the Addictive Drums output from SONAR while performing or direct-monitoring the TD-30 module?
How late is the MIDI against the timeline on average in milliseconds before you correct it?
Do you by any chance have a non-zero Timing Offset set under Sync and Caching in Audio preferences?