Fluid movement

More
1 week 4 days ago #118 by Sébastien
Fluid movement was created by Sébastien
Hello Claes,
Using the Dataqueue Demo, I created a small program to create a rectilinear movement of an object, but its movement isn't uniform. How do I create a fluid movement like the game Ping Pong? What are the steps? Thank you.   
 

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #124 by claes
Replied by claes on topic Fluid movement
Hi Seb,

Decrease the FastCycleTime in Graph attributes to about 0.1 s.
Also make sure the PlcPgm is running on a thread that is 0.1 s or faster.
Use an Av for the position instead of an Iv.
I also use to connect a ScanTime object to the the DataArithm and use the scan time in the position calculation to make sure it's independent of the scan time of the plcpgm.

/Claes
The following user(s) said Thank You: Sébastien

Please Log in or Create an account to join the conversation.

Time to create page: 0.433 seconds
Powered by Kunena Forum