112
model 2000 DeviceNet Module Manual (DN611/DN611A)
Chapter 5 Example of Use of the DN611
5
5.4  Other Functions
(1) Definitions of Variables
(*==========================================================
DeviceNet DN611 Sample Program (Other Functions)
==========================================================*)
VAR_EXTERNAL
  RAS_DT :typeRASDT; (*RAS information read data*)
  TIME_DT :typeTIMEDT; (*Time set*)
  SW  :ARRAY[0..511] OF INT; (*SW register INT access*)
END_VAR
VAR
  CH :WORD; (*Channel specify*)
  UNIT :WORD; (*Unit specify*)
  SLOT :WORD; (*Slot specify*)
  INSTRUCT :BOOL; (*Allocation confirmation output*)
  END_INSTRUCT :BOOL; (*Allocation confirmation output end*)
  INSTRUCT_ERR :BOOL; (*Allocation confirmation output error*)
  DN_INSTRUCT_1 :DN_INSTRUCT; (*Allocation confirmation output*)
  STS_INSTRUCT :WORD; (*Allocation confirmation status*)
  READ_INSTW :ARRAY[0..2]OF WORD; (*Allocated data*)
  READ_INSTI :ARRAY[0..2]OF UINT; (*Allocated data size*)
  RASREAD :BOOL; (*RAS information read*)
  END_RASREAD :BOOL; (*RAS information read end*)
  RASREAD_ERR :BOOL; (*RAS information read error*)
  DN_RASREAD_1 :DN_RASREAD; (*RAS information read*)
  STS_RASREAD :WORD; (*RAS information read status*)
  READ_RASDATA :ARRAY [0..255] OF WORD; (*RAS information read data*)
  REQ :WORD; (*Type of information*)
  POS :WORD; (*Start position*)
  NUM :WORD; (*Number*)
  TIMESET :BOOL; (*Time setting request*)
  END_TIMESET :BOOL; (*Time setting request end*)
  TIMESET_ERR :BOOL; (*Time setting request error*)
  DN_TIMESET_1 :DN_RASREAD; (*Time setting request*)
  STS_TIMESET :WORD; (*Time setting request status*)
END_VAR