Delta Electronics — 7.1.6 PR procedure execution flow

Motion Control ASDA-B3  Multiple interrupt commands The PR queue updates commands every 1 ms. If all PR paths include an Interrupt function, the queue can read at least 20 PR paths in 1 ms, and these paths are called a PR group. If this PR 7 group has multiple motion commands, the PR queue only sends the last command it receives to the motion command generator for execution. Therefore, in a PR group, only one PR path with motion command is executed. The latter motion command directly replaces the former, whereas Jump and Write commands are executed as soon as they are received by the PR queue (see Figure 7.1.6.9 (a)).

If one of the PR paths includes a delay, the PR queue schedules all paths on the basis of this PR path. The prior path(s) including a delay becomes the first PR group, and what follows is the second PR group. Thus, this PR procedure can execute up to two PR paths with motion commands, as shown in Figure 7.1.6.9 (b). (1 ms Cmd cycle) Approx. 20 PR paths PR executor Motion command generator (a) Multiple commands without delay DLY 100 ms (1 ms Cmd cycle) (1 ms Cmd cycle) Approx.

20 PR paths PR executor Motion command generator (b) Multiple commands with delay Figure 7.1.6.9 Internal interruption - Multiple commands 7-54 PR#1 (I) PR#7 (I) PR#2 (I) PR#8 (I) Position Position Write Jump DLY=[0] 0 ms DLY=[0] 0 ms 1000 PUU DLY=[0] 0 ms 10000 PUU DLY=[0] 0 ms ABS P5.045=100 ABS PR#10 200 rpm 500 rpm peed T PR#1 (I) PR#7 (I) PR#6 (I) PR#8 (I) Position Position Write Jump DLY=[0] 0 ms DLY=[0] 0 ms 1000 PUU DLY=[1] 100 ms 10000 PUU DLY=[0] 0 ms ABS P5.045=100 ABS PR#10 200 rpm 500 rpm eed Ti