Download Motion Control PMC

Transcript
8 Command Reference
MG[t.] g,bb
Define input mask group
Range t:
Range g:
Range bb:
0 to 59, (depends on number of nodes) or no value
1 to 3 (3 is virtual)
0000 0000 to 1111 1111 (default: 0)
This command specifies a set of input lines, such that if one line in the set goes active, all the
input lines in the set are immediately masked to prevent them acting. The lines remain masked
until they are explicitly enabled. The set of lines is specified by a binary parameter where a bit set
to 1 includes the corresponding input line 1 in the specified group.
The input mask group should only include inputs defined as function inputs with the “DI”
command. The “MG” command has no effect on other types of input line.
The “MG” command applies to the specified input group only. It is not possible to specify
automatic masking of inputs in a different input group.
If the state of a masked input changes, the defined input sequence will be start after enable the
inputs (see also “MI” command on page 127).
Example:
PMCprimo User
0.1>
002E
003E
0.1>
002E
003E
0.1>
0.1>
0.1>
0.1>
ES PROG1
CH1;VC+
NS
ES PROG2
CH1;VCNS
CH1;DI2:1+;PROG1<CR>
CH1;DI2:2+;PROG2<CR>
MG2,00000011<CR>
Comment
Move in positive direction
Move in negative direction
Execute PROG1
Execute PROG2
Mask group to input 1 and 2 of byte 2
In the example above, the input line mask group is defined to include input lines 1 and 2. When
input line 1 goes high, inputs 1 and 2 are both masked. If the axis is stopped and the input lines
are enabled, it is possible to start the axis next time. This makes sure that only one of the two start
functions are enabled at one time.
Reference Manual PMCprimo
Page 139