BASIC commands
PROGRAMMING MANUAL 41
Revision 1.0
/i
3.2.39 B_SPLINE
/i
6 Datuming 64 d
7 Feed hold input 128 h
8 Following error exceeds limit 256 e
9 In forward software limit 512 x
10 In reverse software limit 1024 y
11 Cancelling move 2048 c
12 Encoder out overspeed 4096 o
Arguments N/A
Example IF (AXISSTATUS AND 16)>0 THEN PRINT "In forward limit"
See also AXIS, ERRORMASK
Type Mathematical function
Syntax B_SPLINE(type, data_in, number_in, data_out, expansion_ratio)
Description Expands an existing profile stored in the TABLE using the B-Spline mathemat-
ical function. The expansion factor is configurable and the B_SPLINE stores
expanded profile to another area in the TABLE.
This is ideally used where the source CAM profile is too course and needs to
be extrapolated into a greater number of points.
Bit
number
Description Value Character (as used in
Trajexia Studio)
Arguments • type
Reserved for future expansion. Always set this to 1.
• data_in
Location in the TABLE where the source profile is stored.
• number_in
Number of points in the source profile.
• data_out
Location in the TABLE where the expanded profile will be stored.
• expansion_ratio
The expansion ratio, i.e., if the source profile is 99 points and
expansion_ratio is set to 10 the resulting profile will be 1000 point
((number_in+1) * expansion_ratio).
Example BASE(1)
B_SPLINE(1, 0, 9, 200, 10)
This command expands a 10 point profile in TABLE locations 0 to 9 to a larger
100 points profile starting at TABLE location 200.
See also N/A