The Text Boxes: actual position, actual velocity, and command velocity
After we get the actual position and actual velocity from an axis, we need to display them. We use Text Boxes to do this. First we declare two TextBox variables, tbACT_POS and tbACT_VEL, and then we use the Text
property to show the values in the Text Boxes. ToString converts the value to the string.
tbACT_POS.Text = PositionValue(Mindex).Value.ToString()
tbACT_VEL.Text = VelocityValue(Mindex).Value.ToString()
The command velocity is controlled by the TextBox variable tbCMD_VEL, which is the velocity of the jog motion. The default value is 10000. This value is set in the Form1.Designer.vb file and can be changed to meet your needs. You can also change it in the Properties pane.
The command velocity is controlled by the TextBox variable tbCMD_VEL. The default value is 10000. This value is set in the Form1.Designer.vb file and can be changed to meet your needs. You can also change it in the Properties pane.