10/8/2018 11:05 AM | |
Joined: 8/24/2018 Last visit: 10/29/2024 Posts: 3 Rating:
|
Usecase MCD has built-in cylinder functionality. However, the configuration requires indepth knowledge and is prone to interrupting the simulation when not configured properly. Often only the basic behavior of a pneumatic cylinder is needed but not the specific details regarding presure or flowrate. Therefore a simplified method for simulation cylinders is used. Features
Implementation The cylinder simulation is based on a PositionControl and an Expression Block Template. Expression Blocks are simmilar to SignalAdapters. It comprises Inputs, Outputs, Parameters, States and Expressions. Simple logic can be used to control its signals. The use of an Expression Block Template enables creating reusable functionality. Logic: valve is on ? set PositionControl to max : set PositionControl to min SlidingJoint at min ? set sensorMin true SlidingJoint at max ? set sensorMax true Usage
Example Open _cylinder.prt. Start simulation (Play). Inspect CylinderSignalAdapter. Toggle solenoidOn. The cylinder moves up or down. Display changers are just an application example using the atMin/Max limitswitches.
AttachmentCylinder.zip (1146 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on