Change in path dynamics

pathDynamicsSet

pathDynamicsSet(acc:= LREAL, dec:= LREAL, jerk:= LREAL);

pathDynamicsSet can be used to change the path dynamics at runtime.

Function

pathDynamicsSet

Parameter <acc>

Value of the maximum permitted acceleration in mm/s^2.
Must be set >= 1. If set to 0, the default value is used.

Parameter <dec>

Value of the maximum permitted deceleration in mm/s^2.
Must be set >= 1. If set to 0, the default value is used.

Parameter <jerk>

Value of the maximum permitted jerk in mm/s^3.
Must be set >= 1. If set to 0, the default value is used.

Example:

N10 G01 X100 Y200 F60000
!R4:=10000;
//Set path dynamics
!pathDynamicsSet(acc:=200, dec := 200, jerk := R4);
N30 G01 X500 Y0
//Set path dynamics back to default values and jerk to 12000
!pathDynamicsSet(acc:=0, dec := 0, jerk := 12000);
N50 G01 X100 Y200
//Set path dynamics to default values
!pathDynamicsSet(acc:=0, dec := 0, jerk := 0);
N70 G01 X500 Y0
N80 M02

Requirements

Development Environment

Target System

TwinCAT V3.1.4024.12

PC or CX (x86 or x64)