gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches
gclib.cs
Go to the documentation of this file.
1
5using System;
7using System.Linq;
8using System.Text;
10using System.Runtime.InteropServices; //dll import
11using System.IO; //file.exists
12
13using UB = System.Byte; //unsigned byte
14using UW = System.UInt16; //unsigned word
15using SW = System.Int16; //signed word
16using SL = System.Int32; //signed long
17using UL = System.UInt32; //unsigned long
18
19#if x86 //defined in "Conditional compilation symbols" of Project Properties
20using GReturn = System.Int32;
21using GCon = System.IntPtr;
22using GSize = System.UInt32;
23using GOption = System.Int32;
24using GCStringOut = System.Text.StringBuilder;
25using GCStringIn = System.String;
26using GBufOut = System.Text.StringBuilder;
27using GBufIn = System.String;
28using GStatus = System.Byte;
29// IMPORTANT! Be sure that the paths below are correct
30public static class LibraryPath
31{
32 public const string GclibDllPath_ = "C:\\Program Files (x86)\\Galil\\gclib\\dll\\x86\\gclib.dll";
33 public const string GcliboDllPath_ = "C:\\Program Files (x86)\\Galil\\gclib\\dll\\x86\\gclibO.dll";
34}
35
36#elif x64
37using GReturn = System.Int32;
38using GCon = System.IntPtr;
39using GSize = System.UInt32;
40using GOption = System.Int32;
41using GCStringOut = System.Text.StringBuilder;
42using GCStringIn = System.String;
43using GBufOut = System.Text.StringBuilder;
44using GBufIn = System.String;
45using GStatus = System.Byte;
46// IMPORTANT! Be sure that the paths below are correct
47public static class LibraryPath
48{
49 public const string GclibDllPath_ = "C:\\Program Files (x86)\\Galil\\gclib\\dll\\x64\\gclib.dll";
50 public const string GcliboDllPath_ = "C:\\Program Files (x86)\\Galil\\gclib\\dll\\x64\\gclibo.dll";
51}
52
53#endif
54
67public class gclib
68{
69 #region "C# wrappers of gclib C calls"
70
71 #region "Private properties"
72 private const int BufferSize_ = 500000; //size of "char *" buffer. Big enough to fit entire 4000 program via UL/LS, or 24000 elements of array data.
73 private GCStringOut Buffer_ = new System.Text.StringBuilder(BufferSize_); //used to pass a "char *" to gclib.
74 private byte[] ByteArray_ = new byte[512]; //byte array to hold data record and response to GRead
75 private GCon ConnectionHandle_; //keep track of the gclib connection handle.
76 private bool ConnectionStatus_ = false; //keep track of the status of gclib's connection
77 #endregion
78
79
85 public gclib()
86 {
87 if (!File.Exists(LibraryPath.GclibDllPath_))
88 throw new System.Exception("Could not find gclib dll at " + LibraryPath.GclibDllPath_);
89
90 if (!File.Exists(LibraryPath.GcliboDllPath_))
91 throw new System.Exception("Could not find gclibo dll at " + LibraryPath.GcliboDllPath_);
92
93 }
94
102 public string[] GAddresses()
103 {
104 GReturn rc = DllGAddresses(Buffer_, BufferSize_);
105 if (rc == G_NO_ERROR)
106 {
107 char[] delimiters = new char[] { '\r', '\n' };
108 return Buffer_.ToString().Split(delimiters, System.StringSplitOptions.RemoveEmptyEntries);
109 }
110 else
111 return new string[0];
112
113 }
114
126 public void GArrayDownload(string array_name, ref List<double> data, Int16 first = -1, Int16 last = -1)
127 {
128 System.Text.StringBuilder ArrayData = new System.Text.StringBuilder(BufferSize_); //for converting to ASCII
129 int len = data.Count();
130 for (int i = 0; i <= len - 1; i++)
131 {
132 ArrayData.Append(data[i].ToString("F4")); //format to fixed point
133 if (i < len - 1)
134 {
135 ArrayData.Append(","); //delimiter
136 }
137 }
138 GReturn rc = DllGArrayDownload(ConnectionHandle_, array_name, first, last, ArrayData.ToString());
139 if (!(rc == G_NO_ERROR))
140 {
141 throw new System.Exception(GError(rc));
142 }
143 }
144
153 public void GArrayDownloadFile(string Path)
154 {
155 GReturn rc = DllGArrayDownloadFile(ConnectionHandle_, Path);
156 if (rc != G_NO_ERROR)
157 {
158 throw new System.Exception(GError(rc));
159 }
160 }
161
174 {
176 GReturn rc = DllGArrayUpload(ConnectionHandle_, array_name, first, last, 1, Buffer_, BufferSize_);
177 //1 = comma delim
178 if (!(rc == G_NO_ERROR))
179 {
180 throw new System.Exception(GError(rc));
181 }
182 char[] delimiters = new char[] { ',' };
183
184 string[] tokens = Buffer_.ToString().Split(delimiters, System.StringSplitOptions.RemoveEmptyEntries);
185 double value = 0;
186 foreach (string s in tokens)
187 {
188 if (!double.TryParse(s, out value))
189 {
190 throw new System.Exception("Could not parse " + s + " into double");
191 }
192 array.Add(value);
193 }
194 return array;
195 }
196
206 public void GArrayUploadFile(string Path, string Names)
207 {
208 GReturn rc = DllGArrayUploadFile(ConnectionHandle_, Path, Names);
209 if (rc != G_NO_ERROR)
210 {
211 throw new System.Exception(GError(rc));
212 }
213 }
214
224 public void GAssign(string ip, string mac)
225 {
226 GReturn rc = DllGAssign(ip, mac);
227 if (!(rc == G_NO_ERROR))
228 {
229 throw new System.Exception(GError(rc));
230 }
231 }
232
239 public void GClose()
240 {
241 if(ConnectionStatus_)
242 DllGClose(ConnectionHandle_);
243
244 ConnectionStatus_ = false;
245 }
246
257 public string GCommand(string Command, bool Trim = true)
258 {
259 GSize bytes_read = 0;
260 GReturn rc = DllGCommand(ConnectionHandle_, Command, Buffer_, BufferSize_, ref bytes_read);
261 if (rc != G_NO_ERROR)
262 {
263 throw new System.Exception(GError(rc));
264 }
265 if (Trim)
266 {
267 string r = Buffer_.ToString();
268 if (r[r.Count() - 1] == ':')
269 {
270 r = r.Substring(0, r.Count() - 1);
271 }
272 return r.Trim();
273 }
274 else
275 {
276 return Buffer_.ToString();
277 }
278 }
279
288 public Int16 GCmdI(string Command)
289 {
290 return Convert.ToInt16(Convert.ToDouble(GCommand(Command)));
291 }
292
301 public double GCmdD(string Command)
302 {
303 return Convert.ToDouble(GCommand(Command));
304 }
305
316 private string GError(GReturn ErrorCode)
317 {
318 DllGError(ErrorCode, Buffer_, BufferSize_);
319 return ErrorCode.ToString() + " " + Buffer_.ToString() + "\n";
320 }
321
330 public void GFirmwareDownload(string filepath)
331 {
332 GReturn rc = DllGFirmwareDownload(ConnectionHandle_, filepath);
333 if (rc != G_NO_ERROR)
334 {
335 throw new System.Exception(GError(rc));
336 }
337 }
338
344 public string GInfo()
345 {
346 GReturn rc = DllGInfo(ConnectionHandle_, Buffer_, BufferSize_);
347 if (rc == G_NO_ERROR)
348 {
349 return Buffer_.ToString();
350 }
351 else
352 {
353 return "";
354 }
355 }
356
364 public byte GInterrupt()
365 {
366 byte StatusByte = 0;
367 GReturn rc = DllGInterrupt(ConnectionHandle_, ref StatusByte);
368 if (rc == G_NO_ERROR)
369 {
370 return StatusByte;
371 }
372 else
373 {
374 return 0;
375 }
376 }
377
386 public string[] GIpRequests()
387 {
388 GReturn rc = DllGIpRequests(Buffer_, BufferSize_);
389 if (rc == G_NO_ERROR)
390 {
391 char[] delimiters = new char[] { '\r', '\n' };
392 return Buffer_.ToString().Split(delimiters, System.StringSplitOptions.RemoveEmptyEntries);
393 }
394 else
395 return new string[0];
396
397 }
398
407 public string GMessage()
408 {
409 GReturn rc = DllGMessage(ConnectionHandle_, Buffer_, BufferSize_);
410 if (rc == G_NO_ERROR)
411 {
412 return Buffer_.ToString();
413 }
414 else
415 {
416 return "";
417 }
418 }
419
428 public void GMotionComplete(string axes)
429 {
430 GReturn rc = DllGMotionComplete(ConnectionHandle_, axes);
431 if (!(rc == G_NO_ERROR))
432 {
433 throw new System.Exception(GError(rc));
434 }
435 }
436
445 public void GOpen(string address)
446 {
447 GReturn rc = DllGOpen(address, ref ConnectionHandle_);
448 if (rc != G_NO_ERROR)
449 {
450 throw new System.Exception(GError(rc));
451 }
452 else
453 ConnectionStatus_ = true;
454 }
455
465 public void GProgramDownload(string program, string preprocessor = "")
466 {
467 GReturn rc = DllGProgramDownload(ConnectionHandle_, program, preprocessor);
468 if (rc != G_NO_ERROR)
469 {
470 throw new System.Exception(GError(rc));
471 }
472 }
473
483 public void GProgramDownloadFile(string file_path, string preprocessor = "")
484 {
485 GReturn rc = DllGProgramDownloadFile(ConnectionHandle_, file_path, preprocessor);
486 if (rc != G_NO_ERROR)
487 {
488 throw new System.Exception(GError(rc));
489 }
490 }
491
499 public string GProgramUpload()
500 {
501 GReturn rc = DllGProgramUpload(ConnectionHandle_, Buffer_, BufferSize_);
502 if (rc != G_NO_ERROR)
503 {
504 throw new System.Exception(GError(rc));
505 }
506 else
507 {
508 return Buffer_.ToString();
509 }
510 }
511
520 public void GProgramUploadFile(string file_path)
521 {
522 GReturn rc = DllGProgramUploadFile(ConnectionHandle_, file_path);
523 if (rc != G_NO_ERROR)
524 {
525 throw new System.Exception(GError(rc));
526 }
527 }
528
536 public byte[] GRead()
537 {
538 GSize read = 0;
539 GReturn rc = DllGRead(ConnectionHandle_, ByteArray_, (uint)ByteArray_.Length, ref read);
540 if (rc == G_NO_ERROR)
541 {
542 byte[] ReturnData = new byte[read];
543 //create an array of the correct size
544 for (GSize i = 0; i <= read - 1; i++)
545 {
546 ReturnData[i] = ByteArray_[i];
547 //copy over the data
548 }
549 return ReturnData;
550 }
551 else
552 return new byte[0];
553 }
554
566 public T GRecord<T>(bool async)
567 where T : struct, GDataRecord
568 {
569 ushort method = 0;
570 if (async)
571 method = 1;
572
573 GReturn rc = DllGRecord(ConnectionHandle_, ByteArray_, method);
574 if (rc != G_NO_ERROR)
575 throw new System.Exception(GError(rc));
576
577 return ByteArrayToDataRecord<T>(ByteArray_);
578 }
579
588 public void GRecordRate(double period_ms)
589 {
590 GReturn rc = DllGRecordRate(ConnectionHandle_, period_ms);
591 if (!(rc == G_NO_ERROR))
592 {
593 throw new System.Exception(GError(rc));
594 }
595 }
596
604 public void GTimeout(Int16 timeout_ms)
605 {
606 DllGTimeout(ConnectionHandle_, timeout_ms);
607 }
608
614 public string GVersion()
615 {
616 GReturn rc = DllGVersion(Buffer_, BufferSize_);
617 if (rc == G_NO_ERROR)
618 {
619 return Buffer_.ToString();
620 }
621 else
622 {
623 return "";
624 }
625 }
626
635 public void GWrite(string buffer)
636 {
637 GReturn rc = DllGWrite(ConnectionHandle_, buffer, (uint) buffer.Length);
638 if (!(rc == G_NO_ERROR))
639 {
640 throw new System.Exception(GError(rc));
641 }
642 }
643
655 public string[] GSetupDownloadFile(string path, Int32 options)
656 {
657 GReturn rc = DllGSetupDownloadFile(ConnectionHandle_, path, options, Buffer_, BufferSize_);
658
659 string ret_buf = Buffer_.ToString();
660 ret_buf = ret_buf.Replace("\r\n", ", ");
661
662 if (options != 0)
663 {
664 if (rc != G_NO_ERROR)
665 {
666 throw new System.Exception(GError(rc));
667 }
668 }
669 else
670 {
671 ret_buf += "\"options\"," + rc + "\n";
672 }
673
674 char[] delimiters = new char[] { '\n' };
675 return ret_buf.ToString().Split(delimiters, System.StringSplitOptions.RemoveEmptyEntries);
676 }
677
686 public void GSetServer(string server_name)
687 {
688 GReturn rc = DllGSetServer(server_name);
689
690 if(rc != G_NO_ERROR)
691 {
692 throw new System.Exception(GError(rc));
693 }
694 }
695
701 public string GServerStatus()
702 {
703 GReturn rc = DllGServerStatus(Buffer_, BufferSize_);
704
705 if(rc == G_NO_ERROR)
706 return Buffer_.ToString();
707 else
708 throw new System.Exception(GError(rc));
709 }
710
716 public string[] GListServers()
717 {
718 GReturn rc = DllGListServers(Buffer_, BufferSize_);
719
720 if(rc == G_NO_ERROR)
721 {
722 char[] delimiters = new char[] { '\n' };
723 return Buffer_.ToString().Split(delimiters, System.StringSplitOptions.RemoveEmptyEntries);
724 }
725 else
726 {
727 throw new System.Exception(GError(rc));
728 }
729 }
730
738 public void GPublishServer(string server_name, bool publish, bool save)
739 {
740 GReturn rc = DllGPublishServer(server_name, Convert.ToInt16(publish), Convert.ToInt16(save));
741
742 if (rc != G_NO_ERROR)
743 throw new System.Exception(GError(rc));
744 }
745
751 public string[] GRemoteConnections()
752 {
753 GReturn rc = DllGRemoteConnections(Buffer_, BufferSize_);
754
755 if(rc == G_NO_ERROR)
756 {
757 char[] delimiters = new char[] { '\n' };
758 return Buffer_.ToString().Split(delimiters, System.StringSplitOptions.RemoveEmptyEntries);
759 }
760 else
761 {
762 throw new System.Exception(GError(rc));
763 }
764 }
765
766 #endregion
767
768 #region "DLL Imports"
769 //Import declarations for gclib functions. Functions are private to this class and are prefixed with "Dll" to distinguish from C# functions.
770
771 #region "Error Codes"
776 private const Int32 G_NO_ERROR = 0;
777 #endregion
778
779 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GAddresses", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
780 private static extern GReturn DllGAddresses(GCStringOut addresses, GSize addresses_len);
781
782 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GArrayDownload", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
783 private static extern GReturn DllGArrayDownload(GCon g, GCStringIn array_name, GOption first, GOption last, GCStringIn buffer);
784
785 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GArrayDownloadFile", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
786 private static extern GReturn DllGArrayDownloadFile(GCon g, GCStringIn path);
787
788 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GArrayUpload", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
790
791 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GArrayUploadFile", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
792 private static extern GReturn DllGArrayUploadFile(GCon g, GCStringIn path, GCStringIn names);
793
794 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GAssign", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
795 private static extern GReturn DllGAssign(GCStringIn ip, GCStringIn mac);
796
797 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GClose", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
798 private static extern GReturn DllGClose(GCon g);
799
800 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GCommand", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
801 private static extern GReturn DllGCommand(GCon g, GCStringIn command, GCStringOut buffer, GSize bufferLength, ref GSize bytesReturned);
802
803 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GError", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
804 private static extern void DllGError(GReturn error_code, GCStringOut errorbuf, GSize error_len);
805
806 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GFirmwareDownload", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
807 private static extern GReturn DllGFirmwareDownload(GCon g, GCStringIn path);
808
809 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GInfo", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
810 private static extern GReturn DllGInfo(GCon g, GCStringOut info, GSize infoLength);
811
812 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GInterrupt", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
813 private static extern GReturn DllGInterrupt(GCon g, ref GStatus status_byte);
814
815 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GIpRequests", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
816 private static extern GReturn DllGIpRequests(GCStringOut requests, GSize requests_len);
817
818 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GMessage", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
819 private static extern GReturn DllGMessage(GCon g, GCStringOut buffer, GSize bufferLength);
820
821 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GMotionComplete", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
822 private static extern GReturn DllGMotionComplete(GCon g, GCStringIn axes);
823
824 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GOpen", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
825 private static extern GReturn DllGOpen(GCStringIn address, ref GCon g);
826
827 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GProgramDownload", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
828 private static extern GReturn DllGProgramDownload(GCon g, GCStringIn program, GCStringIn preprocessor);
829
830 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GProgramDownloadFile", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
831 private static extern GReturn DllGProgramDownloadFile(GCon g, GCStringIn path, GCStringIn preprocessor);
832
833 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GProgramUpload", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
834 private static extern GReturn DllGProgramUpload(GCon g, GCStringOut buffer, GSize bufferLength);
835
836 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GProgramUploadFile", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
837 private static extern GReturn DllGProgramUploadFile(GCon g, GCStringIn path);
838
839 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GRead", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
840 private static extern GReturn DllGRead(GCon g, byte[] record, GSize buffer_len, ref GSize bytes_read);
841
842 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GRecord", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
843 private static extern GReturn DllGRecord(GCon g, byte[] record, GOption method);
844
845 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GRecordRate", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
846 private static extern GReturn DllGRecordRate(GCon g, double period_ms);
847
848 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GTimeout", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
849 private static extern void DllGTimeout(GCon g, GOption timeoutMs);
850
851 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GVersion", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
852 private static extern GReturn DllGVersion(GCStringOut ver, GSize ver_len);
853
854 [DllImport(LibraryPath.GclibDllPath_, EntryPoint = "GWrite", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
855 private static extern GReturn DllGWrite(GCon g, GCStringIn buffer, GSize buffer_len);
856
857 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GSetupDownloadFile", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
858 private static extern GReturn DllGSetupDownloadFile(GCon g, GCStringIn file_path, GOption options, GCStringOut info, GSize info_len);
859
860 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GSetServer", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
861 private static extern GReturn DllGSetServer(GCStringIn server_name);
862
863 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GServerStatus", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
864 private static extern GReturn DllGServerStatus(GCStringOut status, GSize status_len);
865
866 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GListServers", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
867 private static extern GReturn DllGListServers(GCStringOut servers, GSize servers_len);
868
869 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GPublishServer", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
870 private static extern GReturn DllGPublishServer(GCStringIn name, GOption publish, GOption save);
871
872 [DllImport(LibraryPath.GcliboDllPath_, EntryPoint = "GRemoteConnections", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
873 private static extern GReturn DllGRemoteConnections(GCStringOut connections, GSize connections_len);
874
875 #endregion
876
877 #region "Data Record"
878
879 private T ByteArrayToDataRecord<T>(byte[] array)
880 where T : struct, GDataRecord
881 {
882 GCHandle handle = GCHandle.Alloc(array, GCHandleType.Pinned);
883 try
884 {
885 return Marshal.PtrToStructure<T>(handle.AddrOfPinnedObject());
886 }
887 catch
888 {
889 return default(T);
890 }
891 finally
892 {
893 handle.Free();
894 }
895 }
896
897 public interface GDataRecord
898 {
900 byte[] byte_array();
901 }
902
903 private static byte[] StructToByteArray(GDataRecord record) //Returns this DataRecord as a byte[]
904 {
905 int size = Marshal.SizeOf(record);
906 byte[] arr = new byte[size];
907
908 IntPtr ptr = Marshal.AllocHGlobal(size);
909 Marshal.StructureToPtr(record, ptr, true);
910 Marshal.Copy(ptr, arr, 0, size);
911 Marshal.FreeHGlobal(ptr);
912 return arr;
913 }
914
915
917 [StructLayout(LayoutKind.Sequential, Pack=1)]
919 {
920 public byte[] byte_array() { return StructToByteArray(this); }
921 /*Offset type name description*/
922
923 /*00*/ public UB header_0;
924 /*01*/ public UB header_1;
925 /*02*/ public UB header_2;
926 /*03*/ public UB header_3;
927
928 /*04-05*/ public UW sample_number;
929
930 /*06*/ public UB input_bank_0;
931 /*07*/ public UB input_bank_1;
932 /*08*/ public UB input_bank_2;
933 /*09*/ public UB input_bank_3;
934 /*10*/ public UB input_bank_4;
935 /*11*/ public UB input_bank_5;
936 /*12*/ public UB input_bank_6;
937 /*13*/ public UB input_bank_7;
938 /*14*/ public UB input_bank_8;
939 /*15*/ public UB input_bank_9;
940
941 /*16*/ public UB output_bank_0;
942 /*17*/ public UB output_bank_1;
943 /*18*/ public UB output_bank_2;
944 /*19*/ public UB output_bank_3;
945 /*20*/ public UB output_bank_4;
946 /*21*/ public UB output_bank_5;
947 /*22*/ public UB output_bank_6;
948 /*23*/ public UB output_bank_7;
949 /*24*/ public UB output_bank_8;
950 /*25*/ public UB output_bank_9;
951
952 /*26-27*/ public SW reserved_0;
953 /*28-29*/ public SW reserved_2;
954 /*30-31*/ public SW reserved_4;
955 /*32-33*/ public SW reserved_6;
956 /*34-35*/ public SW reserved_8;
957 /*36-37*/ public SW reserved_10;
958 /*38-39*/ public SW reserved_12;
959 /*40-41*/ public SW reserved_14;
960
961 /*42*/ public UB ethernet_status_a;
962 /*43*/ public UB ethernet_status_b;
963 /*44*/ public UB ethernet_status_c;
964 /*45*/ public UB ethernet_status_d;
965 /*46*/ public UB ethernet_status_e;
966 /*47*/ public UB ethernet_status_f;
967 /*48*/ public UB ethernet_status_g;
968 /*49*/ public UB ethernet_status_h;
969
970 /*50*/ public UB error_code;
971 /*51*/ public UB thread_status;
972 /*52-55*/ public UL amplifier_status;
973
974 /*56-59*/ public UL contour_segment_count;
975 /*60-61*/ public UW contour_buffer_available;
976
977 /*62-63*/ public UW s_plane_segment_count;
978 /*64-65*/ public UW s_plane_move_status;
979 /*66-69*/ public SL s_distance;
980 /*70-71*/ public UW s_plane_buffer_available;
981
982 /*72-73*/ public UW t_plane_segment_count;
983 /*74-75*/ public UW t_plane_move_status;
984 /*76-79*/ public SL t_distance;
985 /*80-81*/ public UW t_plane_buffer_available;
986
987 /*82-83*/ public UW axis_a_status;
988 /*84*/ public UB axis_a_switches;
989 /*85*/ public UB axis_a_stop_code;
990 /*86-89*/ public SL axis_a_reference_position;
991 /*90-93*/ public SL axis_a_motor_position;
992 /*94-97*/ public SL axis_a_position_error;
993 /*98-101*/ public SL axis_a_aux_position;
994 /*102-105*/ public SL axis_a_velocity;
995 /*106-109*/ public SL axis_a_torque;
996 /*110-111*/ public UW axis_a_analog_in;
997 /*112*/ public UB axis_a_halls;
998 /*113*/ public UB axis_a_reserved;
999 /*114-117*/ public SL axis_a_variable;
1000
1001 /*118-119*/ public UW axis_b_status;
1002 /*120*/ public UB axis_b_switches;
1003 /*121*/ public UB axis_b_stop_code;
1004 /*122-125*/ public SL axis_b_reference_position;
1005 /*126-129*/ public SL axis_b_motor_position;
1006 /*130-133*/ public SL axis_b_position_error;
1007 /*134-137*/ public SL axis_b_aux_position;
1008 /*138-141*/ public SL axis_b_velocity;
1009 /*142-145*/ public SL axis_b_torque;
1010 /*146-147*/ public UW axis_b_analog_in;
1011 /*148*/ public UB axis_b_halls;
1012 /*149*/ public UB axis_b_reserved;
1013 /*150-153*/ public SL axis_b_variable;
1014
1015 /*154-155*/ public UW axis_c_status;
1016 /*156*/ public UB axis_c_switches;
1017 /*157*/ public UB axis_c_stop_code;
1018 /*158-161*/ public SL axis_c_reference_position;
1019 /*162-165*/ public SL axis_c_motor_position;
1020 /*166-169*/ public SL axis_c_position_error;
1021 /*170-173*/ public SL axis_c_aux_position;
1022 /*174-177*/ public SL axis_c_velocity;
1023 /*178-181*/ public SL axis_c_torque;
1024 /*182-183*/ public UW axis_c_analog_in;
1025 /*184*/ public UB axis_c_halls;
1026 /*185*/ public UB axis_c_reserved;
1027 /*186-189*/ public SL axis_c_variable;
1028
1029 /*190-191*/ public UW axis_d_status;
1030 /*192*/ public UB axis_d_switches;
1031 /*193*/ public UB axis_d_stop_code;
1032 /*194-197*/ public SL axis_d_reference_position;
1033 /*198-201*/ public SL axis_d_motor_position;
1034 /*202-205*/ public SL axis_d_position_error;
1035 /*206-209*/ public SL axis_d_aux_position;
1036 /*210-213*/ public SL axis_d_velocity;
1037 /*214-217*/ public SL axis_d_torque;
1038 /*218-219*/ public UW axis_d_analog_in;
1039 /*220*/ public UB axis_d_halls;
1040 /*221*/ public UB axis_d_reserved;
1041 /*222-225*/ public SL axis_d_variable;
1042
1043 /*226-227*/ public UW axis_e_status;
1044 /*228*/ public UB axis_e_switches;
1045 /*229*/ public UB axis_e_stop_code;
1046 /*230-233*/ public SL axis_e_reference_position;
1047 /*234-237*/ public SL axis_e_motor_position;
1048 /*238-241*/ public SL axis_e_position_error;
1049 /*242-245*/ public SL axis_e_aux_position;
1050 /*246-249*/ public SL axis_e_velocity;
1051 /*250-253*/ public SL axis_e_torque;
1052 /*254-255*/ public UW axis_e_analog_in;
1053 /*256*/ public UB axis_e_halls;
1054 /*257*/ public UB axis_e_reserved;
1055 /*258-261*/ public SL axis_e_variable;
1056
1057 /*262-263*/ public UW axis_f_status;
1058 /*264*/ public UB axis_f_switches;
1059 /*265*/ public UB axis_f_stop_code;
1060 /*266-269*/ public SL axis_f_reference_position;
1061 /*270-273*/ public SL axis_f_motor_position;
1062 /*274-277*/ public SL axis_f_position_error;
1063 /*278-281*/ public SL axis_f_aux_position;
1064 /*282-285*/ public SL axis_f_velocity;
1065 /*286-289*/ public SL axis_f_torque;
1066 /*290-291*/ public UW axis_f_analog_in;
1067 /*292*/ public UB axis_f_halls;
1068 /*293*/ public UB axis_f_reserved;
1069 /*294-297*/ public SL axis_f_variable;
1070
1071 /*298-299*/ public UW axis_g_status;
1072 /*300*/ public UB axis_g_switches;
1073 /*301*/ public UB axis_g_stop_code;
1074 /*302-305*/ public SL axis_g_reference_position;
1075 /*306-309*/ public SL axis_g_motor_position;
1076 /*310-313*/ public SL axis_g_position_error;
1077 /*314-317*/ public SL axis_g_aux_position;
1078 /*318-321*/ public SL axis_g_velocity;
1079 /*322-325*/ public SL axis_g_torque;
1080 /*326-327*/ public UW axis_g_analog_in;
1081 /*328*/ public UB axis_g_halls;
1082 /*329*/ public UB axis_g_reserved;
1083 /*330-333*/ public SL axis_g_variable;
1084
1085 /*334-335*/ public UW axis_h_status;
1086 /*336*/ public UB axis_h_switches;
1087 /*337*/ public UB axis_h_stop_code;
1088 /*338-341*/ public SL axis_h_reference_position;
1089 /*342-345*/ public SL axis_h_motor_position;
1090 /*346-349*/ public SL axis_h_position_error;
1091 /*350-353*/ public SL axis_h_aux_position;
1092 /*354-357*/ public SL axis_h_velocity;
1093 /*358-361*/ public SL axis_h_torque;
1094 /*362-363*/ public UW axis_h_analog_in;
1095 /*364*/ public UB axis_h_halls;
1096 /*365*/ public UB axis_h_reserved;
1097 /*366-369*/ public SL axis_h_variable;
1098 }; //DataRecord4000
1099
1101 [StructLayout(LayoutKind.Sequential, Pack=1)]
1103 {
1104 public byte[] byte_array() { return StructToByteArray(this); }
1105 /*Offset type name description*/
1106
1107 /*00*/ public UB header_0;
1108 /*01*/ public UB header_1;
1109 /*02*/ public UB header_2;
1110 /*03*/ public UB header_3;
1111
1112 /*04-05*/ public UW sample_number;
1113
1114 /*06*/ public UB input_bank_0;
1115 /*07*/ public UB input_bank_1;
1116 /*08*/ public UB input_bank_2;
1117 /*09*/ public UB input_bank_3;
1118 /*10*/ public UB input_bank_4;
1119 /*11*/ public UB input_bank_5;
1120 /*12*/ public UB input_bank_6;
1121 /*13*/ public UB input_bank_7;
1122 /*14*/ public UB input_bank_8;
1123 /*15*/ public UB input_bank_9;
1124
1125 /*16*/ public UB output_bank_0;
1126 /*17*/ public UB output_bank_1;
1127 /*18*/ public UB output_bank_2;
1128 /*19*/ public UB output_bank_3;
1129 /*20*/ public UB output_bank_4;
1130 /*21*/ public UB output_bank_5;
1131 /*22*/ public UB output_bank_6;
1132 /*23*/ public UB output_bank_7;
1133 /*24*/ public UB output_bank_8;
1134 /*25*/ public UB output_bank_9;
1135
1136 /*26-27*/ public SW reserved_0;
1137 /*28-29*/ public SW reserved_2;
1138 /*30-31*/ public SW reserved_4;
1139 /*32-33*/ public SW reserved_6;
1140 /*34-35*/ public SW reserved_8;
1141 /*36-37*/ public SW reserved_10;
1142 /*38-39*/ public SW reserved_12;
1143 /*40*/ public UB ethercat_bank;
1144 /*41*/ public UB reserved_14;
1145
1146 /*42*/ public UB ethernet_status_a;
1147 /*43*/ public UB ethernet_status_b;
1148 /*44*/ public UB ethernet_status_c;
1149 /*45*/ public UB ethernet_status_d;
1150 /*46*/ public UB ethernet_status_e;
1151 /*47*/ public UB ethernet_status_f;
1152 /*48*/ public UB ethernet_status_g;
1153 /*49*/ public UB ethernet_status_h;
1154
1155 /*50*/ public UB error_code;
1156 /*51*/ public UB thread_status;
1157 /*52-55*/ public UL amplifier_status;
1158
1159 /*56-59*/ public UL contour_segment_count;
1160 /*60-61*/ public UW contour_buffer_available;
1161
1162 /*62-63*/ public UW s_plane_segment_count;
1163 /*64-65*/ public UW s_plane_move_status;
1164 /*66-69*/ public SL s_distance;
1165 /*70-71*/ public UW s_plane_buffer_available;
1166
1167 /*72-73*/ public UW t_plane_segment_count;
1168 /*74-75*/ public UW t_plane_move_status;
1169 /*76-79*/ public SL t_distance;
1170 /*80-81*/ public UW t_plane_buffer_available;
1171
1172 /*82-83*/ public UW axis_a_status;
1173 /*84*/ public UB axis_a_switches;
1174 /*85*/ public UB axis_a_stop_code;
1175 /*86-89*/ public SL axis_a_reference_position;
1176 /*90-93*/ public SL axis_a_motor_position;
1177 /*94-97*/ public SL axis_a_position_error;
1178 /*98-101*/ public SL axis_a_aux_position;
1179 /*102-105*/ public SL axis_a_velocity;
1180 /*106-109*/ public SL axis_a_torque;
1181 /*110-111*/ public UW axis_a_analog_in;
1182 /*112*/ public UB axis_a_halls;
1183 /*113*/ public UB axis_a_reserved;
1184 /*114-117*/ public SL axis_a_variable;
1185
1186 /*118-119*/ public UW axis_b_status;
1187 /*120*/ public UB axis_b_switches;
1188 /*121*/ public UB axis_b_stop_code;
1189 /*122-125*/ public SL axis_b_reference_position;
1190 /*126-129*/ public SL axis_b_motor_position;
1191 /*130-133*/ public SL axis_b_position_error;
1192 /*134-137*/ public SL axis_b_aux_position;
1193 /*138-141*/ public SL axis_b_velocity;
1194 /*142-145*/ public SL axis_b_torque;
1195 /*146-147*/ public UW axis_b_analog_in;
1196 /*148*/ public UB axis_b_halls;
1197 /*149*/ public UB axis_b_reserved;
1198 /*150-153*/ public SL axis_b_variable;
1199
1200 /*154-155*/ public UW axis_c_status;
1201 /*156*/ public UB axis_c_switches;
1202 /*157*/ public UB axis_c_stop_code;
1203 /*158-161*/ public SL axis_c_reference_position;
1204 /*162-165*/ public SL axis_c_motor_position;
1205 /*166-169*/ public SL axis_c_position_error;
1206 /*170-173*/ public SL axis_c_aux_position;
1207 /*174-177*/ public SL axis_c_velocity;
1208 /*178-181*/ public SL axis_c_torque;
1209 /*182-183*/ public UW axis_c_analog_in;
1210 /*184*/ public UB axis_c_halls;
1211 /*185*/ public UB axis_c_reserved;
1212 /*186-189*/ public SL axis_c_variable;
1213
1214 /*190-191*/ public UW axis_d_status;
1215 /*192*/ public UB axis_d_switches;
1216 /*193*/ public UB axis_d_stop_code;
1217 /*194-197*/ public SL axis_d_reference_position;
1218 /*198-201*/ public SL axis_d_motor_position;
1219 /*202-205*/ public SL axis_d_position_error;
1220 /*206-209*/ public SL axis_d_aux_position;
1221 /*210-213*/ public SL axis_d_velocity;
1222 /*214-217*/ public SL axis_d_torque;
1223 /*218-219*/ public UW axis_d_analog_in;
1224 /*220*/ public UB axis_d_halls;
1225 /*221*/ public UB axis_d_reserved;
1226 /*222-225*/ public SL axis_d_variable;
1227
1228 /*226-227*/ public UW axis_e_status;
1229 /*228*/ public UB axis_e_switches;
1230 /*229*/ public UB axis_e_stop_code;
1231 /*230-233*/ public SL axis_e_reference_position;
1232 /*234-237*/ public SL axis_e_motor_position;
1233 /*238-241*/ public SL axis_e_position_error;
1234 /*242-245*/ public SL axis_e_aux_position;
1235 /*246-249*/ public SL axis_e_velocity;
1236 /*250-253*/ public SL axis_e_torque;
1237 /*254-255*/ public UW axis_e_analog_in;
1238 /*256*/ public UB axis_e_halls;
1239 /*257*/ public UB axis_e_reserved;
1240 /*258-261*/ public SL axis_e_variable;
1241
1242 /*262-263*/ public UW axis_f_status;
1243 /*264*/ public UB axis_f_switches;
1244 /*265*/ public UB axis_f_stop_code;
1245 /*266-269*/ public SL axis_f_reference_position;
1246 /*270-273*/ public SL axis_f_motor_position;
1247 /*274-277*/ public SL axis_f_position_error;
1248 /*278-281*/ public SL axis_f_aux_position;
1249 /*282-285*/ public SL axis_f_velocity;
1250 /*286-289*/ public SL axis_f_torque;
1251 /*290-291*/ public UW axis_f_analog_in;
1252 /*292*/ public UB axis_f_halls;
1253 /*293*/ public UB axis_f_reserved;
1254 /*294-297*/ public SL axis_f_variable;
1255
1256 /*298-299*/ public UW axis_g_status;
1257 /*300*/ public UB axis_g_switches;
1258 /*301*/ public UB axis_g_stop_code;
1259 /*302-305*/ public SL axis_g_reference_position;
1260 /*306-309*/ public SL axis_g_motor_position;
1261 /*310-313*/ public SL axis_g_position_error;
1262 /*314-317*/ public SL axis_g_aux_position;
1263 /*318-321*/ public SL axis_g_velocity;
1264 /*322-325*/ public SL axis_g_torque;
1265 /*326-327*/ public UW axis_g_analog_in;
1266 /*328*/ public UB axis_g_halls;
1267 /*329*/ public UB axis_g_reserved;
1268 /*330-333*/ public SL axis_g_variable;
1269
1270 /*334-335*/ public UW axis_h_status;
1271 /*336*/ public UB axis_h_switches;
1272 /*337*/ public UB axis_h_stop_code;
1273 /*338-341*/ public SL axis_h_reference_position;
1274 /*342-345*/ public SL axis_h_motor_position;
1275 /*346-349*/ public SL axis_h_position_error;
1276 /*350-353*/ public SL axis_h_aux_position;
1277 /*354-357*/ public SL axis_h_velocity;
1278 /*358-361*/ public SL axis_h_torque;
1279 /*362-363*/ public UW axis_h_analog_in;
1280 /*364*/ public UB axis_h_halls;
1281 /*365*/ public UB axis_h_reserved;
1282 /*366-369*/ public SL axis_h_variable;
1283 }; //DataRecord52000
1284
1286
1293 [StructLayout(LayoutKind.Sequential, Pack=1)]
1295 {
1296 public byte[] byte_array() { return StructToByteArray(this); }
1297 /*Offset type name description*/
1298
1299 /*00-01*/ public UW sample_number;
1300
1301 /*02*/ public UB input_bank_0;
1302 /*03*/ public UB input_bank_1;
1303 /*04*/ public UB input_bank_2;
1304 /*05*/ public UB input_bank_3;
1305 /*06*/ public UB input_bank_4;
1306 /*07*/ public UB input_bank_5;
1307 /*08*/ public UB input_bank_6;
1308 /*09*/ public UB input_bank_7;
1309 /*10*/ public UB input_bank_8;
1310 /*11*/ public UB input_bank_9;
1311
1312 /*12*/ public UB output_bank_0;
1313 /*13*/ public UB output_bank_1;
1314 /*14*/ public UB output_bank_2;
1315 /*15*/ public UB output_bank_3;
1316 /*16*/ public UB output_bank_4;
1317 /*17*/ public UB output_bank_5;
1318 /*18*/ public UB output_bank_6;
1319 /*19*/ public UB output_bank_7;
1320 /*20*/ public UB output_bank_8;
1321 /*21*/ public UB output_bank_9;
1322
1323 /*22-23*/ public SW reserved_0;
1324 /*24-25*/ public SW reserved_2;
1325 /*26-27*/ public SW reserved_4;
1326 /*28-29*/ public SW reserved_6;
1327 /*30-31*/ public SW reserved_8;
1328 /*32-33*/ public SW reserved_10;
1329 /*34-35*/ public SW reserved_12;
1330 /*36-37*/ public SW reserved_14;
1331
1332 /*38*/ public UB reserved_16;
1333 /*39*/ public UB reserved_17;
1334 /*40*/ public UB reserved_18;
1335 /*41*/ public UB reserved_19;
1336 /*42*/ public UB reserved_20;
1337 /*43*/ public UB reserved_21;
1338 /*44*/ public UB reserved_22;
1339 /*45*/ public UB reserved_23;
1340
1341 /*46*/ public UB error_code;
1342 /*47*/ public UB thread_status;
1343 /*48-51*/ public UL reserved_24;
1344
1345 /*52-55*/ public UL contour_segment_count;
1346 /*56-57*/ public UW contour_buffer_available;
1347
1348 /*58-59*/ public UW s_plane_segment_count;
1349 /*60-61*/ public UW s_plane_move_status;
1350 /*62-65*/ public SL s_distance;
1351 /*66-67*/ public UW s_plane_buffer_available;
1352
1353 /*68-69*/ public UW t_plane_segment_count;
1354 /*70-71*/ public UW t_plane_move_status;
1355 /*72-75*/ public SL t_distance;
1356 /*76-77*/ public UW t_plane_buffer_available;
1357
1358 /*78-79*/ public UW axis_a_status;
1359 /*80*/ public UB axis_a_switches;
1360 /*81*/ public UB axis_a_stop_code;
1361 /*82-85*/ public SL axis_a_reference_position;
1362 /*86-89*/ public SL axis_a_motor_position;
1363 /*90-93*/ public SL axis_a_position_error;
1364 /*94-97*/ public SL axis_a_aux_position;
1365 /*98-101*/ public SL axis_a_velocity;
1366 /*102-105*/ public SL axis_a_torque;
1367 /*106-107*/ public UW axis_a_analog_in;
1368 /*108*/ public UB axis_a_reserved_0;
1369 /*109*/ public UB axis_a_reserved_1;
1370 /*110-113*/ public SL axis_a_variable;
1371
1372 /*114-115*/ public UW axis_b_status;
1373 /*116*/ public UB axis_b_switches;
1374 /*117*/ public UB axis_b_stop_code;
1375 /*118-121*/ public SL axis_b_reference_position;
1376 /*122-125*/ public SL axis_b_motor_position;
1377 /*126-129*/ public SL axis_b_position_error;
1378 /*130-133*/ public SL axis_b_aux_position;
1379 /*134-137*/ public SL axis_b_velocity;
1380 /*138-141*/ public SL axis_b_torque;
1381 /*142-143*/ public UW axis_b_analog_in;
1382 /*144*/ public UB axis_b_reserved_0;
1383 /*145*/ public UB axis_b_reserved_1;
1384 /*146-149*/ public SL axis_b_variable;
1385
1386 /*150-151*/ public UW axis_c_status;
1387 /*152*/ public UB axis_c_switches;
1388 /*153*/ public UB axis_c_stop_code;
1389 /*154-157*/ public SL axis_c_reference_position;
1390 /*158-161*/ public SL axis_c_motor_position;
1391 /*162-165*/ public SL axis_c_position_error;
1392 /*166-169*/ public SL axis_c_aux_position;
1393 /*170-173*/ public SL axis_c_velocity;
1394 /*174-177*/ public SL axis_c_torque;
1395 /*178-179*/ public UW axis_c_analog_in;
1396 /*180*/ public UB axis_c_reserved_0;
1397 /*181*/ public UB axis_c_reserved_1;
1398 /*182-185*/ public SL axis_c_variable;
1399
1400 /*186-187*/ public UW axis_d_status;
1401 /*188*/ public UB axis_d_switches;
1402 /*189*/ public UB axis_d_stop_code;
1403 /*190-193*/ public SL axis_d_reference_position;
1404 /*194-197*/ public SL axis_d_motor_position;
1405 /*198-201*/ public SL axis_d_position_error;
1406 /*202-205*/ public SL axis_d_aux_position;
1407 /*206-209*/ public SL axis_d_velocity;
1408 /*210-213*/ public SL axis_d_torque;
1409 /*214-215*/ public UW axis_d_analog_in;
1410 /*216*/ public UB axis_d_reserved_0;
1411 /*217*/ public UB axis_d_reserved_1;
1412 /*218-221*/ public SL axis_d_variable;
1413
1414 /*222-223*/ public UW axis_e_status;
1415 /*224*/ public UB axis_e_switches;
1416 /*225*/ public UB axis_e_stop_code;
1417 /*226-229*/ public SL axis_e_reference_position;
1418 /*230-233*/ public SL axis_e_motor_position;
1419 /*234-237*/ public SL axis_e_position_error;
1420 /*238-241*/ public SL axis_e_aux_position;
1421 /*242-245*/ public SL axis_e_velocity;
1422 /*256-249*/ public SL axis_e_torque;
1423 /*250-251*/ public UW axis_e_analog_in;
1424 /*252*/ public UB axis_e_reserved_0;
1425 /*253*/ public UB axis_e_reserved_1;
1426 /*254-257*/ public SL axis_e_variable;
1427
1428 /*258-259*/ public UW axis_f_status;
1429 /*260*/ public UB axis_f_switches;
1430 /*261*/ public UB axis_f_stop_code;
1431 /*262-265*/ public SL axis_f_reference_position;
1432 /*266-269*/ public SL axis_f_motor_position;
1433 /*270-273*/ public SL axis_f_position_error;
1434 /*274-277*/ public SL axis_f_aux_position;
1435 /*278-281*/ public SL axis_f_velocity;
1436 /*282-285*/ public SL axis_f_torque;
1437 /*286-287*/ public UW axis_f_analog_in;
1438 /*288*/ public UB axis_f_reserved_0;
1439 /*289*/ public UB axis_f_reserved_1;
1440 /*290-293*/ public SL axis_f_variable;
1441
1442 /*294-295*/ public UW axis_g_status;
1443 /*296*/ public UB axis_g_switches;
1444 /*297*/ public UB axis_g_stop_code;
1445 /*298-301*/ public SL axis_g_reference_position;
1446 /*302-305*/ public SL axis_g_motor_position;
1447 /*306-309*/ public SL axis_g_position_error;
1448 /*310-313*/ public SL axis_g_aux_position;
1449 /*314-317*/ public SL axis_g_velocity;
1450 /*318-321*/ public SL axis_g_torque;
1451 /*322-323*/ public UW axis_g_analog_in;
1452 /*324*/ public UB axis_g_reserved_0;
1453 /*325*/ public UB axis_g_reserved_1;
1454 /*326-329*/ public SL axis_g_variable;
1455
1456 /*330-331*/ public UW axis_h_status;
1457 /*332*/ public UB axis_h_switches;
1458 /*333*/ public UB axis_h_stop_code;
1459 /*334-337*/ public SL axis_h_reference_position;
1460 /*338-341*/ public SL axis_h_motor_position;
1461 /*342-345*/ public SL axis_h_position_error;
1462 /*346-349*/ public SL axis_h_aux_position;
1463 /*350-353*/ public SL axis_h_velocity;
1464 /*354-357*/ public SL axis_h_torque;
1465 /*358-359*/ public UW axis_h_analog_in;
1466 /*360*/ public UB axis_h_reserved_0;
1467 /*361*/ public UB axis_h_reserved_1;
1468 /*362-365*/ public SL axis_h_variable;
1469 }; //DataRecord1806
1470
1472 [StructLayout(LayoutKind.Sequential, Pack=1)]
1474 {
1475 public byte[] byte_array() { return StructToByteArray(this); }
1476
1477 /*Offset type name description*/
1478
1479 /*00*/ public UB header_0;
1480 /*01*/ public UB header_1;
1481 /*02*/ public UB header_2;
1482 /*03*/ public UB header_3;
1483
1484 /*04-05*/ public UW sample_number;
1485
1486 /*06*/ public UB input_bank_0;
1487 /*07*/ public UB input_bank_1;
1488 /*08*/ public UB input_bank_2;
1489 /*09*/ public UB input_bank_3;
1490 /*10*/ public UB input_bank_4;
1491 /*11*/ public UB input_bank_5;
1492 /*12*/ public UB input_bank_6;
1493 /*13*/ public UB input_bank_7;
1494 /*14*/ public UB input_bank_8;
1495 /*15*/ public UB input_bank_9;
1496
1497 /*16*/ public UB output_bank_0;
1498 /*17*/ public UB output_bank_1;
1499 /*18*/ public UB output_bank_2;
1500 /*19*/ public UB output_bank_3;
1501 /*20*/ public UB output_bank_4;
1502 /*21*/ public UB output_bank_5;
1503 /*22*/ public UB output_bank_6;
1504 /*23*/ public UB output_bank_7;
1505 /*24*/ public UB output_bank_8;
1506 /*25*/ public UB output_bank_9;
1507
1508 /*26*/ public UB error_code;
1509 /*27*/ public UB general_status;
1510
1511 /*28-29*/ public UW s_plane_segment_count;
1512 /*30-31*/ public UW s_plane_move_status;
1513 /*32-35*/ public SL s_distance;
1514
1515 /*36-37*/ public UW t_plane_segment_count;
1516 /*38-39*/ public UW t_plane_move_status;
1517 /*40-43*/ public SL t_distance;
1518
1519 /*44-45*/ public UW axis_a_status;
1520 /*46*/ public UB axis_a_switches;
1521 /*47*/ public UB axis_a_stop_code;
1522 /*48-51*/ public SL axis_a_reference_position;
1523 /*52-55*/ public SL axis_a_motor_position;
1524 /*56-59*/ public SL axis_a_position_error;
1525 /*60-63*/ public SL axis_a_aux_position;
1526 /*64-67*/ public SL axis_a_velocity;
1527 /*68-69*/ public SW axis_a_torque;
1528 /*70-71*/ public UW axis_a_analog_in;
1529
1530 /*72-73*/ public UW axis_b_status;
1531 /*74*/ public UB axis_b_switches;
1532 /*75*/ public UB axis_b_stop_code;
1533 /*76-79*/ public SL axis_b_reference_position;
1534 /*80-83*/ public SL axis_b_motor_position;
1535 /*84-87*/ public SL axis_b_position_error;
1536 /*88-91*/ public SL axis_b_aux_position;
1537 /*92-95*/ public SL axis_b_velocity;
1538 /*96-97*/ public SW axis_b_torque;
1539 /*98-99*/ public UW axis_b_analog_in;
1540
1541 /*100-101*/ public UW axis_c_status;
1542 /*102*/ public UB axis_c_switches;
1543 /*103*/ public UB axis_c_stop_code;
1544 /*104-107*/ public SL axis_c_reference_position;
1545 /*108-111*/ public SL axis_c_motor_position;
1546 /*112-115*/ public SL axis_c_position_error;
1547 /*116-119*/ public SL axis_c_aux_position;
1548 /*120-123*/ public SL axis_c_velocity;
1549 /*124-125*/ public SW axis_c_torque;
1550 /*126-127*/ public UW axis_c_analog_in;
1551
1552 /*128-129*/ public UW axis_d_status;
1553 /*130*/ public UB axis_d_switches;
1554 /*131*/ public UB axis_d_stop_code;
1555 /*132-135*/ public SL axis_d_reference_position;
1556 /*136-139*/ public SL axis_d_motor_position;
1557 /*140-143*/ public SL axis_d_position_error;
1558 /*144-147*/ public SL axis_d_aux_position;
1559 /*148-151*/ public SL axis_d_velocity;
1560 /*152-153*/ public SW axis_d_torque;
1561 /*154-155*/ public UW axis_d_analog_in;
1562
1563 /*156-157*/ public UW axis_e_status;
1564 /*158*/ public UB axis_e_switches;
1565 /*159*/ public UB axis_e_stop_code;
1566 /*160-163*/ public SL axis_e_reference_position;
1567 /*164-167*/ public SL axis_e_motor_position;
1568 /*168-171*/ public SL axis_e_position_error;
1569 /*172-175*/ public SL axis_e_aux_position;
1570 /*176-179*/ public SL axis_e_velocity;
1571 /*180-181*/ public SW axis_e_torque;
1572 /*182-183*/ public UW axis_e_analog_in;
1573
1574 /*184-185*/ public UW axis_f_status;
1575 /*186*/ public UB axis_f_switches;
1576 /*187*/ public UB axis_f_stop_code;
1577 /*188-191*/ public SL axis_f_reference_position;
1578 /*192-195*/ public SL axis_f_motor_position;
1579 /*196-199*/ public SL axis_f_position_error;
1580 /*200-203*/ public SL axis_f_aux_position;
1581 /*204-207*/ public SL axis_f_velocity;
1582 /*208-209*/ public SW axis_f_torque;
1583 /*210-211*/ public UW axis_f_analog_in;
1584
1585 /*212-213*/ public UW axis_g_status;
1586 /*214*/ public UB axis_g_switches;
1587 /*215*/ public UB axis_g_stop_code;
1588 /*216-219*/ public SL axis_g_reference_position;
1589 /*220-223*/ public SL axis_g_motor_position;
1590 /*224-227*/ public SL axis_g_position_error;
1591 /*228-231*/ public SL axis_g_aux_position;
1592 /*232-235*/ public SL axis_g_velocity;
1593 /*236-237*/ public SW axis_g_torque;
1594 /*238-239*/ public UW axis_g_analog_in;
1595
1596 /*240-241*/ public UW axis_h_status;
1597 /*242*/ public UB axis_h_switches;
1598 /*243*/ public UB axis_h_stop_code;
1599 /*244-247*/ public SL axis_h_reference_position;
1600 /*248-251*/ public SL axis_h_motor_position;
1601 /*252-255*/ public SL axis_h_position_error;
1602 /*256-259*/ public SL axis_h_aux_position;
1603 /*260-263*/ public SL axis_h_velocity;
1604 /*264-265*/ public SW axis_h_torque;
1605 /*266-267*/ public UW axis_h_analog_in;
1606 }; //DataRecord2013
1607
1614 [StructLayout(LayoutKind.Sequential, Pack=1)]
1616 {
1617 public byte[] byte_array() { return StructToByteArray(this); }
1618
1619 /*Offset type name description*/
1620
1621 /*00-01*/ public UW sample_number;
1622
1623 /*02*/ public UB input_bank_0;
1624 /*03*/ public UB input_bank_1;
1625 /*04*/ public UB input_bank_2;
1626 /*05*/ public UB input_bank_3;
1627 /*06*/ public UB input_bank_4;
1628 /*07*/ public UB input_bank_5;
1629 /*08*/ public UB input_bank_6;
1630 /*09*/ public UB input_bank_7;
1631 /*10*/ public UB input_bank_8;
1632 /*11*/ public UB input_bank_9;
1633
1634 /*12*/ public UB output_bank_0;
1635 /*13*/ public UB output_bank_1;
1636 /*14*/ public UB output_bank_2;
1637 /*15*/ public UB output_bank_3;
1638 /*16*/ public UB output_bank_4;
1639 /*17*/ public UB output_bank_5;
1640 /*18*/ public UB output_bank_6;
1641 /*19*/ public UB output_bank_7;
1642 /*20*/ public UB output_bank_8;
1643 /*21*/ public UB output_bank_9;
1644
1645 /*22*/ public UB error_code;
1646 /*23*/ public UB general_status;
1647
1648 /*24-25*/ public UW s_plane_segment_count;
1649 /*26-27*/ public UW s_plane_move_status;
1650 /*28-31*/ public SL s_distance;
1651
1652 /*32-33*/ public UW t_plane_segment_count;
1653 /*34-35*/ public UW t_plane_move_status;
1654 /*36-39*/ public SL t_distance;
1655
1656 /*40-41*/ public UW axis_a_status;
1657 /*42*/ public UB axis_a_switches;
1658 /*43*/ public UB axis_a_stop_code;
1659 /*44-47*/ public SL axis_a_reference_position;
1660 /*48-51*/ public SL axis_a_motor_position;
1661 /*52-55*/ public SL axis_a_position_error;
1662 /*56-59*/ public SL axis_a_aux_position;
1663 /*60-63*/ public SL axis_a_velocity;
1664 /*64-65*/ public SW axis_a_torque;
1665 /*66*/ public UB axis_a_reserved_0;
1666 /*67*/ public UB axis_a_reserved_1;
1667
1668 /*68-69*/ public UW axis_b_status;
1669 /*70*/ public UB axis_b_switches;
1670 /*71*/ public UB axis_b_stop_code;
1671 /*72-75*/ public SL axis_b_reference_position;
1672 /*76-79*/ public SL axis_b_motor_position;
1673 /*80-83*/ public SL axis_b_position_error;
1674 /*84-87*/ public SL axis_b_aux_position;
1675 /*88-91*/ public SL axis_b_velocity;
1676 /*92-93*/ public SW axis_b_torque;
1677 /*94*/ public UB axis_b_reserved_0;
1678 /*95*/ public UB axis_b_reserved_1;
1679
1680 /*96-97*/ public UW axis_c_status;
1681 /*98*/ public UB axis_c_switches;
1682 /*99*/ public UB axis_c_stop_code;
1683 /*100-103*/ public SL axis_c_reference_position;
1684 /*104-107*/ public SL axis_c_motor_position;
1685 /*108-111*/ public SL axis_c_position_error;
1686 /*112-115*/ public SL axis_c_aux_position;
1687 /*116-119*/ public SL axis_c_velocity;
1688 /*120-121*/ public SW axis_c_torque;
1689 /*122*/ public UB axis_c_reserved_0;
1690 /*123*/ public UB axis_c_reserved_1;
1691
1692 /*124-125*/ public UW axis_d_status;
1693 /*126*/ public UB axis_d_switches;
1694 /*127*/ public UB axis_d_stop_code;
1695 /*128-131*/ public SL axis_d_reference_position;
1696 /*132-135*/ public SL axis_d_motor_position;
1697 /*136-139*/ public SL axis_d_position_error;
1698 /*140-143*/ public SL axis_d_aux_position;
1699 /*144-147*/ public SL axis_d_velocity;
1700 /*148-149*/ public SW axis_d_torque;
1701 /*150*/ public UB axis_d_reserved_0;
1702 /*151*/ public UB axis_d_reserved_1;
1703
1704 }; //DataRecord1802
1705
1707 [StructLayout(LayoutKind.Sequential, Pack=1)]
1709 {
1710 public byte[] byte_array() { return StructToByteArray(this); }
1711
1712 /*Offset type name description*/
1713
1714 /*00*/ public UB header_0;
1715 /*01*/ public UB header_1;
1716 /*02*/ public UB header_2;
1717 /*03*/ public UB header_3;
1718
1719 /*04-05*/ public UW sample_number;
1720
1721 /*06*/ public UB input_bank_0;
1722 /*07*/ public UB input_bank_1;
1723
1724 /*08*/ public UB output_bank_0;
1725 /*09*/ public UB output_bank_1;
1726
1727 /*10*/ public UB error_code;
1728 /*11*/ public UB thread_status;
1729
1730 /*12-13*/ public UW input_analog_2;
1731
1732 /*14-15*/ public UW output_analog_1;
1733 /*16-17*/ public UW output_analog_2;
1734
1735 /*18-21*/ public UL amplifier_status;
1736
1737 /*22-25*/ public UL contour_segment_count;
1738 /*26-27*/ public UW contour_buffer_available;
1739
1740 /*28-29*/ public UW s_plane_segment_count;
1741 /*30-31*/ public UW s_plane_move_status;
1742 /*32-35*/ public SL s_distance;
1743 /*36-37*/ public UW s_plane_buffer_available;
1744
1745 /*38-39*/ public UW axis_a_status;
1746 /*40*/ public UB axis_a_switches;
1747 /*41*/ public UB axis_a_stop_code;
1748 /*42-45*/ public SL axis_a_reference_position;
1749 /*46-49*/ public SL axis_a_motor_position;
1750 /*50-53*/ public SL axis_a_position_error;
1751 /*54-57*/ public SL axis_a_aux_position;
1752 /*58-61*/ public SL axis_a_velocity;
1753 /*62-65*/ public SL axis_a_torque;
1754 /*66-67*/ public UW axis_a_analog_in;
1755 /*68*/ public UB axis_a_halls;
1756 /*69*/ public UB axis_a_reserved;
1757 /*70-73*/ public SL axis_a_variable;
1758 }; //DataRecord30000
1759
1761 [StructLayout(LayoutKind.Sequential, Pack=1)]
1763 {
1764 public byte[] byte_array() { return StructToByteArray(this); }
1765
1766 /*Offset type name description*/
1767
1768 /*00*/ public UB header_0;
1769 /*01*/ public UB header_1;
1770 /*02*/ public UB header_2;
1771 /*03*/ public UB header_3;
1772
1773 /*04-05*/ public UW sample_number;
1774 /*06*/ public UB error_code;
1775 /*07*/ public UB general_status;
1776
1777 /*08-09*/ public UW output_analog_0;
1778 /*10-11*/ public UW output_analog_1;
1779 /*12-13*/ public UW output_analog_2;
1780 /*14-15*/ public UW output_analog_3;
1781 /*16-17*/ public UW output_analog_4;
1782 /*18-19*/ public UW output_analog_5;
1783 /*20-21*/ public UW output_analog_6;
1784 /*22-23*/ public UW output_analog_7;
1785
1786 /*24-25*/ public UW input_analog_0;
1787 /*26-27*/ public UW input_analog_1;
1788 /*28-29*/ public UW input_analog_2;
1789 /*30-31*/ public UW input_analog_3;
1790 /*32-33*/ public UW input_analog_4;
1791 /*34-35*/ public UW input_analog_5;
1792 /*36-37*/ public UW input_analog_6;
1793 /*38-39*/ public UW input_analog_7;
1794
1795 /*40-41*/ public UW output_bank_0;
1796
1797 /*42-43*/ public UW input_bank_0;
1798
1799 /*44-47*/ public UL pulse_count_0;
1800 /*48-51*/ public SL zc_variable;
1801 /*52-55*/ public SL zd_variable;
1802
1803 /*56-59*/ public SL encoder_0;
1804 /*60-63*/ public SL encoder_1;
1805 /*64-67*/ public SL encoder_2;
1806 /*68-71*/ public SL encoder_3;
1807
1808 }; //GDataRecord47000_ENC
1809
1811 [StructLayout(LayoutKind.Sequential, Pack=1)]
1813 {
1814 public byte[] byte_array() { return StructToByteArray(this); }
1815
1816 /*Offset type name description*/
1817
1818 /*00*/ public UB header_0;
1819 /*01*/ public UB header_1;
1820 /*02*/ public UB header_2;
1821 /*03*/ public UB header_3;
1822
1823 /*04-05*/ public UW sample_number;
1824 /*06*/ public UB error_code;
1825 /*07*/ public UB general_status;
1826
1827 /*08-09*/ public UW output_analog_0;
1828 /*10-11*/ public UW output_analog_1;
1829 /*12-13*/ public UW output_analog_2;
1830 /*14-15*/ public UW output_analog_3;
1831 /*16-17*/ public UW output_analog_4;
1832 /*18-19*/ public UW output_analog_5;
1833 /*20-21*/ public UW output_analog_6;
1834 /*22-23*/ public UW output_analog_7;
1835
1836 /*24-25*/ public UW input_analog_0;
1837 /*26-27*/ public UW input_analog_1;
1838 /*28-29*/ public UW input_analog_2;
1839 /*30-31*/ public UW input_analog_3;
1840 /*32-33*/ public UW input_analog_4;
1841 /*34-35*/ public UW input_analog_5;
1842 /*36-37*/ public UW input_analog_6;
1843 /*38-39*/ public UW input_analog_7;
1844
1845 /*40-41*/ public UW output_bank_0;
1846 /*42-43*/ public UW output_bank_1;
1847
1848 /*44-45*/ public UW input_bank_0;
1849 /*46-47*/ public UW input_bank_1;
1850
1851 /*48-51*/ public UL pulse_count_0;
1852 /*52-55*/ public SL zc_variable;
1853 /*56-59*/ public SL zd_variable;
1854
1855 /*60-63*/ public SL encoder_0;
1856 /*64-67*/ public SL encoder_1;
1857 /*68-71*/ public SL encoder_2;
1858 /*72-75*/ public SL encoder_3;
1859
1860 }; //GDataRecord47300_ENC
1861
1863 [StructLayout(LayoutKind.Sequential, Pack=1)]
1865 {
1866 public byte[] byte_array() { return StructToByteArray(this); }
1867
1868 /*Offset type name description*/
1869
1870 /*00*/ public UB header_0;
1871 /*01*/ public UB header_1;
1872 /*02*/ public UB header_2;
1873 /*03*/ public UB header_3;
1874
1875 /*04-05*/ public UW sample_number;
1876 /*06*/ public UB error_code;
1877 /*07*/ public UB general_status;
1878
1879 /*08-09*/ public UW output_analog_0;
1880 /*10-11*/ public UW output_analog_1;
1881 /*12-13*/ public UW output_analog_2;
1882 /*14-15*/ public UW output_analog_3;
1883 /*16-17*/ public UW output_analog_4;
1884 /*18-19*/ public UW output_analog_5;
1885 /*20-21*/ public UW output_analog_6;
1886 /*22-23*/ public UW output_analog_7;
1887
1888 /*24-25*/ public UW input_analog_0;
1889 /*26-27*/ public UW input_analog_1;
1890 /*28-29*/ public UW input_analog_2;
1891 /*30-31*/ public UW input_analog_3;
1892 /*32-33*/ public UW input_analog_4;
1893 /*34-35*/ public UW input_analog_5;
1894 /*36-37*/ public UW input_analog_6;
1895 /*38-39*/ public UW input_analog_7;
1896
1897 /*40-41*/ public UW output_bank_0;
1898 /*42-43*/ public UW output_bank_1;
1899
1900 /*44-45*/ public UW input_bank_0;
1901 /*46-47*/ public UW input_bank_1;
1902
1903 /*48-51*/ public UL pulse_count_0;
1904 /*52-55*/ public SL zc_variable;
1905 /*56-59*/ public SL zd_variable;
1906
1907 /*60-61*/ public UW output_bank_2;
1908 /*62-63*/ public UW output_back_3;
1909
1910 /*64-65*/ public UW input_bank_2;
1911 /*66-67*/ public UW input_bank_3;
1912
1913 }; //GDataRecord47300_24EX
1914
1916 [StructLayout(LayoutKind.Sequential, Pack=1)]
1918 {
1919 public byte[] byte_array() { return StructToByteArray(this); }
1920 /*Offset type name description*/
1921
1922 /*00*/ public UB header_0;
1923 /*01*/ public UB header_1;
1924 /*02*/ public UB header_2;
1925 /*03*/ public UB header_3;
1926
1927 /*04-05*/ public UW sample_number;
1928 /*06*/ public UB error_code;
1929 /*07*/ public UB general_status;
1930
1931 /*08-09*/ public UW output_analog_0;
1932 /*10-11*/ public UW output_analog_1;
1933 /*12-13*/ public UW output_analog_2;
1934 /*14-15*/ public UW output_analog_3;
1935 /*16-17*/ public UW output_analog_4;
1936 /*18-19*/ public UW output_analog_5;
1937 /*20-21*/ public UW output_analog_6;
1938 /*22-23*/ public UW output_analog_7;
1939
1940 /*24-25*/ public UW input_analog_0;
1941 /*26-27*/ public UW input_analog_1;
1942 /*28-29*/ public UW input_analog_2;
1943 /*30-31*/ public UW input_analog_3;
1944 /*32-33*/ public UW input_analog_4;
1945 /*34-35*/ public UW input_analog_5;
1946 /*36-37*/ public UW input_analog_6;
1947 /*38-39*/ public UW input_analog_7;
1948
1949 /*40*/ public UB output_byte_0;
1950 /*41*/ public UB output_byte_1;
1951 /*42*/ public UB output_byte_2;
1952
1953 /*43*/ public UB input_byte_0;
1954 /*44*/ public UB input_byte_1;
1955 /*45*/ public UB input_byte_2;
1956 /*46*/ public UB input_byte_3;
1957 /*47*/ public UB input_byte_4;
1958
1959 /*48-51*/ public UL pulse_count_0;
1960 /*52-55*/ public SL zc_variable;
1961 /*56-59*/ public SL zd_variable;
1962
1963 /*60-63*/ public SL encoder_0;
1964 /*64-67*/ public SL encoder_1;
1965 /*68-71*/ public SL encoder_2;
1966 /*72-75*/ public SL encoder_3;
1967
1968 }; //GDataRecord47162
1969
1970 #endregion
1971} //gclib class
1972
void GArrayDownloadFile(string Path)
Allows downloading of a program array file to the controller.
Definition gclib.cs:153
string GProgramUpload()
Allows uploading of a DMC program to a string.
Definition gclib.cs:499
void GAssign(string ip, string mac)
Assigns IP address over the Ethernet to a controller at a given MAC address.
Definition gclib.cs:224
string GVersion()
Used to get the gclib version.
Definition gclib.cs:614
void GOpen(string address)
Used to open a connection to Galil hardware.
Definition gclib.cs:445
string GServerStatus()
Retrieves the name of your local gcaps server and whether or not it is currently published.
Definition gclib.cs:701
void GWrite(string buffer)
Performs a write on the connection.
Definition gclib.cs:635
gclib()
Constructor of the gclib wrapper class.
Definition gclib.cs:85
string[] GIpRequests()
Provides a list of all Galil controllers requesting IP addresses via BOOT-P or DHCP.
Definition gclib.cs:386
List< double > GArrayUpload(string array_name, Int16 first=-1, Int16 last=-1)
Uploads array data from the controller's array table.
Definition gclib.cs:173
string GCommand(string Command, bool Trim=true)
Used for command-and-response transactions.
Definition gclib.cs:257
void GArrayDownload(string array_name, ref List< double > data, Int16 first=-1, Int16 last=-1)
Downloads array data to a pre-dimensioned array in the controller's array table.
Definition gclib.cs:126
string GInfo()
Provides a useful connection string.
Definition gclib.cs:344
void GPublishServer(string server_name, bool publish, bool save)
Publishes or removes local gcaps server from the network.
Definition gclib.cs:738
void GProgramDownload(string program, string preprocessor="")
Allows downloading of a DMC program from a string buffer.
Definition gclib.cs:465
byte GInterrupt()
Provides access to PCI and UDP interrupts from the controller.
Definition gclib.cs:364
string GMessage()
Provides access to unsolicited messages.
Definition gclib.cs:407
void GSetServer(string server_name)
Connects gclib to a new gcaps server.
Definition gclib.cs:686
void GProgramDownloadFile(string file_path, string preprocessor="")
Allows downloading of a DMC program from file.
Definition gclib.cs:483
void GMotionComplete(string axes)
Blocking call that returns once all axes specified have completed their motion.
Definition gclib.cs:428
void GTimeout(Int16 timeout_ms)
Set the timeout of communication transactions. Use -1 to set the original timeout from GOpen().
Definition gclib.cs:604
string[] GListServers()
Retrieves a list of gcaps servers that are advertising themselves on the local network.
Definition gclib.cs:716
double GCmdD(string Command)
Used for command-and-response transactions.
Definition gclib.cs:301
void GProgramUploadFile(string file_path)
Allows uploading of a DMC program to a file.
Definition gclib.cs:520
void GClose()
Used to close a connection to Galil hardware.
Definition gclib.cs:239
string[] GRemoteConnections()
Returns a list of IP Addresses that currently have an open connection to your hardware.
Definition gclib.cs:751
Int16 GCmdI(string Command)
Used for command-and-response transactions.
Definition gclib.cs:288
void GRecordRate(double period_ms)
Sets the asynchronous data record to a user-specified period via DR.
Definition gclib.cs:588
string[] GAddresses()
Return a string array of available connection addresses.
Definition gclib.cs:102
void GArrayUploadFile(string Path, string Names)
Allows uploading of a program array file from the controller to an array CSV file.
Definition gclib.cs:206
string[] GSetupDownloadFile(string path, Int32 options)
Allows downloading of a Galil compressed backup (gcb) file to the controller.
Definition gclib.cs:655
void GFirmwareDownload(string filepath)
Upgrade firmware.
Definition gclib.cs:330
byte[] GRead()
Performs a read on the connection.
Definition gclib.cs:536
Provides a class that binds to gclib's unmanaged dll. Wraps each call and provides a more user-friend...
Definition gclib.cs:68
const char * GBufIn
Data input to the library. No null-termination, function will have a GSize to indicate bytes to write...
Definition gclib.h:100
int GReturn
Every function returns a value of type GReturn. See gclib_errors.h for possible values.
Definition gclib.h:93
int GOption
Option integer for various formatting, etc.
Definition gclib.h:96
unsigned char GStatus
Interrupt status byte.
Definition gclib.h:101
#define G_NO_ERROR
Return value if function succeeded.
GCLIB_DLL_EXPORTED GReturn GCALL GCommand(GCon g, GCStringIn command, GBufOut buffer, GSize buffer_len, GSize *bytes_returned)
Performs a command-and-response transaction on the connection.
unsigned int GSize
Size of buffers, etc.
Definition gclib.h:95
char * GBufOut
Data output from the library. No null-termination implied. Returned values may be null-terminated,...
Definition gclib.h:99
void * GCon
Connection handle. Unique for each connection in process. Assigned a non-zero value in GOpen().
Definition gclib.h:94
GCLIB_DLL_EXPORTED void GCALL GError(GReturn rc, GCStringOut error, GSize error_len)
Provides a human-readable description string for return codes.
Definition gclibo.c:459
char * GCStringOut
C-string output from the library. Implies null-termination.
Definition gclib.h:97
const char * GCStringIn
C-string input to the library. Implies null-termination.
Definition gclib.h:98
GReturn vector(GCon g, char *file)
Puts controller into Vector Mode and accepts a file defining vector points.
Definition vector.cpp:36
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
SL axis_c_aux_position
C axis auxiliary position.
Definition gclib.cs:1686
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:1617
UB input_bank_3
general input bank 3 (inputs 25-32).
Definition gclib.cs:1626
UB input_bank_0
general input bank 0 (inputs 1-8).
Definition gclib.cs:1623
SL axis_d_reference_position
D axis reference position.
Definition gclib.cs:1695
SL axis_b_position_error
B axis position error.
Definition gclib.cs:1673
UB axis_d_stop_code
D axis stop code.
Definition gclib.cs:1694
UB axis_a_switches
A axis switches.
Definition gclib.cs:1657
UB output_bank_3
general output bank 3 (outputs 25-32).
Definition gclib.cs:1637
UB axis_c_reserved_1
Reserved.
Definition gclib.cs:1690
UB input_bank_1
general input bank 1 (inputs 9-16).
Definition gclib.cs:1624
SL axis_d_position_error
D axis position error.
Definition gclib.cs:1697
UB axis_a_reserved_0
Reserved.
Definition gclib.cs:1665
SL axis_d_velocity
D axis velocity.
Definition gclib.cs:1699
UB axis_b_switches
B axis switches.
Definition gclib.cs:1669
SL axis_a_motor_position
A axis motor position.
Definition gclib.cs:1660
UB input_bank_2
general input bank 2 (inputs 17-24).
Definition gclib.cs:1625
UW s_plane_segment_count
segment count of coordinated move for S plane.
Definition gclib.cs:1648
UB axis_d_reserved_1
Reserved.
Definition gclib.cs:1702
UB output_bank_2
general output bank 2 (outputs 17-24).
Definition gclib.cs:1636
SL axis_c_motor_position
C axis motor position.
Definition gclib.cs:1684
SL axis_c_position_error
C axis position error.
Definition gclib.cs:1685
SW axis_d_torque
D axis torque.
Definition gclib.cs:1700
UB axis_b_stop_code
B axis stop code.
Definition gclib.cs:1670
UW sample_number
sample number.
Definition gclib.cs:1621
SL axis_a_velocity
A axis velocity.
Definition gclib.cs:1663
UB axis_c_stop_code
C axis stop code.
Definition gclib.cs:1682
UB output_bank_7
general output bank 7 (outputs 57-64).
Definition gclib.cs:1641
UB input_bank_8
general input bank 8 (inputs 65-72).
Definition gclib.cs:1631
UW axis_d_status
D axis status.
Definition gclib.cs:1692
UB input_bank_9
general input bank 9 (inputs 73-80).
Definition gclib.cs:1632
SL axis_a_position_error
A axis position error.
Definition gclib.cs:1661
SL axis_a_aux_position
A axis auxiliary position.
Definition gclib.cs:1662
UW axis_a_status
A axis status.
Definition gclib.cs:1656
UB output_bank_4
general output bank 4 (outputs 33-40).
Definition gclib.cs:1638
UB axis_b_reserved_1
Reserved.
Definition gclib.cs:1678
UB input_bank_5
general input bank 5 (inputs 41-48).
Definition gclib.cs:1628
SL axis_b_reference_position
B axis reference position.
Definition gclib.cs:1671
SW axis_a_torque
A axis torque.
Definition gclib.cs:1664
SL axis_c_reference_position
C axis reference position.
Definition gclib.cs:1683
UB output_bank_9
general output bank 9 (outputs 73-80).
Definition gclib.cs:1643
SL s_distance
distance traveled in coordinated move for S plane.
Definition gclib.cs:1650
SL axis_b_aux_position
B axis auxiliary position.
Definition gclib.cs:1674
UB input_bank_6
general input bank 6 (inputs 49-56).
Definition gclib.cs:1629
UB general_status
general status
Definition gclib.cs:1646
UB axis_a_stop_code
A axis stop code.
Definition gclib.cs:1658
SL axis_a_reference_position
A axis reference position.
Definition gclib.cs:1659
UB axis_a_reserved_1
Reserved.
Definition gclib.cs:1666
UB output_bank_8
general output bank 8 (outputs 65-72).
Definition gclib.cs:1642
UB axis_c_reserved_0
Reserved.
Definition gclib.cs:1689
SL t_distance
distance traveled in coordinated move for T plane.
Definition gclib.cs:1654
SW axis_b_torque
B axis torque.
Definition gclib.cs:1676
UB axis_d_switches
D axis switches.
Definition gclib.cs:1693
UW axis_b_status
B axis status.
Definition gclib.cs:1668
SL axis_d_aux_position
D axis auxiliary position.
Definition gclib.cs:1698
UB axis_d_reserved_0
Reserved.
Definition gclib.cs:1701
UB output_bank_0
general output bank 0 (outputs 1-8).
Definition gclib.cs:1634
SL axis_b_velocity
B axis velocity.
Definition gclib.cs:1675
UB error_code
error code.
Definition gclib.cs:1645
UB input_bank_7
general input bank 7 (inputs 57-64).
Definition gclib.cs:1630
UB input_bank_4
general input bank 4 (inputs 33-40).
Definition gclib.cs:1627
SL axis_c_velocity
C axis velocity.
Definition gclib.cs:1687
UB output_bank_6
general output bank 6 (outputs 49-56).
Definition gclib.cs:1640
UB output_bank_5
general output bank 5 (outputs 41-48).
Definition gclib.cs:1639
UW axis_c_status
C axis status.
Definition gclib.cs:1680
SL axis_b_motor_position
B axis motor position.
Definition gclib.cs:1672
UB output_bank_1
general output bank 1 (outputs 9-16).
Definition gclib.cs:1635
SW axis_c_torque
C axis torque.
Definition gclib.cs:1688
UB axis_b_reserved_0
Reserved.
Definition gclib.cs:1677
UW t_plane_move_status
Coordinated move status for T plane.
Definition gclib.cs:1653
SL axis_d_motor_position
D axis motor position.
Definition gclib.cs:1696
UW t_plane_segment_count
segment count of coordinated move for T plane.
Definition gclib.cs:1652
UW s_plane_move_status
coordinated move status for S plane.
Definition gclib.cs:1649
UB axis_c_switches
C axis switches.
Definition gclib.cs:1681
Data record struct for DMC-1802 controllers.
Definition gclib.cs:1616
UL contour_segment_count
Segment Count for Contour Mode.
Definition gclib.cs:1345
SL axis_a_variable
A User-defined variable (ZA).
Definition gclib.cs:1370
SL axis_c_aux_position
C axis auxiliary position.
Definition gclib.cs:1392
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:1296
SL axis_h_torque
H axis torque.
Definition gclib.cs:1464
UW axis_e_status
E axis status.
Definition gclib.cs:1414
UB reserved_22
Reserved.
Definition gclib.cs:1338
UB input_bank_3
general input bank 3 (inputs 25-32).
Definition gclib.cs:1304
UB input_bank_0
general input bank 0 (inputs 1-8).
Definition gclib.cs:1301
SL axis_d_reference_position
D axis reference position.
Definition gclib.cs:1403
SL axis_b_position_error
B axis position error.
Definition gclib.cs:1377
SL axis_h_position_error
H axis position error.
Definition gclib.cs:1461
SL axis_g_variable
G User-defined variable (ZA).
Definition gclib.cs:1454
UW axis_f_analog_in
F axis analog input.
Definition gclib.cs:1437
SL axis_c_variable
C User-defined variable (ZA).
Definition gclib.cs:1398
UB axis_d_stop_code
D axis stop code.
Definition gclib.cs:1402
SL axis_e_motor_position
E axis motor position.
Definition gclib.cs:1418
UB reserved_20
Reserved.
Definition gclib.cs:1336
UB axis_a_switches
A axis switches.
Definition gclib.cs:1359
UB output_bank_3
general output bank 3 (outputs 25-32).
Definition gclib.cs:1315
UB reserved_23
Reserved.
Definition gclib.cs:1339
UB axis_c_reserved_1
Reserved.
Definition gclib.cs:1397
UB axis_e_stop_code
E axis stop code.
Definition gclib.cs:1416
UW axis_h_analog_in
H axis analog input.
Definition gclib.cs:1465
UB axis_g_switches
G axis switches.
Definition gclib.cs:1443
UB axis_h_stop_code
H axis stop code.
Definition gclib.cs:1458
SL axis_g_position_error
G axis position error.
Definition gclib.cs:1447
UB input_bank_1
general input bank 1 (inputs 9-16).
Definition gclib.cs:1302
SL axis_d_position_error
D axis position error.
Definition gclib.cs:1405
UB axis_a_reserved_0
Reserved.
Definition gclib.cs:1368
SW reserved_10
Reserved.
Definition gclib.cs:1328
SL axis_d_velocity
D axis velocity.
Definition gclib.cs:1407
UB reserved_18
Reserved.
Definition gclib.cs:1334
UB axis_b_switches
B axis switches.
Definition gclib.cs:1373
UB axis_h_reserved_1
Reserved.
Definition gclib.cs:1467
SL axis_h_reference_position
H axis reference position.
Definition gclib.cs:1459
UW axis_h_status
H axis status.
Definition gclib.cs:1456
SL axis_a_motor_position
A axis motor position.
Definition gclib.cs:1362
SL axis_f_position_error
F axis position error.
Definition gclib.cs:1433
UB axis_g_stop_code
G axis stop code.
Definition gclib.cs:1444
UB input_bank_2
general input bank 2 (inputs 17-24).
Definition gclib.cs:1303
SL axis_g_aux_position
G axis auxiliary position.
Definition gclib.cs:1448
UW axis_b_analog_in
B axis analog input.
Definition gclib.cs:1381
UW s_plane_segment_count
segment count of coordinated move for S plane.
Definition gclib.cs:1348
UB axis_d_reserved_1
Reserved.
Definition gclib.cs:1411
UB thread_status
thread status.
Definition gclib.cs:1342
UW axis_d_analog_in
D axis analog input.
Definition gclib.cs:1409
UL reserved_24
Reserved.
Definition gclib.cs:1343
SL axis_h_motor_position
H axis motor position.
Definition gclib.cs:1460
SW reserved_8
Reserved.
Definition gclib.cs:1327
SL axis_f_motor_position
F axis motor position.
Definition gclib.cs:1432
UB output_bank_2
general output bank 2 (outputs 17-24).
Definition gclib.cs:1314
SL axis_c_motor_position
C axis motor position.
Definition gclib.cs:1390
SL axis_c_position_error
C axis position error.
Definition gclib.cs:1391
SL axis_b_torque
B axis torque.
Definition gclib.cs:1380
UW contour_buffer_available
Buffer space remaining, Contour Mode.
Definition gclib.cs:1346
UB axis_b_stop_code
B axis stop code.
Definition gclib.cs:1374
UB axis_e_switches
E axis switches.
Definition gclib.cs:1415
SW reserved_0
Reserved.
Definition gclib.cs:1323
UB axis_e_reserved_0
Reserved.
Definition gclib.cs:1424
UB axis_h_switches
H axis switches.
Definition gclib.cs:1457
UW sample_number
sample number.
Definition gclib.cs:1299
UW axis_a_analog_in
A axis analog input.
Definition gclib.cs:1367
SL axis_a_velocity
A axis velocity.
Definition gclib.cs:1365
UB reserved_17
Reserved.
Definition gclib.cs:1333
UB axis_g_reserved_0
Reserved.
Definition gclib.cs:1452
UW axis_f_status
F axis status.
Definition gclib.cs:1428
SL axis_g_reference_position
G axis reference position.
Definition gclib.cs:1445
UB axis_c_stop_code
C axis stop code.
Definition gclib.cs:1388
SL axis_c_torque
C axis torque.
Definition gclib.cs:1394
SL axis_g_torque
G axis torque.
Definition gclib.cs:1450
UB output_bank_7
general output bank 7 (outputs 57-64).
Definition gclib.cs:1319
SL axis_f_velocity
F axis velocity.
Definition gclib.cs:1435
UB input_bank_8
general input bank 8 (inputs 65-72).
Definition gclib.cs:1309
UW axis_g_status
G axis status.
Definition gclib.cs:1442
UW axis_d_status
D axis status.
Definition gclib.cs:1400
UB input_bank_9
general input bank 9 (inputs 73-80).
Definition gclib.cs:1310
SW reserved_2
Reserved.
Definition gclib.cs:1324
SW reserved_4
Reserved.
Definition gclib.cs:1325
SL axis_a_position_error
A axis position error.
Definition gclib.cs:1363
SL axis_a_aux_position
A axis auxiliary position.
Definition gclib.cs:1364
UW axis_a_status
A axis status.
Definition gclib.cs:1358
SL axis_e_reference_position
E axis reference position.
Definition gclib.cs:1417
UB output_bank_4
general output bank 4 (outputs 33-40).
Definition gclib.cs:1316
SL axis_e_variable
E User-defined variable (ZA).
Definition gclib.cs:1426
SL axis_h_variable
H User-defined variable (ZA).
Definition gclib.cs:1468
UB axis_b_reserved_1
Reserved.
Definition gclib.cs:1383
SL axis_b_variable
B User-defined variable (ZA).
Definition gclib.cs:1384
UB input_bank_5
general input bank 5 (inputs 41-48).
Definition gclib.cs:1306
SL axis_b_reference_position
B axis reference position.
Definition gclib.cs:1375
UB axis_e_reserved_1
Reserved.
Definition gclib.cs:1425
UW s_plane_buffer_available
Buffer space remaining, S Plane.
Definition gclib.cs:1351
UB axis_h_reserved_0
Reserved.
Definition gclib.cs:1466
SL axis_g_velocity
G axis velocity.
Definition gclib.cs:1449
UB axis_f_stop_code
F axis stop code.
Definition gclib.cs:1430
SL axis_c_reference_position
C axis reference position.
Definition gclib.cs:1389
UW axis_e_analog_in
E axis analog input.
Definition gclib.cs:1423
SL axis_g_motor_position
G axis motor position.
Definition gclib.cs:1446
SW reserved_12
Reserved.
Definition gclib.cs:1329
SL axis_f_aux_position
F axis auxiliary position.
Definition gclib.cs:1434
UB output_bank_9
general output bank 9 (outputs 73-80).
Definition gclib.cs:1321
UW t_plane_buffer_available
Buffer space remaining, T Plane.
Definition gclib.cs:1356
SL s_distance
distance traveled in coordinated move for S plane.
Definition gclib.cs:1350
SL axis_b_aux_position
B axis auxiliary position.
Definition gclib.cs:1378
UB axis_f_reserved_0
Reserved.
Definition gclib.cs:1438
UW axis_c_analog_in
C axis analog input.
Definition gclib.cs:1395
SL axis_a_torque
A axis torque.
Definition gclib.cs:1366
UB input_bank_6
general input bank 6 (inputs 49-56).
Definition gclib.cs:1307
UB axis_a_stop_code
A axis stop code.
Definition gclib.cs:1360
SL axis_h_aux_position
H axis auxiliary position.
Definition gclib.cs:1462
SL axis_a_reference_position
A axis reference position.
Definition gclib.cs:1361
UB axis_a_reserved_1
Reserved.
Definition gclib.cs:1369
UB reserved_16
Reserved.
Definition gclib.cs:1332
UB reserved_21
Reserved.
Definition gclib.cs:1337
UW axis_g_analog_in
G axis analog input.
Definition gclib.cs:1451
UB axis_f_reserved_1
Reserved.
Definition gclib.cs:1439
UB output_bank_8
general output bank 8 (outputs 65-72).
Definition gclib.cs:1320
UB axis_c_reserved_0
Reserved.
Definition gclib.cs:1396
SL t_distance
distance traveled in coordinated move for T plane.
Definition gclib.cs:1355
UB axis_d_switches
D axis switches.
Definition gclib.cs:1401
UW axis_b_status
B axis status.
Definition gclib.cs:1372
SL axis_d_aux_position
D axis auxiliary position.
Definition gclib.cs:1406
UB axis_d_reserved_0
Reserved.
Definition gclib.cs:1410
SL axis_f_variable
F User-defined variable (ZA).
Definition gclib.cs:1440
UB axis_g_reserved_1
Reserved.
Definition gclib.cs:1453
UB output_bank_0
general output bank 0 (outputs 1-8).
Definition gclib.cs:1312
UB axis_f_switches
F axis switches.
Definition gclib.cs:1429
SL axis_b_velocity
B axis velocity.
Definition gclib.cs:1379
SL axis_e_position_error
E axis position error.
Definition gclib.cs:1419
UB error_code
error code.
Definition gclib.cs:1341
UB reserved_19
Reserved.
Definition gclib.cs:1335
SL axis_e_torque
E axis torque.
Definition gclib.cs:1422
SW reserved_6
Reserved.
Definition gclib.cs:1326
SL axis_e_aux_position
E axis auxiliary position.
Definition gclib.cs:1420
SL axis_d_variable
D User-defined variable (ZA).
Definition gclib.cs:1412
UB input_bank_7
general input bank 7 (inputs 57-64).
Definition gclib.cs:1308
UB input_bank_4
general input bank 4 (inputs 33-40).
Definition gclib.cs:1305
SL axis_c_velocity
C axis velocity.
Definition gclib.cs:1393
UB output_bank_6
general output bank 6 (outputs 49-56).
Definition gclib.cs:1318
UB output_bank_5
general output bank 5 (outputs 41-48).
Definition gclib.cs:1317
UW axis_c_status
C axis status.
Definition gclib.cs:1386
SL axis_f_torque
F axis torque.
Definition gclib.cs:1436
SL axis_b_motor_position
B axis motor position.
Definition gclib.cs:1376
SL axis_f_reference_position
F axis reference position.
Definition gclib.cs:1431
UB output_bank_1
general output bank 1 (outputs 9-16).
Definition gclib.cs:1313
SL axis_d_torque
D axis torque.
Definition gclib.cs:1408
UB axis_b_reserved_0
Reserved.
Definition gclib.cs:1382
UW t_plane_move_status
Coordinated move status for T plane.
Definition gclib.cs:1354
SL axis_h_velocity
H axis velocity.
Definition gclib.cs:1463
SL axis_e_velocity
E axis velocity.
Definition gclib.cs:1421
SL axis_d_motor_position
D axis motor position.
Definition gclib.cs:1404
SW reserved_14
Reserved.
Definition gclib.cs:1330
UW t_plane_segment_count
segment count of coordinated move for T plane.
Definition gclib.cs:1353
UW s_plane_move_status
coordinated move status for S plane.
Definition gclib.cs:1349
UB axis_c_switches
C axis switches.
Definition gclib.cs:1387
Data record struct for DMC-1806 controller.
Definition gclib.cs:1295
SW axis_e_torque
E axis torque.
Definition gclib.cs:1571
UB header_1
2nd Byte of Header.
Definition gclib.cs:1480
SL axis_c_aux_position
C axis auxiliary position.
Definition gclib.cs:1547
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:1475
UW axis_e_status
E axis status.
Definition gclib.cs:1563
UB input_bank_3
general input bank 3 (inputs 25-32).
Definition gclib.cs:1489
UB input_bank_0
general input bank 0 (inputs 1-8).
Definition gclib.cs:1486
SL axis_d_reference_position
D axis reference position.
Definition gclib.cs:1555
SL axis_b_position_error
B axis position error.
Definition gclib.cs:1535
SL axis_h_position_error
H axis position error.
Definition gclib.cs:1601
UW axis_f_analog_in
F axis analog input.
Definition gclib.cs:1583
UB axis_d_stop_code
D axis stop code.
Definition gclib.cs:1554
SL axis_e_motor_position
E axis motor position.
Definition gclib.cs:1567
UB axis_a_switches
A axis switches.
Definition gclib.cs:1520
UB output_bank_3
general output bank 3 (outputs 25-32).
Definition gclib.cs:1500
UB axis_e_stop_code
E axis stop code.
Definition gclib.cs:1565
UW axis_h_analog_in
H axis analog input.
Definition gclib.cs:1605
UB axis_g_switches
G axis switches.
Definition gclib.cs:1586
UB axis_h_stop_code
H axis stop code.
Definition gclib.cs:1598
SL axis_g_position_error
G axis position error.
Definition gclib.cs:1590
UB input_bank_1
general input bank 1 (inputs 9-16).
Definition gclib.cs:1487
SL axis_d_position_error
D axis position error.
Definition gclib.cs:1557
SL axis_d_velocity
D axis velocity.
Definition gclib.cs:1559
UB axis_b_switches
B axis switches.
Definition gclib.cs:1531
SL axis_h_reference_position
H axis reference position.
Definition gclib.cs:1599
UW axis_h_status
H axis status.
Definition gclib.cs:1596
SL axis_a_motor_position
A axis motor position.
Definition gclib.cs:1523
SL axis_f_position_error
F axis position error.
Definition gclib.cs:1579
UB axis_g_stop_code
G axis stop code.
Definition gclib.cs:1587
UB input_bank_2
general input bank 2 (inputs 17-24).
Definition gclib.cs:1488
SL axis_g_aux_position
G axis auxiliary position.
Definition gclib.cs:1591
UW axis_b_analog_in
B axis analog input.
Definition gclib.cs:1539
UW s_plane_segment_count
segment count of coordinated move for S plane.
Definition gclib.cs:1511
UW axis_d_analog_in
D axis analog input.
Definition gclib.cs:1561
SL axis_h_motor_position
H axis motor position.
Definition gclib.cs:1600
SL axis_f_motor_position
F axis motor position.
Definition gclib.cs:1578
UB output_bank_2
general output bank 2 (outputs 17-24).
Definition gclib.cs:1499
SL axis_c_motor_position
C axis motor position.
Definition gclib.cs:1545
SL axis_c_position_error
C axis position error.
Definition gclib.cs:1546
SW axis_d_torque
D axis torque.
Definition gclib.cs:1560
UB axis_b_stop_code
B axis stop code.
Definition gclib.cs:1532
UB axis_e_switches
E axis switches.
Definition gclib.cs:1564
UB axis_h_switches
H axis switches.
Definition gclib.cs:1597
UW sample_number
sample number.
Definition gclib.cs:1484
SW axis_h_torque
H axis torque.
Definition gclib.cs:1604
UW axis_a_analog_in
A axis analog input.
Definition gclib.cs:1528
SL axis_a_velocity
A axis velocity.
Definition gclib.cs:1526
UB header_3
4th Byte of Header.
Definition gclib.cs:1482
UW axis_f_status
F axis status.
Definition gclib.cs:1574
SL axis_g_reference_position
G axis reference position.
Definition gclib.cs:1588
UB axis_c_stop_code
C axis stop code.
Definition gclib.cs:1543
UB output_bank_7
general output bank 7 (outputs 57-64).
Definition gclib.cs:1504
SW axis_g_torque
G axis torque.
Definition gclib.cs:1593
SL axis_f_velocity
F axis velocity.
Definition gclib.cs:1581
UB input_bank_8
general input bank 8 (inputs 65-72).
Definition gclib.cs:1494
UW axis_g_status
G axis status.
Definition gclib.cs:1585
UW axis_d_status
D axis status.
Definition gclib.cs:1552
UB input_bank_9
general input bank 9 (inputs 73-80).
Definition gclib.cs:1495
SL axis_a_position_error
A axis position error.
Definition gclib.cs:1524
SW axis_f_torque
F axis torque.
Definition gclib.cs:1582
SL axis_a_aux_position
A axis auxiliary position.
Definition gclib.cs:1525
UW axis_a_status
A axis status.
Definition gclib.cs:1519
SL axis_e_reference_position
E axis reference position.
Definition gclib.cs:1566
UB output_bank_4
general output bank 4 (outputs 33-40).
Definition gclib.cs:1501
UB input_bank_5
general input bank 5 (inputs 41-48).
Definition gclib.cs:1491
SL axis_b_reference_position
B axis reference position.
Definition gclib.cs:1533
UB header_2
3rd Byte of Header.
Definition gclib.cs:1481
SL axis_g_velocity
G axis velocity.
Definition gclib.cs:1592
UB axis_f_stop_code
F axis stop code.
Definition gclib.cs:1576
SW axis_a_torque
A axis torque.
Definition gclib.cs:1527
SL axis_c_reference_position
C axis reference position.
Definition gclib.cs:1544
UW axis_e_analog_in
E axis analog input.
Definition gclib.cs:1572
SL axis_g_motor_position
G axis motor position.
Definition gclib.cs:1589
SL axis_f_aux_position
F axis auxiliary position.
Definition gclib.cs:1580
UB output_bank_9
general output bank 9 (outputs 73-80).
Definition gclib.cs:1506
SL s_distance
distance traveled in coordinated move for S plane.
Definition gclib.cs:1513
SL axis_b_aux_position
B axis auxiliary position.
Definition gclib.cs:1536
UW axis_c_analog_in
C axis analog input.
Definition gclib.cs:1550
UB input_bank_6
general input bank 6 (inputs 49-56).
Definition gclib.cs:1492
UB general_status
general status
Definition gclib.cs:1509
UB axis_a_stop_code
A axis stop code.
Definition gclib.cs:1521
SL axis_h_aux_position
H axis auxiliary position.
Definition gclib.cs:1602
SL axis_a_reference_position
A axis reference position.
Definition gclib.cs:1522
UB header_0
1st Byte of Header.
Definition gclib.cs:1479
UW axis_g_analog_in
G axis analog input.
Definition gclib.cs:1594
UB output_bank_8
general output bank 8 (outputs 65-72).
Definition gclib.cs:1505
SL t_distance
distance traveled in coordinated move for T plane.
Definition gclib.cs:1517
SW axis_b_torque
B axis torque.
Definition gclib.cs:1538
UB axis_d_switches
D axis switches.
Definition gclib.cs:1553
UW axis_b_status
B axis status.
Definition gclib.cs:1530
SL axis_d_aux_position
D axis auxiliary position.
Definition gclib.cs:1558
UB output_bank_0
general output bank 0 (outputs 1-8).
Definition gclib.cs:1497
UB axis_f_switches
F axis switches.
Definition gclib.cs:1575
SL axis_b_velocity
B axis velocity.
Definition gclib.cs:1537
SL axis_e_position_error
E axis position error.
Definition gclib.cs:1568
UB error_code
error code.
Definition gclib.cs:1508
SL axis_e_aux_position
E axis auxiliary position.
Definition gclib.cs:1569
UB input_bank_7
general input bank 7 (inputs 57-64).
Definition gclib.cs:1493
UB input_bank_4
general input bank 4 (inputs 33-40).
Definition gclib.cs:1490
SL axis_c_velocity
C axis velocity.
Definition gclib.cs:1548
UB output_bank_6
general output bank 6 (outputs 49-56).
Definition gclib.cs:1503
UB output_bank_5
general output bank 5 (outputs 41-48).
Definition gclib.cs:1502
UW axis_c_status
C axis status.
Definition gclib.cs:1541
SL axis_b_motor_position
B axis motor position.
Definition gclib.cs:1534
SL axis_f_reference_position
F axis reference position.
Definition gclib.cs:1577
UB output_bank_1
general output bank 1 (outputs 9-16).
Definition gclib.cs:1498
SW axis_c_torque
C axis torque.
Definition gclib.cs:1549
UW t_plane_move_status
Coordinated move status for T plane.
Definition gclib.cs:1516
SL axis_h_velocity
H axis velocity.
Definition gclib.cs:1603
SL axis_e_velocity
E axis velocity.
Definition gclib.cs:1570
SL axis_d_motor_position
D axis motor position.
Definition gclib.cs:1556
UW t_plane_segment_count
segment count of coordinated move for T plane.
Definition gclib.cs:1515
UW s_plane_move_status
coordinated move status for S plane.
Definition gclib.cs:1512
UB axis_c_switches
C axis switches.
Definition gclib.cs:1542
Data record struct for DMC-2103 controllers.
Definition gclib.cs:1474
UL contour_segment_count
Segment Count for Contour Mode.
Definition gclib.cs:1737
UB axis_a_reserved
Reserved.
Definition gclib.cs:1756
UW output_analog_2
Analog output 2.
Definition gclib.cs:1733
SL axis_a_variable
A User-defined variable (ZA).
Definition gclib.cs:1757
UB header_1
2nd Byte of Header.
Definition gclib.cs:1715
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:1710
UB input_bank_0
general input bank 0 (inputs 1-8).
Definition gclib.cs:1721
UB axis_a_switches
A axis switches.
Definition gclib.cs:1746
UW input_analog_2
Analog input 2. 1 is in axis data, see axis_a_analog_in.
Definition gclib.cs:1730
UB input_bank_1
general input bank 1 (inputs 9-16).
Definition gclib.cs:1722
SL axis_a_motor_position
A axis motor position.
Definition gclib.cs:1749
UW s_plane_segment_count
segment count of coordinated move for S plane.
Definition gclib.cs:1740
UB thread_status
thread status.
Definition gclib.cs:1728
UW contour_buffer_available
Buffer space remaining, Contour Mode.
Definition gclib.cs:1738
UW sample_number
sample number.
Definition gclib.cs:1719
UW axis_a_analog_in
A axis analog input.
Definition gclib.cs:1754
SL axis_a_velocity
A axis velocity.
Definition gclib.cs:1752
UL amplifier_status
Amplifier Status.
Definition gclib.cs:1735
UB header_3
4th Byte of Header.
Definition gclib.cs:1717
SL axis_a_position_error
A axis position error.
Definition gclib.cs:1750
SL axis_a_aux_position
A axis auxiliary position.
Definition gclib.cs:1751
UW axis_a_status
A axis status.
Definition gclib.cs:1745
UW s_plane_buffer_available
Buffer space remaining, S Plane.
Definition gclib.cs:1743
UB header_2
3rd Byte of Header.
Definition gclib.cs:1716
SL s_distance
distance traveled in coordinated move for S plane.
Definition gclib.cs:1742
SL axis_a_torque
A axis torque.
Definition gclib.cs:1753
UB axis_a_stop_code
A axis stop code.
Definition gclib.cs:1747
SL axis_a_reference_position
A axis reference position.
Definition gclib.cs:1748
UB header_0
1st Byte of Header.
Definition gclib.cs:1714
UB output_bank_0
general output bank 0 (outputs 1-8).
Definition gclib.cs:1724
UB error_code
error code.
Definition gclib.cs:1727
UW output_analog_1
Analog output 1.
Definition gclib.cs:1732
UB output_bank_1
general output bank 1 (outputs 9-16).
Definition gclib.cs:1725
UB axis_a_halls
A Hall Input Status.
Definition gclib.cs:1755
UW s_plane_move_status
coordinated move status for S plane.
Definition gclib.cs:1741
Data record struct for DMC-30010 controllers.
Definition gclib.cs:1709
UL contour_segment_count
Segment Count for Contour Mode.
Definition gclib.cs:974
UB axis_a_reserved
Reserved.
Definition gclib.cs:998
UB axis_h_reserved
Reserved.
Definition gclib.cs:1096
SL axis_a_variable
A User-defined variable (ZA).
Definition gclib.cs:999
UB header_1
2nd Byte of Header.
Definition gclib.cs:924
SL axis_c_aux_position
C axis auxiliary position.
Definition gclib.cs:1021
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:920
SL axis_h_torque
H axis torque.
Definition gclib.cs:1093
UW axis_e_status
E axis status.
Definition gclib.cs:1043
UB ethernet_status_c
Ethernet Handle C Status.
Definition gclib.cs:963
UB input_bank_3
general input bank 3 (inputs 25-32).
Definition gclib.cs:933
UB input_bank_0
general input bank 0 (inputs 1-8).
Definition gclib.cs:930
SL axis_d_reference_position
D axis reference position.
Definition gclib.cs:1032
SL axis_b_position_error
B axis position error.
Definition gclib.cs:1006
SL axis_h_position_error
H axis position error.
Definition gclib.cs:1090
SL axis_g_variable
G User-defined variable (ZA).
Definition gclib.cs:1083
UW axis_f_analog_in
F axis analog input.
Definition gclib.cs:1066
SL axis_c_variable
C User-defined variable (ZA).
Definition gclib.cs:1027
UB axis_d_stop_code
D axis stop code.
Definition gclib.cs:1031
SL axis_e_motor_position
E axis motor position.
Definition gclib.cs:1047
UB axis_a_switches
A axis switches.
Definition gclib.cs:988
UB axis_d_reserved
Reserved.
Definition gclib.cs:1040
UB output_bank_3
general output bank 3 (outputs 25-32).
Definition gclib.cs:944
UB axis_e_stop_code
E axis stop code.
Definition gclib.cs:1045
UW axis_h_analog_in
H axis analog input.
Definition gclib.cs:1094
UB axis_g_switches
G axis switches.
Definition gclib.cs:1072
UB axis_h_stop_code
H axis stop code.
Definition gclib.cs:1087
SL axis_g_position_error
G axis position error.
Definition gclib.cs:1076
UB input_bank_1
general input bank 1 (inputs 9-16).
Definition gclib.cs:931
SL axis_d_position_error
D axis position error.
Definition gclib.cs:1034
SW reserved_10
Reserved.
Definition gclib.cs:957
SL axis_d_velocity
D axis velocity.
Definition gclib.cs:1036
UB axis_b_switches
B axis switches.
Definition gclib.cs:1002
SL axis_h_reference_position
H axis reference position.
Definition gclib.cs:1088
UW axis_h_status
H axis status.
Definition gclib.cs:1085
SL axis_a_motor_position
A axis motor position.
Definition gclib.cs:991
SL axis_f_position_error
F axis position error.
Definition gclib.cs:1062
UB axis_g_stop_code
G axis stop code.
Definition gclib.cs:1073
UB axis_f_reserved
Reserved.
Definition gclib.cs:1068
UB ethernet_status_g
Ethernet Handle G Status.
Definition gclib.cs:967
UB input_bank_2
general input bank 2 (inputs 17-24).
Definition gclib.cs:932
SL axis_g_aux_position
G axis auxiliary position.
Definition gclib.cs:1077
UW axis_b_analog_in
B axis analog input.
Definition gclib.cs:1010
UW s_plane_segment_count
segment count of coordinated move for S plane.
Definition gclib.cs:977
UB thread_status
thread status
Definition gclib.cs:971
UW axis_d_analog_in
D axis analog input.
Definition gclib.cs:1038
SL axis_h_motor_position
H axis motor position.
Definition gclib.cs:1089
SW reserved_8
Reserved.
Definition gclib.cs:956
SL axis_f_motor_position
F axis motor position.
Definition gclib.cs:1061
UB output_bank_2
general output bank 2 (outputs 17-24).
Definition gclib.cs:943
SL axis_c_motor_position
C axis motor position.
Definition gclib.cs:1019
SL axis_c_position_error
C axis position error.
Definition gclib.cs:1020
SL axis_b_torque
B axis torque.
Definition gclib.cs:1009
UW contour_buffer_available
Buffer space remaining, Contour Mode.
Definition gclib.cs:975
UB axis_b_stop_code
B axis stop code.
Definition gclib.cs:1003
UB axis_e_switches
E axis switches.
Definition gclib.cs:1044
SW reserved_0
Reserved.
Definition gclib.cs:952
UB axis_h_switches
H axis switches.
Definition gclib.cs:1086
UW sample_number
sample number.
Definition gclib.cs:928
UW axis_a_analog_in
A axis analog input.
Definition gclib.cs:996
SL axis_a_velocity
A axis velocity.
Definition gclib.cs:994
UL amplifier_status
Amplifier Status.
Definition gclib.cs:972
UB header_3
4th Byte of Header.
Definition gclib.cs:926
UW axis_f_status
F axis status.
Definition gclib.cs:1057
SL axis_g_reference_position
G axis reference position.
Definition gclib.cs:1074
UB axis_c_stop_code
C axis stop code.
Definition gclib.cs:1017
SL axis_c_torque
C axis torque.
Definition gclib.cs:1023
SL axis_g_torque
G axis torque.
Definition gclib.cs:1079
UB output_bank_7
general output bank 7 (outputs 57-64).
Definition gclib.cs:948
SL axis_f_velocity
F axis velocity.
Definition gclib.cs:1064
UB input_bank_8
general input bank 8 (inputs 65-72).
Definition gclib.cs:938
UW axis_g_status
G axis status.
Definition gclib.cs:1071
UW axis_d_status
D axis status.
Definition gclib.cs:1029
UB input_bank_9
general input bank 9 (inputs 73-80).
Definition gclib.cs:939
SW reserved_2
Reserved.
Definition gclib.cs:953
SW reserved_4
Reserved.
Definition gclib.cs:954
SL axis_a_position_error
A axis position error.
Definition gclib.cs:992
SL axis_a_aux_position
A axis auxiliary position.
Definition gclib.cs:993
UW axis_a_status
A axis status.
Definition gclib.cs:987
SL axis_e_reference_position
E axis reference position.
Definition gclib.cs:1046
UB output_bank_4
general output bank 4 (outputs 33-40).
Definition gclib.cs:945
SL axis_e_variable
E User-defined variable (ZA).
Definition gclib.cs:1055
SL axis_h_variable
H User-defined variable (ZA).
Definition gclib.cs:1097
SL axis_b_variable
B User-defined variable (ZA).
Definition gclib.cs:1013
UB input_bank_5
general input bank 5 (inputs 41-48).
Definition gclib.cs:935
UB axis_g_reserved
Reserved.
Definition gclib.cs:1082
SL axis_b_reference_position
B axis reference position.
Definition gclib.cs:1004
UB axis_f_halls
F Hall Input Status.
Definition gclib.cs:1067
UW s_plane_buffer_available
Buffer space remaining, S Plane.
Definition gclib.cs:980
UB header_2
3rd Byte of Header.
Definition gclib.cs:925
SL axis_g_velocity
G axis velocity.
Definition gclib.cs:1078
UB axis_f_stop_code
F axis stop code.
Definition gclib.cs:1059
SL axis_c_reference_position
C axis reference position.
Definition gclib.cs:1018
UW axis_e_analog_in
E axis analog input.
Definition gclib.cs:1052
SL axis_g_motor_position
G axis motor position.
Definition gclib.cs:1075
SW reserved_12
Reserved.
Definition gclib.cs:958
SL axis_f_aux_position
F axis auxiliary position.
Definition gclib.cs:1063
UB output_bank_9
general output bank 9 (outputs 73-80).
Definition gclib.cs:950
UW t_plane_buffer_available
Buffer space remaining, T Plane.
Definition gclib.cs:985
UB axis_b_reserved
Reserved.
Definition gclib.cs:1012
SL s_distance
distance traveled in coordinated move for S plane.
Definition gclib.cs:979
SL axis_b_aux_position
B axis auxiliary position.
Definition gclib.cs:1007
UB axis_g_halls
G Hall Input Status.
Definition gclib.cs:1081
UW axis_c_analog_in
C axis analog input.
Definition gclib.cs:1024
SL axis_a_torque
A axis torque.
Definition gclib.cs:995
UB input_bank_6
general input bank 6 (inputs 49-56).
Definition gclib.cs:936
UB axis_a_stop_code
A axis stop code.
Definition gclib.cs:989
SL axis_h_aux_position
H axis auxiliary position.
Definition gclib.cs:1091
SL axis_a_reference_position
A axis reference position.
Definition gclib.cs:990
UB header_0
1st Byte of Header.
Definition gclib.cs:923
UB axis_c_halls
C Hall Input Status.
Definition gclib.cs:1025
UW axis_g_analog_in
G axis analog input.
Definition gclib.cs:1080
UB output_bank_8
general output bank 8 (outputs 65-72).
Definition gclib.cs:949
SL t_distance
distance traveled in coordinated move for T plane.
Definition gclib.cs:984
UB axis_d_switches
D axis switches.
Definition gclib.cs:1030
UW axis_b_status
B axis status.
Definition gclib.cs:1001
SL axis_d_aux_position
D axis auxiliary position.
Definition gclib.cs:1035
UB axis_c_reserved
Reserved.
Definition gclib.cs:1026
SL axis_f_variable
F User-defined variable (ZA).
Definition gclib.cs:1069
UB axis_e_halls
E Hall Input Status.
Definition gclib.cs:1053
UB ethernet_status_e
Ethernet Handle E Status.
Definition gclib.cs:965
UB output_bank_0
general output bank 0 (outputs 1-8).
Definition gclib.cs:941
UB axis_f_switches
F axis switches.
Definition gclib.cs:1058
SL axis_b_velocity
B axis velocity.
Definition gclib.cs:1008
SL axis_e_position_error
E axis position error.
Definition gclib.cs:1048
UB error_code
error code.
Definition gclib.cs:970
UB ethernet_status_f
Ethernet Handle F Status.
Definition gclib.cs:966
SL axis_e_torque
E axis torque.
Definition gclib.cs:1051
UB axis_b_halls
B Hall Input Status.
Definition gclib.cs:1011
SW reserved_6
Reserved.
Definition gclib.cs:955
UB axis_d_halls
D Hall Input Status.
Definition gclib.cs:1039
SL axis_e_aux_position
E axis auxiliary position.
Definition gclib.cs:1049
UB ethernet_status_h
Ethernet Handle H Status.
Definition gclib.cs:968
SL axis_d_variable
D User-defined variable (ZA).
Definition gclib.cs:1041
UB input_bank_7
general input bank 7 (inputs 57-64).
Definition gclib.cs:937
UB input_bank_4
general input bank 4 (inputs 33-40).
Definition gclib.cs:934
SL axis_c_velocity
C axis velocity.
Definition gclib.cs:1022
UB output_bank_6
general output bank 6 (outputs 49-56).
Definition gclib.cs:947
UB output_bank_5
general output bank 5 (outputs 41-48).
Definition gclib.cs:946
UW axis_c_status
C axis status.
Definition gclib.cs:1015
SL axis_f_torque
F axis torque.
Definition gclib.cs:1065
SL axis_b_motor_position
B axis motor position.
Definition gclib.cs:1005
SL axis_f_reference_position
F axis reference position.
Definition gclib.cs:1060
UB output_bank_1
general output bank 1 (outputs 9-16).
Definition gclib.cs:942
SL axis_d_torque
D axis torque.
Definition gclib.cs:1037
UB ethernet_status_b
Ethernet Handle B Status.
Definition gclib.cs:962
UW t_plane_move_status
Coordinated move status for T plane.
Definition gclib.cs:983
UB axis_a_halls
A Hall Input Status.
Definition gclib.cs:997
SL axis_h_velocity
H axis velocity.
Definition gclib.cs:1092
UB axis_h_halls
H Hall Input Status.
Definition gclib.cs:1095
SL axis_e_velocity
E axis velocity.
Definition gclib.cs:1050
SL axis_d_motor_position
D axis motor position.
Definition gclib.cs:1033
SW reserved_14
Reserved.
Definition gclib.cs:959
UW t_plane_segment_count
segment count of coordinated move for T plane.
Definition gclib.cs:982
UB axis_e_reserved
Reserved.
Definition gclib.cs:1054
UW s_plane_move_status
coordinated move status for S plane.
Definition gclib.cs:978
UB ethernet_status_a
Ethernet Handle A Status.
Definition gclib.cs:961
UB ethernet_status_d
Ethernet Handle D Status.
Definition gclib.cs:964
UB axis_c_switches
C axis switches.
Definition gclib.cs:1016
Data record struct for DMC-4000 controllers, including 4000, 4200, 4103, and 500x0.
Definition gclib.cs:919
UW output_analog_2
Analog output 2.
Definition gclib.cs:1779
UW input_analog_5
Analog input 5.
Definition gclib.cs:1791
UB header_1
2nd Byte of Header.
Definition gclib.cs:1769
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:1764
UW output_analog_4
Analog output 4.
Definition gclib.cs:1781
UW output_analog_7
Analog output 7.
Definition gclib.cs:1784
UW input_analog_2
Analog input 2.
Definition gclib.cs:1788
SL encoder_2
Encoder channel 2. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1805
UW output_analog_0
Analog output 0.
Definition gclib.cs:1777
UW input_bank_0
Digital inputs 0-15;.
Definition gclib.cs:1797
UW output_bank_0
Digital outputs 0-15;.
Definition gclib.cs:1795
UW input_analog_7
Analog input 7.
Definition gclib.cs:1793
SL encoder_1
Encoder channel 1. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1804
UW sample_number
Sample number.
Definition gclib.cs:1773
UB header_3
4th Byte of Header.
Definition gclib.cs:1771
UW input_analog_4
Analog input 4.
Definition gclib.cs:1790
UW output_analog_6
Analog output 6.
Definition gclib.cs:1783
UB header_2
3rd Byte of Header.
Definition gclib.cs:1770
UB general_status
General status.
Definition gclib.cs:1775
SL zd_variable
ZD User-defined variable (see ZD).
Definition gclib.cs:1801
UW input_analog_6
Analog input 6.
Definition gclib.cs:1792
UB header_0
1st Byte of Header.
Definition gclib.cs:1768
UW input_analog_3
Analog input 3.
Definition gclib.cs:1789
UW input_analog_1
Analog input 1.
Definition gclib.cs:1787
UB error_code
Error code.
Definition gclib.cs:1774
SL encoder_3
Encoder channel 3. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1806
UW output_analog_1
Analog output 1.
Definition gclib.cs:1778
UW output_analog_3
Analog output 3.
Definition gclib.cs:1780
SL encoder_0
Encoder channel 0. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1803
UW output_analog_5
Analog output 5.
Definition gclib.cs:1782
UW input_analog_0
Analog input 0.
Definition gclib.cs:1786
SL zc_variable
ZC User-defined variable (see ZC).
Definition gclib.cs:1800
UL pulse_count_0
Pulse counter (see PC).
Definition gclib.cs:1799
Data record struct for RIO-471xx and RIO-472xx PLCs. Includes encoder fields.
Definition gclib.cs:1763
UW output_analog_2
Analog output 2.
Definition gclib.cs:1933
UW input_analog_5
Analog input 5.
Definition gclib.cs:1945
UB header_1
2nd Byte of Header.
Definition gclib.cs:1923
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:1919
UW output_analog_4
Analog output 4.
Definition gclib.cs:1935
UB output_byte_2
Digital outputs 16-23.
Definition gclib.cs:1951
UW output_analog_7
Analog output 7.
Definition gclib.cs:1938
UB input_byte_3
Digital inputs 24-31.
Definition gclib.cs:1956
UW input_analog_2
Analog input 2.
Definition gclib.cs:1942
SL encoder_2
Encoder channel 2. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1965
UW output_analog_0
Analog output 0.
Definition gclib.cs:1931
UB input_byte_1
Digital inputs 8-15.
Definition gclib.cs:1954
UW input_analog_7
Analog input 7.
Definition gclib.cs:1947
SL encoder_1
Encoder channel 1. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1964
UW sample_number
Sample number.
Definition gclib.cs:1927
UB header_3
4th Byte of Header.
Definition gclib.cs:1925
UW input_analog_4
Analog input 4.
Definition gclib.cs:1944
UW output_analog_6
Analog output 6.
Definition gclib.cs:1937
UB input_byte_0
Digital inputs 0-7.
Definition gclib.cs:1953
UB header_2
3rd Byte of Header.
Definition gclib.cs:1924
UB input_byte_4
Digital inputs 32-39.
Definition gclib.cs:1957
UB output_byte_0
Digital outputs 0-7.
Definition gclib.cs:1949
UB general_status
General status.
Definition gclib.cs:1929
SL zd_variable
ZD User-defined variable (see ZD).
Definition gclib.cs:1961
UW input_analog_6
Analog input 6.
Definition gclib.cs:1946
UB header_0
1st Byte of Header.
Definition gclib.cs:1922
UW input_analog_3
Analog input 3.
Definition gclib.cs:1943
UW input_analog_1
Analog input 1.
Definition gclib.cs:1941
UB output_byte_1
Digital outputs 8-15.
Definition gclib.cs:1950
UB error_code
Error code.
Definition gclib.cs:1928
UB input_byte_2
Digital inputs 16-23.
Definition gclib.cs:1955
SL encoder_3
Encoder channel 3. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1966
UW output_analog_1
Analog output 1.
Definition gclib.cs:1932
UW output_analog_3
Analog output 3.
Definition gclib.cs:1934
SL encoder_0
Encoder channel 0. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1963
UW output_analog_5
Analog output 5.
Definition gclib.cs:1936
UW input_analog_0
Analog input 0.
Definition gclib.cs:1940
SL zc_variable
ZC User-defined variable (see ZC).
Definition gclib.cs:1960
UL pulse_count_0
Pulse counter (see PC).
Definition gclib.cs:1959
Data record struct for RIO-47162.
Definition gclib.cs:1918
UW output_analog_2
Analog output 2.
Definition gclib.cs:1881
UW input_analog_5
Analog input 5.
Definition gclib.cs:1893
UB header_1
2nd Byte of Header.
Definition gclib.cs:1871
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:1866
UW output_analog_4
Analog output 4.
Definition gclib.cs:1883
UW input_bank_2
Digital inputs 24-39. Data only valid for parts with 24EXIN.
Definition gclib.cs:1910
UW output_analog_7
Analog output 7.
Definition gclib.cs:1886
UW input_analog_2
Analog input 2.
Definition gclib.cs:1890
UW output_analog_0
Analog output 0.
Definition gclib.cs:1879
UW input_bank_0
Digital inputs 0-15.
Definition gclib.cs:1900
UW output_bank_0
Digital outputs 0-15.
Definition gclib.cs:1897
UW input_analog_7
Analog input 7.
Definition gclib.cs:1895
UW sample_number
Sample number.
Definition gclib.cs:1875
UB header_3
4th Byte of Header.
Definition gclib.cs:1873
UW input_analog_4
Analog input 4.
Definition gclib.cs:1892
UW output_analog_6
Analog output 6.
Definition gclib.cs:1885
UB header_2
3rd Byte of Header.
Definition gclib.cs:1872
UB general_status
General status.
Definition gclib.cs:1877
SL zd_variable
ZD User-defined variable (see ZD).
Definition gclib.cs:1905
UW input_analog_6
Analog input 6.
Definition gclib.cs:1894
UB header_0
1st Byte of Header.
Definition gclib.cs:1870
UW input_analog_3
Analog input 3.
Definition gclib.cs:1891
UW input_bank_3
Digital inputs 40-47. Data only valid for parts with 24EXIN.
Definition gclib.cs:1911
UW input_bank_1
Digital inputs 16-23.
Definition gclib.cs:1901
UW input_analog_1
Analog input 1.
Definition gclib.cs:1889
UW output_back_3
Digital outputs 40-47. Data only valid for parts with 24EXOUT.
Definition gclib.cs:1908
UB error_code
Error code.
Definition gclib.cs:1876
UW output_bank_1
Digital outputs 16-23.
Definition gclib.cs:1898
UW output_analog_1
Analog output 1.
Definition gclib.cs:1880
UW output_bank_2
Digital outputs 24-39. Data only valid for parts with 24EXOUT.
Definition gclib.cs:1907
UW output_analog_3
Analog output 3.
Definition gclib.cs:1882
UW output_analog_5
Analog output 5.
Definition gclib.cs:1884
UW input_analog_0
Analog input 0.
Definition gclib.cs:1888
SL zc_variable
ZC User-defined variable (see ZC).
Definition gclib.cs:1904
UL pulse_count_0
Pulse counter (see PC)8.
Definition gclib.cs:1903
Data record struct for RIO-47300 with 24EX I/O daughter board.
Definition gclib.cs:1865
UW output_analog_2
Analog output 2.
Definition gclib.cs:1829
UW input_analog_5
Analog input 5.
Definition gclib.cs:1841
UB header_1
2nd Byte of Header.
Definition gclib.cs:1819
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:1814
UW output_analog_4
Analog output 4.
Definition gclib.cs:1831
UW output_analog_7
Analog output 7.
Definition gclib.cs:1834
UW input_analog_2
Analog input 2.
Definition gclib.cs:1838
SL encoder_2
Encoder channel 2. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1857
UW output_analog_0
Analog output 0.
Definition gclib.cs:1827
UW input_bank_0
Digital inputs 0-15;.
Definition gclib.cs:1848
UW output_bank_0
Digital outputs 0-15;.
Definition gclib.cs:1845
UW input_analog_7
Analog input 7.
Definition gclib.cs:1843
SL encoder_1
Encoder channel 1. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1856
UW sample_number
Sample number.
Definition gclib.cs:1823
UB header_3
4th Byte of Header.
Definition gclib.cs:1821
UW input_analog_4
Analog input 4.
Definition gclib.cs:1840
UW output_analog_6
Analog output 6.
Definition gclib.cs:1833
UB header_2
3rd Byte of Header.
Definition gclib.cs:1820
UB general_status
General status.
Definition gclib.cs:1825
SL zd_variable
ZD User-defined variable (see ZD).
Definition gclib.cs:1853
UW input_analog_6
Analog input 6.
Definition gclib.cs:1842
UB header_0
1st Byte of Header.
Definition gclib.cs:1818
UW input_analog_3
Analog input 3.
Definition gclib.cs:1839
UW input_bank_1
Digital inputs 16-23;.
Definition gclib.cs:1849
UW input_analog_1
Analog input 1.
Definition gclib.cs:1837
UB error_code
Error code.
Definition gclib.cs:1824
SL encoder_3
Encoder channel 3. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1858
UW output_bank_1
Digital outputs 16-23;.
Definition gclib.cs:1846
UW output_analog_1
Analog output 1.
Definition gclib.cs:1828
UW output_analog_3
Analog output 3.
Definition gclib.cs:1830
SL encoder_0
Encoder channel 0. Data only valid for parts with -BISS, -QUAD, or -SSI.
Definition gclib.cs:1855
UW output_analog_5
Analog output 5.
Definition gclib.cs:1832
UW input_analog_0
Analog input 0.
Definition gclib.cs:1836
SL zc_variable
ZC User-defined variable (see ZC).
Definition gclib.cs:1852
UL pulse_count_0
Pulse counter (see PC).
Definition gclib.cs:1851
Data record struct for RIO-47300. Includes encoder fields.
Definition gclib.cs:1813
UL contour_segment_count
Segment Count for Contour Mode.
Definition gclib.cs:1159
UB axis_a_reserved
Reserved.
Definition gclib.cs:1183
UB axis_h_reserved
Reserved.
Definition gclib.cs:1281
SL axis_a_variable
A User-defined variable (ZA).
Definition gclib.cs:1184
UB header_1
2nd Byte of Header.
Definition gclib.cs:1108
SL axis_c_aux_position
C axis auxiliary position.
Definition gclib.cs:1206
byte[] byte_array()
Returns the data record as a byte array and allows for access to individual bytes.
Definition gclib.cs:1104
SL axis_h_torque
H axis torque.
Definition gclib.cs:1278
UW axis_e_status
E axis status.
Definition gclib.cs:1228
UB ethernet_status_c
Ethernet Handle C Status.
Definition gclib.cs:1148
UB input_bank_3
general input bank 3 (inputs 25-32).
Definition gclib.cs:1117
UB input_bank_0
general input bank 0 (inputs 1-8).
Definition gclib.cs:1114
SL axis_d_reference_position
D axis reference position.
Definition gclib.cs:1217
SL axis_b_position_error
B axis position error.
Definition gclib.cs:1191
SL axis_h_position_error
H axis position error.
Definition gclib.cs:1275
SL axis_g_variable
G User-defined variable (ZA).
Definition gclib.cs:1268
UW axis_f_analog_in
F axis analog input.
Definition gclib.cs:1251
SL axis_c_variable
C User-defined variable (ZA).
Definition gclib.cs:1212
UB axis_d_stop_code
D axis stop code.
Definition gclib.cs:1216
SL axis_e_motor_position
E axis motor position.
Definition gclib.cs:1232
UB axis_a_switches
A axis switches.
Definition gclib.cs:1173
UB axis_d_reserved
Reserved.
Definition gclib.cs:1225
UB output_bank_3
general output bank 3 (outputs 25-32).
Definition gclib.cs:1128
UB axis_e_stop_code
E axis stop code.
Definition gclib.cs:1230
UW axis_h_analog_in
H axis analog input.
Definition gclib.cs:1279
UB axis_g_switches
G axis switches.
Definition gclib.cs:1257
UB axis_h_stop_code
H axis stop code.
Definition gclib.cs:1272
SL axis_g_position_error
G axis position error.
Definition gclib.cs:1261
UB input_bank_1
general input bank 1 (inputs 9-16).
Definition gclib.cs:1115
SL axis_d_position_error
D axis position error.
Definition gclib.cs:1219
SW reserved_10
Reserved.
Definition gclib.cs:1141
SL axis_d_velocity
D axis velocity.
Definition gclib.cs:1221
UB axis_b_switches
B axis switches.
Definition gclib.cs:1187
SL axis_h_reference_position
H axis reference position.
Definition gclib.cs:1273
UW axis_h_status
H axis status.
Definition gclib.cs:1270
SL axis_a_motor_position
A axis motor position.
Definition gclib.cs:1176
SL axis_f_position_error
F axis position error.
Definition gclib.cs:1247
UB ethercat_bank
EtherCAT Bank Indicator.
Definition gclib.cs:1143
UB axis_g_stop_code
G axis stop code.
Definition gclib.cs:1258
UB axis_f_reserved
Reserved.
Definition gclib.cs:1253
UB ethernet_status_g
Ethernet Handle G Status.
Definition gclib.cs:1152
UB input_bank_2
general input bank 2 (inputs 17-24).
Definition gclib.cs:1116
SL axis_g_aux_position
G axis auxiliary position.
Definition gclib.cs:1262
UW axis_b_analog_in
B axis analog input.
Definition gclib.cs:1195
UW s_plane_segment_count
segment count of coordinated move for S plane.
Definition gclib.cs:1162
UB thread_status
thread status
Definition gclib.cs:1156
UW axis_d_analog_in
D axis analog input.
Definition gclib.cs:1223
SL axis_h_motor_position
H axis motor position.
Definition gclib.cs:1274
SW reserved_8
Reserved.
Definition gclib.cs:1140
SL axis_f_motor_position
F axis motor position.
Definition gclib.cs:1246
UB output_bank_2
general output bank 2 (outputs 17-24).
Definition gclib.cs:1127
SL axis_c_motor_position
C axis motor position.
Definition gclib.cs:1204
SL axis_c_position_error
C axis position error.
Definition gclib.cs:1205
SL axis_b_torque
B axis torque.
Definition gclib.cs:1194
UW contour_buffer_available
Buffer space remaining, Contour Mode.
Definition gclib.cs:1160
UB axis_b_stop_code
B axis stop code.
Definition gclib.cs:1188
UB axis_e_switches
E axis switches.
Definition gclib.cs:1229
SW reserved_0
Reserved.
Definition gclib.cs:1136
UB axis_h_switches
H axis switches.
Definition gclib.cs:1271
UW sample_number
sample number.
Definition gclib.cs:1112
UW axis_a_analog_in
A axis analog input.
Definition gclib.cs:1181
SL axis_a_velocity
A axis velocity.
Definition gclib.cs:1179
UL amplifier_status
Amplifier Status.
Definition gclib.cs:1157
UB header_3
4th Byte of Header.
Definition gclib.cs:1110
UW axis_f_status
F axis status.
Definition gclib.cs:1242
SL axis_g_reference_position
G axis reference position.
Definition gclib.cs:1259
UB axis_c_stop_code
C axis stop code.
Definition gclib.cs:1202
SL axis_c_torque
C axis torque.
Definition gclib.cs:1208
SL axis_g_torque
G axis torque.
Definition gclib.cs:1264
UB output_bank_7
general output bank 7 (outputs 57-64).
Definition gclib.cs:1132
SL axis_f_velocity
F axis velocity.
Definition gclib.cs:1249
UB input_bank_8
general input bank 8 (inputs 65-72).
Definition gclib.cs:1122
UW axis_g_status
G axis status.
Definition gclib.cs:1256
UW axis_d_status
D axis status.
Definition gclib.cs:1214
UB input_bank_9
general input bank 9 (inputs 73-80).
Definition gclib.cs:1123
SW reserved_2
Reserved.
Definition gclib.cs:1137
SW reserved_4
Reserved.
Definition gclib.cs:1138
SL axis_a_position_error
A axis position error.
Definition gclib.cs:1177
SL axis_a_aux_position
A axis auxiliary position.
Definition gclib.cs:1178
UW axis_a_status
A axis status.
Definition gclib.cs:1172
SL axis_e_reference_position
E axis reference position.
Definition gclib.cs:1231
UB output_bank_4
general output bank 4 (outputs 33-40).
Definition gclib.cs:1129
SL axis_e_variable
E User-defined variable (ZA).
Definition gclib.cs:1240
SL axis_h_variable
H User-defined variable (ZA).
Definition gclib.cs:1282
SL axis_b_variable
B User-defined variable (ZA).
Definition gclib.cs:1198
UB input_bank_5
general input bank 5 (inputs 41-48).
Definition gclib.cs:1119
UB axis_g_reserved
Reserved.
Definition gclib.cs:1267
SL axis_b_reference_position
B axis reference position.
Definition gclib.cs:1189
UB axis_f_halls
F Hall Input Status.
Definition gclib.cs:1252
UW s_plane_buffer_available
Buffer space remaining, S Plane.
Definition gclib.cs:1165
UB header_2
3rd Byte of Header.
Definition gclib.cs:1109
SL axis_g_velocity
G axis velocity.
Definition gclib.cs:1263
UB axis_f_stop_code
F axis stop code.
Definition gclib.cs:1244
SL axis_c_reference_position
C axis reference position.
Definition gclib.cs:1203
UW axis_e_analog_in
E axis analog input.
Definition gclib.cs:1237
SL axis_g_motor_position
G axis motor position.
Definition gclib.cs:1260
SW reserved_12
Reserved.
Definition gclib.cs:1142
SL axis_f_aux_position
F axis auxiliary position.
Definition gclib.cs:1248
UB output_bank_9
general output bank 9 (outputs 73-80).
Definition gclib.cs:1134
UW t_plane_buffer_available
Buffer space remaining, T Plane.
Definition gclib.cs:1170
UB axis_b_reserved
Reserved.
Definition gclib.cs:1197
SL s_distance
distance traveled in coordinated move for S plane.
Definition gclib.cs:1164
SL axis_b_aux_position
B axis auxiliary position.
Definition gclib.cs:1192
UB axis_g_halls
G Hall Input Status.
Definition gclib.cs:1266
UW axis_c_analog_in
C axis analog input.
Definition gclib.cs:1209
SL axis_a_torque
A axis torque.
Definition gclib.cs:1180
UB input_bank_6
general input bank 6 (inputs 49-56).
Definition gclib.cs:1120
UB axis_a_stop_code
A axis stop code.
Definition gclib.cs:1174
SL axis_h_aux_position
H axis auxiliary position.
Definition gclib.cs:1276
SL axis_a_reference_position
A axis reference position.
Definition gclib.cs:1175
UB header_0
1st Byte of Header.
Definition gclib.cs:1107
UB axis_c_halls
C Hall Input Status.
Definition gclib.cs:1210
UW axis_g_analog_in
G axis analog input.
Definition gclib.cs:1265
UB output_bank_8
general output bank 8 (outputs 65-72).
Definition gclib.cs:1133
SL t_distance
distance traveled in coordinated move for T plane.
Definition gclib.cs:1169
UB axis_d_switches
D axis switches.
Definition gclib.cs:1215
UW axis_b_status
B axis status.
Definition gclib.cs:1186
SL axis_d_aux_position
D axis auxiliary position.
Definition gclib.cs:1220
UB axis_c_reserved
Reserved.
Definition gclib.cs:1211
UB reserved_14
Reserved.
Definition gclib.cs:1144
SL axis_f_variable
F User-defined variable (ZA).
Definition gclib.cs:1254
UB axis_e_halls
E Hall Input Status.
Definition gclib.cs:1238
UB ethernet_status_e
Ethernet Handle E Status.
Definition gclib.cs:1150
UB output_bank_0
general output bank 0 (outputs 1-8).
Definition gclib.cs:1125
UB axis_f_switches
F axis switches.
Definition gclib.cs:1243
SL axis_b_velocity
B axis velocity.
Definition gclib.cs:1193
SL axis_e_position_error
E axis position error.
Definition gclib.cs:1233
UB error_code
error code.
Definition gclib.cs:1155
UB ethernet_status_f
Ethernet Handle F Status.
Definition gclib.cs:1151
SL axis_e_torque
E axis torque.
Definition gclib.cs:1236
UB axis_b_halls
B Hall Input Status.
Definition gclib.cs:1196
SW reserved_6
Reserved.
Definition gclib.cs:1139
UB axis_d_halls
D Hall Input Status.
Definition gclib.cs:1224
SL axis_e_aux_position
E axis auxiliary position.
Definition gclib.cs:1234
UB ethernet_status_h
Ethernet Handle H Status.
Definition gclib.cs:1153
SL axis_d_variable
D User-defined variable (ZA).
Definition gclib.cs:1226
UB input_bank_7
general input bank 7 (inputs 57-64).
Definition gclib.cs:1121
UB input_bank_4
general input bank 4 (inputs 33-40).
Definition gclib.cs:1118
SL axis_c_velocity
C axis velocity.
Definition gclib.cs:1207
UB output_bank_6
general output bank 6 (outputs 49-56).
Definition gclib.cs:1131
UB output_bank_5
general output bank 5 (outputs 41-48).
Definition gclib.cs:1130
UW axis_c_status
C axis status.
Definition gclib.cs:1200
SL axis_f_torque
F axis torque.
Definition gclib.cs:1250
SL axis_b_motor_position
B axis motor position.
Definition gclib.cs:1190
SL axis_f_reference_position
F axis reference position.
Definition gclib.cs:1245
UB output_bank_1
general output bank 1 (outputs 9-16).
Definition gclib.cs:1126
SL axis_d_torque
D axis torque.
Definition gclib.cs:1222
UB ethernet_status_b
Ethernet Handle B Status.
Definition gclib.cs:1147
UW t_plane_move_status
Coordinated move status for T plane.
Definition gclib.cs:1168
UB axis_a_halls
A Hall Input Status.
Definition gclib.cs:1182
SL axis_h_velocity
H axis velocity.
Definition gclib.cs:1277
UB axis_h_halls
H Hall Input Status.
Definition gclib.cs:1280
SL axis_e_velocity
E axis velocity.
Definition gclib.cs:1235
SL axis_d_motor_position
D axis motor position.
Definition gclib.cs:1218
UW t_plane_segment_count
segment count of coordinated move for T plane.
Definition gclib.cs:1167
UB axis_e_reserved
Reserved.
Definition gclib.cs:1239
UW s_plane_move_status
coordinated move status for S plane.
Definition gclib.cs:1163
UB ethernet_status_a
Ethernet Handle A Status.
Definition gclib.cs:1146
UB ethernet_status_d
Ethernet Handle D Status.
Definition gclib.cs:1149
UB axis_c_switches
C axis switches.
Definition gclib.cs:1201
Data record struct for DMC-52000 controller. Same as DMC-4000, with bank indicator added at byte 40.
Definition gclib.cs:1103
Data record union, containing all structs and a generic byte array accessor.