![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/rs_webinar_invitation_2025_2.jpg)
Rapid Object Object Array Address
![Azza](https://us.v-cdn.net/5020483/uploads/webwiz/avatars/half_planet.jpg)
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..
![image](file:///C:/Documents%20and%20Settings/amay/Desktop/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
- 398 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 321 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 805 RAPID Programming
- 4 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings