First, you will set constraints in the link section of the cylinder.
Thereby, you can operate the cylinder rod and operate the parts linked to the cylinder.
[1] To operate the cylinder rod, make the rod and tip nut into one assembly, Separate them from the cylinder case.
[2] Set [Fixed to Parent] command to green base plate and yellow link base so that they do not move.
[3] Set [Concentric] constraint in the place of rotation.
[4] The interlocking parts set the restraints of [Concentric] and [distance].
[5] Finally, add an animation to the cylinder rod.
Animation - IRONCAD User's Guide