Technical data
Technology functions
CPU 317T: Technology Functions
6-226 A5E00251798-03
6.6.4 FB 450 MC_ReadPeriphery - Reading technology I/O
Valid for firmware version V3.1.x of the integrated technology
Purpose
• The "MC_ReadPeriphery" technology function can be used to read the I/O
image (DP(DRIVE) of the integrated technology. For information on time-based
updates, refer to the Example
Applicable to
• DP I/O on DP(DRIVE)
• Integrated I/O of the Technology CPU
Requirements
• The addressed I/O must exist in the I/O image DP(DRIVE) of the integrated
technology.
Overriding commands
An MC_ReadPeriphery command can not be canceled by any other command.
An MC_ReadPeriphery command does not cancel any other commands.
Input parameters
Parameter Data type Start value Description
Enable BOOL FALSE
The system continues reading the I/O as long as Enable
= TRUE. Changes at the input parameters InputOutput,
ByteAddress and Data are only applied with a positive
edge at Enable.
InputOutput BOOL FALSE Definition of the I/O area to be read:
FALSE: I/O image of inputs
TRUE: I/O image of outputs
ByteAddress INT 0 Byte start address for reading (possible values: 0 to 63).
Data ANY -- Destination for read data.
The maximum length of data to be read is defined by the
data type and the repetition coefficient at the ANY
pointer. The maximum length is 64 bytes.