3/1/2021 8:35 AM | |
Posts: 21 Rating:
|
Hi, I'm new to S7 1200 motion control. In my program which I could partially attach herewith in pdf due to the upload size limit, I'm controlling an analog servo motor via S7 1200 PLC analog output. The encoder is external and connected to HSC inputs at I33.0 and I33.1. I'm facing the problems below. (1) The switching between jog/velocity and absolute positioning modes. For instance, after it executed the jog mode successfully and the homing function was called, the error code always indicated that it is at the wrong mode. I monitored online the mode inside the multiple instance and noticed that it's still at the jog mode. I'm pretty sure that the jog mode was already disabled with interlock to the jog function block. (2) In fact the whole system worked fine for the first piece of the product cut to length after the CPU was powered up. The 2nd piece failed due to the machine was trying to reverse to the position 0 (reference position). I noticed it was due to the failure in the MC_Home to set the reference position to new 0 after cutting the first piece. The MC_Home at mode=0 was enabled by every cutting. I'm using multiple instances for all the MC instructions. Shall it be single instance instead if there is only one axis control involved? To ease your reading, the homing+absolute FB call is at NW14 and the jog FB call is at NW15 of OB1. Appreciate very much if anyone could help. AttachmentPartial program.pdf (726 Downloads) |
Last edited by: LKY2020 at: 03/01/2021 15:55:33 |
|
3/1/2021 3:42 PM | |
Posts: 21 Rating:
|
Hi, after archive and zipped, the file size is about 6.8MB which exceeds the size limit. |
3/1/2021 3:58 PM | |
Posts: 21 Rating:
|
Hi I've edit my first post with the pdf of the program relevant parts. Many thanks |
3/3/2021 3:39 AM | |
Posts: 21 Rating:
|
|
3/3/2021 5:41 AM | |
Joined: 3/30/2020 Last visit: 3/19/2025 Posts: 5051 Rating:
|
Hello. The StartMode and StopMode only applies to the situation where Enable is switched on (start) and off (stop). It is not specifically related to any other motion control function. This is stated in the documentation of MC_Power. The state of StartMode and StopMode is consulted at the transitions of Enable. Putting constant values in those inputs is acceptable. Carefully consider the value for StopMode: Stopping without decelerating may cause mechanical problems. I confess: I have no clear idea what StartMode does exactly. The description in the documentation does not help me understand it. I recommend you have this manual with you: This topic pulls attention now that it is star rated. It is my hope that your topic will get contributions from others while I am absent. May you get the answers you need. Best health |
Last edited by: qwazee at: 03/03/2021 05:42:27Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
Follow us on