414
6
6 Positioning and InterpolationDRVA: Absolute positioning
6) You can enable the ag bit to release the high-speed output port resources, so that the next
pulse output instruction is started immediately without disabling the previous instruction ow.
The "port output initialization ag bit" of special elements must be set. See the following table.
Y0 Y1 Y2 Y3 Y4 Attribute
M8351 M8371 M8391 M8411 M8431 Port output initialization ag
If the ow of the pulse output instruction A is active, the instruction occupies the high-speed output port no
matter whether the pulse output is nished. No pulse will be output no matter whether the ow of the pulse
output instruction B using the output port is active. Because the resources of this high-speed output port
have been occupied by the instruction A, an error indicating port duplication or conict is returned. In this
case, you can enable the output initialization ag bit of this port to release the port resources, and then
pulses are output when the ow of the pulse output instruction B using the output port is active.
Network 11
Flag of Y0 output initialization
Stop thecurrent output immediately, andstart thenext high-speed outputinstruction
As shown in the preceding gure, M100 is active, and drives Y0 to output 20,000 pulses at a frequency
of 1000 Hz. If the output is driven by M100 but the user wants to set M200 to ON to immediately start the
output (SET M8351 in the preceding gure), the high-speed output driven by M100 stops immediately, the
instruction driven by M200 occupies the high-speed output port Y0, and the set high-speed output starts
immediately.
7) Pulse output complete interrupts.
The "interrupt enabling ag bit" of special elements must be set. See the following table.
Y0 Y1 Y2 Y3 Y4 Attribute
M8352 M8372 M8392 M8412 M8432
Output complete
interrupt enabling
Y0 output
complete
interrupt
Y1 output
complete
interrupt
Y2 output
complete
interrupt
Y3 output
complete
interrupt
Y4 output
complete
interrupt
Corresponding
interrupt
8) The pulse output is stopped.
The pulse output can be stopped by setting the "pulse output stop ag bit" of special elements. See the
following table.
Y0 Y1 Y2 Y3 Y4 Attribute
M8349 M8369 M8389 M8409 M8429 Pulse output stop ag