Download Motion Control System and Operator Interface (VC1) User Manual

Transcript
VC1 Controller User Manual, Revision 1.9
DInn±/!
Command Reference, Configuration Commands
Define input line function. (restricted)
Range : 1 to 12
This command defines a specified input line to have the given function. The sign specifies the active
state of the input, such that the system executes the function when the input changes to the
specified state. Alternatively the sign may be replaced by a "!" character. This indicates the action
when a previously defined input line reverts to its normal state. The command function may be a
single command, or may be a sequence of commands. The text of the command function is
separated from the DI command by any delimiter character. The length of each definitions is limited
to 80 characters. If there is not enough memory for the new line definition, the system will return an
"N" no room error message. Note that a line that has been defined as a function input cannot be
set or cleared. A function input line may be returned to normal operation by entering this command
without the sign and the function text. This command is restricted, and is only available in privileged
mode.
If a line is defined as an input, and is already in the true state when it is defined as a function input,
the system does not act on the input until it has gone false and become true again. If an input is
currently masked by the MI command when it is defined, it does not become active until it is enabled
by the EI command.
Example :
DI1+/ AB
This defines line 1 as a single command, such that when line 1 goes to a logic high, the system
executes the AB command.
Example :
DI2-/ ID/IN-/W T256/MR-5000/ZC
DI2!/ST
This defines line 2 as a command sequence, such that when it goes to a logic low, the system
executes the given sequence. It initialises the DAC offset, initialises the position to the reference
position, waits for 1 second, moves -5000 units, and zeros the position counters at this position.
W hen the input line reverts to a logic high, the ST command is executed. If the system is still in
motion, it will then stop.
Example :
DI 3
This returns line 3, previously defined as a function input, to normal operation.
Copyright © 2006 Pan Controls Limited
Page 57