How do you stop an axis with position accuracy in the case of product identification with the SIMATIC S7-1200?
The task is described taking the example a cartoner.
The product to be packed is conveyed via the positioning axis at velocity "v".
When the product is recognized (here the back edge by a light switch) the positioning axis should stop within a distance x to carton the product at a standstill.
The "MoveAfterEvent" function block provides the function as a combination of the Motion Control instructions "MC_Home" and "MC_MoveAbsolute".
Documentation (719,2 KB)
- An S7-1200 CPU firmware V4.1.2 with a positioning axis V5.0 is configured in the project.
- The drive control is the controlled positioning via pulse train frequency (PTO).
This version can also be simulated without a real drive.
- The function of the FB "MoveAfterEvent" can be checked by means of the watch table.
|Service Pack 1 for SIMATIC STEP 7 V13 incl. PLCSIM (TIA Portal)||105825934|
|Updates for STEP 7 V13 SP1 and WinCC V13 SP1||109311724|
|Firmware Update for SIMATIC S7-1200 CPUs||Download|
|Manual SIMATIC STEP 7 S7-1200 Motion Control V13 SP1|
|Sample application "SINAMICS V: Controlled positioning of a V90 with S7-1200 via pulse/direction interface with HMI"||77467940|
|Sample application "SINAMICS V: Positioning of a V60 with S7-1200 (TIA Portal) via pulse/direction interface with HMI (Set 7)"||38391227|
|Manual: SIMATIC S7 S7-1200 Automation System||107623221|
|Manual: STEP 7 Basic V13 SP1||109054417|