186
model 2000 DeviceNet Module Manual (DN611/DN611A)
Appendix C Definition of Each Request Function Block
C
C.5 RAS Information Read Request Function Block
(1) Definitions of Variables
(*===================================================
DeviceNet FB
RAS Information Read Request
===================================================*)
VAR_INPUT
REQ:
BOOL; (*Execution request*)
CH:
WORD; (*Channel specify*)
UNIT:
WORD; (*Unit specify*)
SLOT:
WORD; (*Slot specify*)
REQTYPE:
WORD; (*Request information type*)
POSITION:
WORD; (*Starting position*)
N:
WORD; (*Number of words to read)
END_VAR
VAR_OUTPUT
DONE:
BOOL; (*Completion output*)
ERR:
BOOL; (*Error output*)
STATUS:
WORD; (*Status*)
RAS_DT:
typeRASDT; (*RAS information*)
END_VAR
VAR_EXTERNAL
SW:
ARRAY[0...511] OF INT; (*SW register INT access*)
END_VAR
VAR
SLOTNO:
WORD; (*R/W slot number*)
TMP_CH:
WORD; (*R/W channel number*)
TMP_UNIT:
WORD; (*R/W unit number*)
TMP_CHUNIT:
WORD; (*R/W channel/slot numbers*)
S3:
BOOL; (*S3 selection*)
S2:
BOOL; (*S2 selection*)
STEP:
ARRAY [0...6] OF BOOL; (*Step*)
DEF1:
BOOL; (*Differential contact*)
DUMMY_W1:
BOOL; (*Dummy*)
ADR_WRT1:
WORD; (*Extension memory address*)
DAT_WRT1:
ARRAY[0...3] OF WORD; (*Transfer source variable*)
NUM_WRT1:
UINT; (*Number of words to transfer)
DUMMY_W2:
BOOL; (*Dummy*)
ADR_WRT2:
WORD; (*Extension memory address*)
DAT_WRT2:
WORD; (*Transfer source variable*)
NUM_WRT2:
UINT; (*Number of words to transfer)
DUMMY_W3:
BOOL; (*Dummy*)
ADR_WRT3:
WORD; (*Extension memory address*)
DAT_WRT3:
WORD; (*Transfer source variable*)