gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches

◆ Vector_Mode()

static int Vector_Mode ( gclib  gclib,
string  file 
)
inlinestatic

Puts controller into Vector Mode and accepts a file defining vector points.

Parameters
gclibA gclib object with a valid connection.
fileA path to a file with stored vector commands.
Returns
The success status or error code of the function.

Example text file:

VP -2219,-2667
VP -2523,-2832
VP 2844,-1425
VP 728,1971
VP 2127,183
VP -997,688
VP 725,-1893
VP 527,2899
VP -37,2523
VP 1277,1425
VP 857,2388
VP 1096,-1694
CR 1000,0,90
GReturn vector(GCon g, char *file)
Puts controller into Vector Mode and accepts a file defining vector points.
Definition vector.cpp:36

See vector_mode_example.cs for an example.

For VB.NET, see definition in file vector_mode.vb

Definition at line 45 of file vector_mode.cs.

References Examples.GALIL_EXAMPLE_OK, gclib.GCmdI(), gclib.GCommand(), gclib.GMotionComplete(), and vector().

Referenced by Vector_Mode_Example.Main().