now at i use o1 31 PID to get Distance travelled but this give only Distance traveled since codes cleared-up not total travelled KM
Unfortunately OBD2 does not specify any standard PIDs to get this information. That said, you might be able to gather this via vendor-specific extensions or by dropping down to a lower level (using direct CAN commands), but this is not portable between vehicles and thus discouraged.