Retrigger Siemens Motion Commands

Kaurk

Member
Join Date
Mar 2015
Location
Estonia
Posts
12
Hey,

Setup i have:
CPU 315T-3 PN/DP
S120_CU320_2_DP
DP cycle 2.5 ms
Servo 2.5 ms
IPO 5.0 ms
IP_2 15.0 ms

What is the fastest way to Reexecute MC commands. For instance FB 414 "MC_MoveVelocity". The done flag only flips its value 0 to 1, 1 to 0, if inVelocity bit goes high. So its not useful for retriggering the block.

Under MCDevice:
MaxLoopDuration: 6ms


The manual states: Command processing
The commands of integrated technology are processed and monitored at indefinite cycles. The time required to process current commands depends on the number of active commands and on CPU load.

It seems the command process time can vary.

Currently i trigger block every 10ms and it only loads the first execute, all the others are ignored.

On rockwell there is the .DN bit the user can monitor and fire the MC command again if its done.
 
Hello.

I was in the same situation a couple of years ago and needed a similar way of of control. The "MC_MoveVelocity" does not give you a "Done" signal since there is no position to target.
On this site there is this manual:
https://support.industry.siemens.com/cs/ww/en/view/30119663
On page 659 there is a description on how to use two instances of the FB414 in order to interrupt with a different speed.

But I ended up with setting the FB 414 to the maximum speed and manipulating on parameter 4142 in order to constantly change the speed. This was done in technology OB65

On page 1064, you will find an example on how to manipulate the override parameter with the "MC_WriteParameter".
 

Similar Topics

Hello, I have a CPU 317-2DP Firmware Version V2.1.8. In TIA Portal only V2.6 is available, and there is no option to upgrade FW. Then I open it...
Replies
2
Views
105
HI everyone, i am new to Siemens plc programming and i am in need of some help. yesterday we had an S7-1200 CPU 1214C fail to turn on an output to...
Replies
9
Views
325
Hi PLC people, think about this scenario: The PLC is somehow connected to the same network with the facilities` network. Then someone connects to...
Replies
2
Views
110
Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
5
Views
161
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
197
Back
Top Bottom