6F8C0903
221
D.4 Input/Output Data Area Batch Access Function Block
D
D.4 Input/Output Data Area Batch Access Function Block
(1) Definitions of Variables
(*===================================================
DeviceNet FB Input/Output Data Area Batch Access
===================================================*Åj
VAR_INPUT
REQ: BOOL; (*Execution request*)
CH: WORD; (*Channel specify*)
UNIT: WORD; (*Unit specify*)
SLOT: WORD; (*Slot specify*)
N_RPOL: UINT; (*Total number of polling input words to transfer*)
N_WPOL: UINT; (*Total number of polling output words to transfer*)
WRITE_DT: typeWRITEDAT; (*Output data*)
END_VAR
VAR_OUTPUT
DONE: BOOL; (*Completion*)
ERR: BOOL; (*Error*)
STATUS: WORD; (*Status*)
READ_DT: typeREADDAT; (*Input data*)
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...16] OF BOOL; (*Step*)
DEF1: BOOL; (*Differential contact*)
DUMMY_R1: BOOL; (*Dummy*)
ADR_RED1: WORD; (*Extension memory address*)
DAT_RED1: WORD; (*Transfer destination variable*)
NUM_RED1: UINT; (*Number of words to transfer*)
COMP_RED1: BOOL (*Completion*)
RUN: BOOL; (*Run mode*)
SYN: BOOL; (*Synchronous mode*)
BS: BOOL; (*Bit strobe operating*)
POL: BOOL; (*Polling operating*)
TMR1: TON_100ms; (*Error detection*)
TIME1: DINT; (*Error detection time*)
DUMMY_W1: BOOL; (*Dummy*)