Extended instructions
9.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i)
S7-1200 Programmable controller
386 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 9- 76 RDREC and WRREC data types for the parameters
REQ = 1: Transfer data record
ID IN HW_IO (Word) Logical address of the DP slave/PROFINET IO component
(module or submodule):
• For an output module, bit 15 must be set (for example, for
address 5: ID:= DW#16#8005).
• For a combination module, the smaller of the two addresses
should be specified.
: In V3.0, the device ID can be determined in one of two
ways:
• By making the following "Network view" selections:
– Device (gray box)
– "Properties" of the device
– "Hardware identifier"
: Not all devices display their Hardware identifiers,
however.
• By making the following "Project tree" menu selections:
– PLC tags
– Default tag table
– System constants tab
All configured device Hardware identifiers are displayed.
: In V4.0, the device ID (hardware identifier) for the interface
module is determined by going to the tag table and locating the
"Device Name [HEAD]" parameter under System Constants.
INDEX IN Byte, Word, USInt,
Data record number
MLEN IN Byte, USInt, UInt Maximum length in bytes of the data record information to be
VALID OUT Bool New data record was received and valid (RDREC). The VALID
bit is TRUE for one scan, after the last request was completed
DONE OUT Bool Data record was transferred (WRREC). The DONE bit is TRUE
for one scan, after the last request was completed with no error.
BUSY OUT Bool
• BUSY = 1: The read (RDREC) or write (WRREC) process is
not yet terminated.
• BUSY = 0: Data record transmission is completed.
ERROR OUT Bool ERROR = 1: A read (RDREC) or write (WRREC) error has oc-
curred. The ERROR bit is TRUE for one scan, after the last
request was terminated with an error. The error code value at
the STATUS parameter is valid only during the single scan
Block status (Page 403) or error information (Page 553)