
6F8C0903
83
4.4 User Function Block for Slave Data Input/Output
4
4.4.1
Input/output data area batch access
(1) Function
This is to write output data from the area (WRITE_DT) provided for the controller in
the polling output data area and bit stroe outputt data area of the DN311. If the data
is for polling, specify a data size in the rangge of 1 to 128 words; if it is for bit strobe,
the data size is fixed at 4 words.
Input data is also copied from the polling/bit strobe input data area of the DN311 into
the area (READ_DT) provided by the S controller. Specify a data size in the range of
1 to 128 words.
(2) Diagrammatic representation (Function block)
WRITE_DT
Structural data type Output data to slave device
WRITE_DT structure:
WPOL[0]
WORD type
Polling output data (0)
WPOL[1]
WORD type
Polling output data (1)
~
~
~
WPOL[127] WORD type
Polling output data (127)
WBS[0]
WORD type
BS output data (0)
WBS[1]
WORD type
BS output data (1)
WBS[2]
WORD type
BS output data (2)
WBS[3]
WORD type
BS output data (3)
Input Argument
Output Argument
REQ
BOOL type
Execution enabled DONE
BOOL type
Completed
CH
WORD type
Channel No.
ERR
BOOL type
Error
UNIT
WORD type
Unit No.
STATUS
WORD type
Station status
SLOT
WORD type
Slot No.
READ_DT
Data structural
type
Input data from
slave device
N_RPOL
UINT type
No. of polling input
words
N_WPOL
UINT type
No. of polling
output words
WRITE_DT
Data
structural type
Output data to
slave device
DN_SLAVERW
CH
REQ
UNIT
SLOT
DONE
ERR
WRITE_DT
READ_DT
N_WPOL
N_RPOL
STATUS