The train's permitted speed is calculated using the trains braking curve, which can vary by train type, and the XG location, which is the distance from the start of the 100 meters zone that is used to address the train.