P o s i t i o n R e l a t e d I n s t r u c t i o n s , Va r i a b l e s a n d F l a g s
Mnemonic | Function | Unit | Range | Syntax Example |
C1 | Set Counter 1 | Motor Counts | Signed 32 bit | C1=<counts> |
HM | Home to Home Switch | Type | HM <type> | |
P | Set/Read Position | Motor/Encoder Counts | Signed 32 bit | P=<counts> |
PC | Read Captured Position at Trip |
|
|
|
TP | Trip on Position | Position | - | TP <pos>, <addr> |
TE | Trip Enable | See Table | TE=<num> |
E n c o d e r R e l a t e d I n s t r u c t i o n s , Va r i a b l e s a n d F l a g s
Mnemonic | Function | Unit | Range | Syntax Example |
C2 | Set Counter 2 | Encoder Counts | Signed 32 bit | C2=<counts> |
DB | Set Encoder Deadband | Encoder Counts | DB=<counts> | |
EE | Enable/Disable Encoder Functions | - | 1/0 | EE=<1/0> |
HI | Home to Encoder Index | Type | HI=<type> | |
I6 | Read Encoder Index Mark | - | - | I6 |
SF | Set Stall Factor | Encoder Counts | SF=<counts> | |
SM | Set Stall Mode | 0=Stop Motor/1=Don’t Stop | 1/0 | SM=<mode> |
|
|
|
|
|
ST | Stall Flag | - | 0/1 | PR ST |
|
|
|
|
|
M a t h e m a t i c a l F u n c t i o n s
Symbol | Function |
+ | Add Two Variables and/or Flags |
|
|
- | Subtract Two Variables and/or Flags |
* | Multiply Two Variables and/or Flags |
|
|
/ | Divide Two Variables and/or Flags |
<> | Not Equal |
|
|
= | Equal |
< | Less Than |
<= | Less Than and/or Equal |
> | Greater Than |
|
|
>= | Greater Than and/or Equal |
& | AND (Bitwise) |
|
|
OR (Bitwise) | |
^ | XOR (Bitwise) |
|
|
! | NOT (Bitwise) |
|
|
37