Page 80 of 112
DMM-0200 Product User Guide
159 Swanson Road
Boxborough, MA 01719
Tel: 508-475-3400
Email: sales@dovermotion.com
GOSUB 1
END
SUB 1
X0
WAITX
X1000
WAITX
ENDSUB
TOC
Description:
Sets the communication time-out parameter. Value is in milli-seconds.
Syntax:
TOC=[long value]
Examples:
TOC=10000 ;***Sets time-out parameter to 10 seconds
V
Description:
Assign to variable. Performax 2EX has 64 variables [V0-V63]
Syntax:
V[Variable Number] = [Argument]
V[Variable Number] = [Argument 1] [Operation] [Argument2]
Special case for BIT NOT:
V[Variable Number] = ~[Argument]
[Argument] can be any of the following:
Numerical value
Pulse or Encoder Position
Digital Output
Digital Input
Enable Output
Motor Status
[Operation] can be any of the following
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus
>> Bit Shift Right
<< Bit Shift Left
& Bit AND
| Bit OR
~ Bit NOT
Examples:
V1=12345 ;***Set Variable 1to 123
V2=V1+1 ;***Set Variable 2 to V1 plus 1
V3=DI ;***Set Variable 3 to digital input value
V5=~EO ;***Sets Variable 5 to bit NOT of enable output value
Note: On the STORE command, the second half of generalpurpose variable registers (V32-V63) are stored to flash. Their
values will be preserved after power cycle.