- Posts: 16
- Thank you received: 0
DataQueues test
2 weeks 5 days ago #111
by Sébastien
DataQueues test was created by Sébastien
Please Log in or Create an account to join the conversation.
2 weeks 4 days ago #114
by claes
Replied by claes on topic DataQueues test
Hi Seb,
If you open the DataQ graph in the demo project, demo_proc_dataqueues, in the ge editor, you can see how it’s made. In the lower left corner, outside the graph, there is a pile of plates stacked on top of each other. They are of subgraph s_plate and s_painted_plate that has the default dynamic move, and also some color dynamics. The x and y coordinate for the move dynamics are connected to elements in two arrays, one array that contains the x coordinate for the different plates, and one that contains the y coordinate. Note that every plate has its own index in the arrays.
When a plate enters the conveyor, code in subwindows to the DataQ objects start to calculate the x and y coordinates for the plate from the position on the conveyor. In your case, with water drops, it’s much easier to calculate the coordinates in a DataArithm than to use a DataQ sequence. Create two AArray objects for the x and y coordinates in the plant hierarchy, fetch them with GetData in the plc editor and connect the GetData to Data inputs of the DataArithm object.
The compile error you get is probably that the include file for the class volume ”pwr_’class volume name’classes.h” is not included in $pwrp_inc/ra_plc_user.h.
/Claes
If you open the DataQ graph in the demo project, demo_proc_dataqueues, in the ge editor, you can see how it’s made. In the lower left corner, outside the graph, there is a pile of plates stacked on top of each other. They are of subgraph s_plate and s_painted_plate that has the default dynamic move, and also some color dynamics. The x and y coordinate for the move dynamics are connected to elements in two arrays, one array that contains the x coordinate for the different plates, and one that contains the y coordinate. Note that every plate has its own index in the arrays.
When a plate enters the conveyor, code in subwindows to the DataQ objects start to calculate the x and y coordinates for the plate from the position on the conveyor. In your case, with water drops, it’s much easier to calculate the coordinates in a DataArithm than to use a DataQ sequence. Create two AArray objects for the x and y coordinates in the plant hierarchy, fetch them with GetData in the plc editor and connect the GetData to Data inputs of the DataArithm object.
The compile error you get is probably that the include file for the class volume ”pwr_’class volume name’classes.h” is not included in $pwrp_inc/ra_plc_user.h.
/Claes
The following user(s) said Thank You: Sébastien
Please Log in or Create an account to join the conversation.
2 weeks 2 days ago #115
by Sébastien
Replied by Sébastien on topic DataQueues test
Thank you
Please Log in or Create an account to join the conversation.
Time to create page: 0.352 seconds