Rapid Object Object Array Address
Azza
✭
Hi,
I have an array in my rapid that has a length of 20. I want to address all these points with a seperate rapiddatabindingsources and then link them to dataEditors.
This is possible in Screen maker, how can i do this using Flex Pendent SDK?
Or is there an easier way that im not aware of??
I have attached a screen shot of what i am trying to achieve. I have also attached copy of the source code from screen maker and from SDK below for the databinfing objects and data editors..
webwiz/2737/screeshot.jpg
SCREEN MAKER
this.dataEditor1.DataBindings.Add
(new System.Windows.Forms.Binding("Text", new ABB.Robotics.ScreenMaker.Windows.Forms.SingleBindingSource
(new ABB.Robotics.DataBinding.RapidDataObject("T_ROB1", "Globals", "xArray"), new ABB.Robotics.ScreenMaker.Windows.Forms.Index[] {new ABB.Robotics.ScreenMaker.Windows.Forms.Index(1)}), "Value", true, System.Windows.Forms.DataSourceUpdateMode.Never));
this.dataEditor1.Font = ABB.Robotics.Tps.Windows.Forms.TpsFont.Font10b;
this.dataEditor1.ForeColor = System.Drawing.SystemColors.ControlText;
this.dataEditor1.Location = new System.Drawing.Point(279, 185);
this.dataEditor1.Size = new System.Drawing.Size(80, 20);
this.dataEditor1.Text = "dataEditor1";
FLEX PENDENT SDK
//
// rapidDataBindingSource1
//
this.rapidDataBindingSource1.DataSource = typeof(ABB.Robotics.DataBinding.RapidDataObject);
rapidDataObject1.ModuleName = "Globals";
rapidDataObject1.TaskName = "T_ROB1";
rapidDataObject1.VariableName = "xArray";
this.rapidDataBindingSource1.RapidDataList.Add(rapidDataObject1);
//
// dataEditor1
//
this.dataEditor1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dataEditor1.CaretVisible = false;
this.dataEditor1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.rapidDataBindingSource1, "Value", true));
this.dataEditor1.Font = ABB.Robotics.Tps.Windows.Forms.TpsFont.Font12b;
this.dataEditor1.Location = new System.Drawing.Point(369, 129);
this.dataEditor1.Multiline = true;
this.dataEditor1.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.dataEditor1.SelectionLength = 0;
this.dataEditor1.SelectionStart = 0;
this.dataEditor1.SelectionVisible = false;
this.dataEditor1.Size = new System.Drawing.Size(160, 40);
this.dataEditor1.TabIndex = 3;
this.dataEditor1.Text = "dataEditor1";
this.dataEditor1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
//
I have an array in my rapid that has a length of 20. I want to address all these points with a seperate rapiddatabindingsources and then link them to dataEditors.
This is possible in Screen maker, how can i do this using Flex Pendent SDK?
Or is there an easier way that im not aware of??
I have attached a screen shot of what i am trying to achieve. I have also attached copy of the source code from screen maker and from SDK below for the databinfing objects and data editors..
webwiz/2737/screeshot.jpg
SCREEN MAKER
this.dataEditor1.DataBindings.Add
(new System.Windows.Forms.Binding("Text", new ABB.Robotics.ScreenMaker.Windows.Forms.SingleBindingSource
(new ABB.Robotics.DataBinding.RapidDataObject("T_ROB1", "Globals", "xArray"), new ABB.Robotics.ScreenMaker.Windows.Forms.Index[] {new ABB.Robotics.ScreenMaker.Windows.Forms.Index(1)}), "Value", true, System.Windows.Forms.DataSourceUpdateMode.Never));
this.dataEditor1.Font = ABB.Robotics.Tps.Windows.Forms.TpsFont.Font10b;
this.dataEditor1.ForeColor = System.Drawing.SystemColors.ControlText;
this.dataEditor1.Location = new System.Drawing.Point(279, 185);
this.dataEditor1.Size = new System.Drawing.Size(80, 20);
this.dataEditor1.Text = "dataEditor1";
FLEX PENDENT SDK
//
// rapidDataBindingSource1
//
this.rapidDataBindingSource1.DataSource = typeof(ABB.Robotics.DataBinding.RapidDataObject);
rapidDataObject1.ModuleName = "Globals";
rapidDataObject1.TaskName = "T_ROB1";
rapidDataObject1.VariableName = "xArray";
this.rapidDataBindingSource1.RapidDataList.Add(rapidDataObject1);
//
// dataEditor1
//
this.dataEditor1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dataEditor1.CaretVisible = false;
this.dataEditor1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.rapidDataBindingSource1, "Value", true));
this.dataEditor1.Font = ABB.Robotics.Tps.Windows.Forms.TpsFont.Font12b;
this.dataEditor1.Location = new System.Drawing.Point(369, 129);
this.dataEditor1.Multiline = true;
this.dataEditor1.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.dataEditor1.SelectionLength = 0;
this.dataEditor1.SelectionStart = 0;
this.dataEditor1.SelectionVisible = false;
this.dataEditor1.Size = new System.Drawing.Size(160, 40);
this.dataEditor1.TabIndex = 3;
this.dataEditor1.Text = "dataEditor1";
this.dataEditor1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
//
0
Comments
-
The binding mechanism used by ScreenMaker is defined inside ScreenMaker files. You can use this mechanism as long as all all forms are ScreenForm instead of TpsForm.
BR/CarlosCarlos Martinez
ABB0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings