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