Technical data
Technology functions
CPU 317T: Technology Functions
6-240 A5E00251798-03
6.6.7 FB 454 MC_WriteRecord - Writing data record
Valid for firmware version V3.1.x of the integrated technology
Purpose
• The "MC_WriteRecord" technology function can be used to write a data record
to an I/O on DP(DRIVE).
• The technology function can be compared with the system function SFC 58
"WR_REC" which is used to write data records at the DP interface of an
S7 CPU.
Applicable to
• DP I/O on DP(DRIVE)
Requirements
• The I/O must support data record communication.
• The I/O must support the relevant data record.
Overriding commands
An MC_WriteRecord command can not be canceled by any other command.
An MC_WriteRecord command does not cancel any other commands.
Input parameters
Parameter Data type Start value Description
Execute BOOL FALSE Start of the command at the positive edge
InOut BOOL FALSE I/O assignment of the logical base address of the I/O
module
FALSE: input address
TRUE: output address
Address INT 0 Logical base address of the I/O module
RecordNumber INT 0 Number of the data record of the I/O module (possible
values: 0 to 255)
Data ANY - Source are of data to be written.
The maximum length of data to be written is defined by
the data type and the repetition coefficient at the ANY
pointer.
DoneFlag INT 0 DoneFlag generated in the MCDevice DB