Siemens SIMODRIVE 611U Product Information page 80

Connecting to the technology cpu
Table of Contents

Advertisement

Expert functions
5.5 Example: Expanding the process data area
Access in the user program
The MC_ReadPeriphery and MC_WritePeriphery technology functions are used to process
in the user program the data made available in the message frame expansion. The
technology functions are processed asynchronously.
Call the MC_ReadPeriphery technology function to read the values of the analog inputs and
the torque actual value:
CALL "MC_ReadPeriphery" , "IDB_FB450"
When the technology function (Enable = TRUE input) is started, starting at address 0, three
words will be read from the DP(DRIVE) peripheral image and saved at the address specified
in the ANY pointer.
Call the MC_WritePeriphery technology function to write the setpoints for the two analog
outputs:
CALL "MC_WritePeriphery" , "IDB_FB451"
When the technology function (Execute FALSE -> TRUE input) is started, the two words
specified in the ANY pointer will be written in the DP(DRIVE) peripheral image starting at
address 0 and thus sent to the drive.
80
Enable :=M10.0
InputOutput :=FALSE
ByteAddress :=0
Data :=P#DB100.DBX 0.0 WORD 3
DataValid :=M10.1
Busy :=M10.2
Error :=M10.3
ErrorID :=MW12
Execute :=M20.0
ByteAddress :=0
Data :=P#DB100.DBX 0.0 WORD 2
DoneFlag :=
Done :=M20.1
Busy :=M20.2
Error :=M20.3
ErrorID :=MW22
Connecting the SIMODRIVE 611U to the Technology CPU
Product Information, 03/2008, A5E00272066-05

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-300

Table of Contents