SEG Define a segment for contouring mode |
Syntax
D_ref: 32-bit fixed immediate value: segment reference increment per time unit VAR16 – 16-bit integer variable: segment time VAR32 – 32-bit fixed variable: segment reference increment per time unit Binary code
SEG VAR16, VAR32 uses a 9-bit short address for the operand. Bit 9, value X, specifies the destination address range:
Example // Position contouring with position feedback on motor: 500 lines // incremental encoder (2000 counts/rev) MODE PC;//Set Position Contouring TUM1;//Start from actual value of position reference SEG 100U, 20.00000; //1st segment. At its end, TPOS increases with // 20*100 = 2000 counts (i.e. 1 rev) UPD; //Execute immediate SEG 100U, 0.00000; // 2nd segment. At its end TPOS remains the same SEG 0, 0.0; //End of contouring |