Planning Your Application Program
6-2-5 Data Structure
struct _StreamData
{
Chapter 6
WORD DIO[8]; // DI/DO data for Slot0, Slot1,...., Slot7
WORD Slot0[8]; // AI/AO data for slot0
WORD Slot1[8]; // AI/AO data for slot1
WORD Slot2[8]; // AI/AO data for slot2
WORD Slot3[8]; // AI/AO data for slot3
WORD Slot4[8]; // AI/AO data for slot4
WORD Slot5[8]; // AI/AO data for slot5
WORD Slot6[8]; // AI/AO data for slot6
WORD Slot7[8]; // AI/AO data for slot6
}; //StreamData,*pStreamData;
struct _AlarmInfo
{
BYTE bySlot;
// the Slot of 5000/TCP which cause the
alarm change
BYTE byChannel;
// the Channel of 5000/TCP which cause
the alarm change
BYTE byAlarmType;
// 0: Low Alarm, 1: High Alarm
BYTE byAlarmStatus; // 0: Alarm Off, 1: Alarm On
BYTE byIndexOf5KTCP; // indicate the index 5000/TCP which
cause the alarm change, zero-based
char szIP[20];
// the IP address which cause the alarm
change
char szDateTime[48];
// e.x 2001/09/23 10:12:34:567 (Year/Month/
Day Hour:Minute:Second:mSecond)
};
ADAM-5000/TCP
User’s Manual
6-31
Summary of Contents for ADAM-5000/TCP Series
Page 1: ......
Page 23: ......
Page 44: ...4 I O modules...
Page 148: ......
Page 183: ......
Page 218: ......
Page 300: ...Appendix A Design Worksheets...
Page 307: ...Appendix A Design Worksheets A 8 ADAM 5000 TCP User s Manual...
Page 308: ...Appendix B Data Formats and I O Ranges...
Page 323: ...Appendix B Data Formats and I O Ranges B 13 ADAM 5000 TCP User s Manual...
Page 324: ...Appendix C Grounding Reference...
Page 331: ...Appendix C Grounding Reference Figure C 6 wire impedancC C 8 ADAM 5000 TCP User s Manual...