gclib  2.0.8
Communications API for Galil controllers and PLCs

◆ Vector_Mode()

static int Vector_Mode ( gclib  gclib,
string  file 

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

gclibA gclib object with a valid connection.
fileA path to a file with stored vector commands.
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

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(), and gclib.GMotionComplete().

Referenced by Vector_Mode_Example.Main().