Example for the motors:
Add to the header file from your server (server_name.h):
Tango::DevState dev_state();
Add to the server file (server_name.cpp):
Tango::DevState OmsVme58::dev_state(){
    check_move();
    Tango::Device_3Impl::dev_state();
    return device_state;
}