BackHomeContact Us

 

Code Example

rstsw

 

Syntax

rstsw variable

 

Function

Places the values of W-axis modes and inputs in variable. 

 

Bit 0 is 1 if in MOVE mode else 0

Bit 1 is 0 if Positive Limit Switch is hit else 1

Bit 2 is 0 if Negative Limit Switch is hit else 1

Bit 3 is 0 if Home Limit Switch is hit else 1

bit 4 - bit 31 Spare 

 

Controller Returns

The value if no argument is specified.

 

Mode

Run, Command

 

Example

rstsw A

print "Value of W-axis status =”, A

 

Code Example

rstsx

 

Syntax

rstsx variable

 

Function

Places the values of X-axis modes and inputs in variable. 

 

Bit 0 is 1 if in MOVE mode else 0

Bit 1 is 0 if Positive Limit Switch is hit else 1

Bit 2 is 0 if Negative Limit Switch is hit else 1

Bit 3 is 0 if Home Limit Switch is hit else 1

Bit 4 is spare

Bit 5 is spare

Bit 6 is spare

Bit 7 is spare

Bit 8 is 1 if Joystick Lower Left Key Is Pressed.

Bit 9 is 1 if Joystick Middle Right Key Is Pressed.

Bit 10 is 1 if Joystick Upper Right Key Is Pressed.

Bit 11 is 1 if Joystick Lower Right Key Is Pressed.

Bit 12 is spare.

Bit 13 is spare.

Bit 14 is spare.

Bit 15 is spare.

Bit 16 - bit 23 = X-axis analog value.

Bit 24 - bit 31 = Spare 

 

Range of Value

-2147483648 to +2147483647

 

Controller Returns

The value if no argument is specified.

 

Mode

Run, Command

 

Example

rstsx A

print "Value of X-axis status =”, A

 
Code Example

rstsy

 

Syntax

rstsy variable

 

Function

Places the values of Y-axis modes and inputs in variable. 

 

Bit 0 is 1 if in MOVE mode else 0

Bit 1 is 0 if Positive Limit Switch is hit else 1

Bit 2 is 0 if Negative Limit Switch is hit else 1

Bit 3 is 0 if Home Limit Switch is hit else 1

Bit 4 - bit 15 = Spare

Bit 16 - bit 23 = Y-axis analog value.

Bit 24 - bit 31 = Spare 

 

Range of Value

-2147483648 to +2147483647

 

Controller Returns

The value if no argument is specified.

 

Mode

Run, Command

 

Example

rstsy A

print "Value of Y-axis status =”, A

 
Code Example

rstsz

 

Syntax

rstsz variable

 

Function

Places the values of Z-axis modes and inputs in variable. 

 

Bit 0 is 1 if in MOVE mode else 0

Bit 1 is 0 if Positive Limit Switch is hit else 1

Bit 2 is 0 if Negative Limit Switch is hit else 1

Bit 3 is 0 if Home Limit Switch is hit else 1

Bit 4 - bit 15 = Spare

Bit 16 - bit 23 = Z-axis analog value.

Bit 24 - bit 31 = Spare. 

 

Range of Value

0 to +16777215

 

Controller Returns

The value if no argument is specified.

 

Mode

Run, Command

 

Example

rstsz A

print "Value of Z-axis status =”, A

 

 


 

www.OESIncorp.com

Copyright ©  2002, 2003, 2004, 2005, 2006 Optimal Engineering Systems, Inc.