forked from epics_driver_modules/motorBase
Closer cast.
This commit is contained in:
@@ -3,9 +3,9 @@ FILENAME... drvIM483PL.cc
|
||||
USAGE... Motor record driver level support for Intelligent Motion
|
||||
Systems, Inc. IM483(I/IE).
|
||||
|
||||
Version: $Revision: 1.16 $
|
||||
Modified By: $Author: rivers $
|
||||
Last Modified: $Date: 2005-12-08 00:08:40 $
|
||||
Version: $Revision: 1.17 $
|
||||
Modified By: $Author: sluiter $
|
||||
Last Modified: $Date: 2006-01-31 22:09:15 $
|
||||
*/
|
||||
|
||||
/*****************************************************************
|
||||
@@ -341,7 +341,7 @@ static int set_status(int card, int signal)
|
||||
send_mess(card, " z 0", IM483PL_axis[signal]);
|
||||
recv_mess(card, buff, 1);
|
||||
motorData = atof(&buff[5]);
|
||||
motor_info->encoder_position = (int) motorData;
|
||||
motor_info->encoder_position = (epicsInt32) motorData;
|
||||
}
|
||||
|
||||
status.Bits.RA_PROBLEM = 0;
|
||||
|
||||
@@ -3,9 +3,9 @@ FILENAME... drvIM483SM.cc
|
||||
USAGE... Motor record driver level support for Intelligent Motion
|
||||
Systems, Inc. IM483(I/IE).
|
||||
|
||||
Version: $Revision: 1.17 $
|
||||
Modified By: $Author: rivers $
|
||||
Last Modified: $Date: 2005-12-08 00:08:40 $
|
||||
Version: $Revision: 1.18 $
|
||||
Modified By: $Author: sluiter $
|
||||
Last Modified: $Date: 2006-01-31 22:09:15 $
|
||||
*/
|
||||
|
||||
/*****************************************************************
|
||||
@@ -338,7 +338,7 @@ static int set_status(int card, int signal)
|
||||
send_mess(card, "z 0", (char) NULL);
|
||||
recv_mess(card, buff, 1);
|
||||
motorData = atof(&buff[5]);
|
||||
motor_info->encoder_position = (int) motorData;
|
||||
motor_info->encoder_position = (epicsInt32) motorData;
|
||||
}
|
||||
|
||||
status.Bits.RA_PROBLEM = 0;
|
||||
|
||||
@@ -3,9 +3,9 @@ FILENAME... drvMDrive.cc
|
||||
USAGE... Motor record driver level support for Intelligent Motion
|
||||
Systems, Inc. MDrive series; M17, M23, M34.
|
||||
|
||||
Version: $Revision: 1.20 $
|
||||
Modified By: $Author: rivers $
|
||||
Last Modified: $Date: 2005-12-08 00:08:40 $
|
||||
Version: $Revision: 1.21 $
|
||||
Modified By: $Author: sluiter $
|
||||
Last Modified: $Date: 2006-01-31 22:09:14 $
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -359,7 +359,7 @@ static int set_status(int card, int signal)
|
||||
send_mess(card, "PR C2", MDrive_axis[signal]);
|
||||
recv_mess(card, buff, 1);
|
||||
motorData = atof(buff);
|
||||
motor_info->encoder_position = (int) motorData;
|
||||
motor_info->encoder_position = (epicsInt32) motorData;
|
||||
}
|
||||
|
||||
status.Bits.RA_PROBLEM = 0;
|
||||
|
||||
@@ -3,9 +3,9 @@ FILENAME... drvPIC844.cc
|
||||
USAGE... Motor record driver level support for Physik Instrumente (PI)
|
||||
GmbH & Co. C-844 motor controller.
|
||||
|
||||
Version: $Revision: 1.14 $
|
||||
Modified By: $Author: rivers $
|
||||
Last Modified: $Date: 2005-12-08 00:16:25 $
|
||||
Version: $Revision: 1.15 $
|
||||
Modified By: $Author: sluiter $
|
||||
Last Modified: $Date: 2006-01-31 22:10:04 $
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -367,7 +367,7 @@ static int set_status(int card, int signal)
|
||||
send_mess(card, "AXIS:POS?", (char) NULL);
|
||||
recv_mess(card, buff, 1);
|
||||
motorData = atof(buff);
|
||||
motor_info->encoder_position = (int) motorData;
|
||||
motor_info->encoder_position = (epicsInt32) motorData;
|
||||
|
||||
status.Bits.RA_PROBLEM = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user