object.get_device_position
Gets the current position level of a device machine.
This function returns number. Calling this function without storing its return value in a variable is an error.
Example
global.number[0] = current_object.get_device_position()