MNEMONIC

FUNCTION

TYPE

OT

Set Ouputs 1-4 As 1 Value

I/O Variable

DESCRIPTION

The OT variable allows the user to set Outputs 1-4 as one 4 bit binary value. The value is entered in decimal, with a range of 0-15 and will display in binary where Output 1 will be the LSB and Output 4 will be the MSB.

 

Example: OT=12

 

 

Output 4 = 1

 

 

Output 3 = 1

 

 

Output 2 = 0

 

 

Output 1 = 0

 

USAGE

 

 

OT=<0-15>

 

PR OT

 

 

EXAMPLE:

 

 

OT=7

‘Set outputs 1-4 to O1=1, O2=1, O3=1, O4=0

 

RELATED COMMANDS: I1-I4, S1-S4

 

MNEMONIC

FUNCTION

TYPE

P

Set/Print Position Counter

Instruction

DESCRIPTION

This instruction is used to set or print the value of the MDrive Motion Control position counter. The position will read in Motor Counts from C1 (Counter 1) by default, if encoder functions are enabled, the position counter will read in Encoder Counts from C2 (Counter 2).

The main difference in the relationship of the two counters is that where C1 is variable, the value of each count in terms of distance moved is based upon the MS, or microstep resolution setting, C2 will always be 2048 counts per motor revolution, regardless of the microstep resolution setting.

Modifying P in essence changes the frame of reference for the axis. P will probably be set once during system set up to reference or “home” the system.

USAGE

UNITS

RANGE

P <±position>

Steps

-2147483648 to 2147483647

PR P

 

 

 

 

 

EXAMPLE:

 

 

P=0

‘Clear position counter, set to 0

 

PR P

‘Print the state of the position counter

 

RELATED COMMANDS: C1, C2

53

Page 55
Image 55
Intelligent Motion Systems 17 manual Set Ouputs 1-4 As 1 Value Variable, Set/Print Position Counter Instruction