2. 可以插入如下代码,设置数据时要先获取权限
private void button7_Click(object sender, EventArgs e)
{
using (Mastership.Request(controller.Rapid))
{
RapidData nTemp4 = controller.Rapid.GetRapidData("T_ROB1", "Module1", "Target_190");
RobTarget r1 = (RobTarget)nTemp4.Value;
MessageBox.Show(r1.ToString());
r1.Extax.Eax_f =(float) Convert.ToDecimal(textBox1.Text);
//当前外轴存储于Eax_f,所以对Eax_f赋值
//也可通过以下方法对整个robtarget赋值
//r1.FillFromString2("[[-147.312,351.549,40],[0,0.8041,88,0],[0,0,0,0],[9E+9,9E+9,9E+9,9E+9,9E+9,10]]");
nTemp4.Value = r1;
}
}
了解更多信息请点击ABB机器人