12
MOVILINK
®
device profile
Sample program for Simatic S7 and fieldbus
Manual – PROFINET IO Interfaces, Field Distributors
150
12.3
Sample program for Simatic S7 and fieldbus
A sample program for the Simatic S7 PLC illustrates the processing of process data
as well as the digital inputs and outputs of the MF.. fieldbus interface.
INFORMATION
This section simply demonstrates how to create a PLC program using a non-binding
example. SEW‑EURODRIVE is not liable for the content of the sample program.
12.3.1
Address assignment of process data in the programmable controller
In the example, the process data of the fieldbus interface is stored in the PLC memory
range PW132 – PW136.
The additional output/input word is administered in AW 100 and EW 100.
AW132
AW134
AW136
EW132
EW134
EW136
PO1
PO2
PO3
PI1
PI2
PI3
[2]
[3]
[1]
MOVIMOT
®
- +
+ MF..
AW100
EW100
DI
DO
PO1
PO2
PO3
PI1
PI2
PI3
PO
DO
DI
PI
Master
1192075019
[1] Address range
PO
Process output data
PI
Process input data
[2] Output addresses
PO1 Control word
PI1
Status word 1
[3] Input addresses
PO2 Speed [%]
PI2
Output current
PO3 Ramp
PI3
Status word 2
DO
Digital outputs
DI
Digital inputs
12.3.2
Processing the digital inputs/outputs of the MF.. fieldbus interface
The AND operation of digital inputs DI0 – DI3 controls the digital outputs DO0 and
DO1 on the MF.. interface:
U E 100.0 // Wenn DI0 = "1"
U E 100.1 // DI1 = "1"
U E 100.2 // DI2 = "1"
U E 100.3 // DI3 = "1"
= A 100.0 // dann DO0 = "1"
= A 100.1 // DO1 = "1"
22870857/EN – 12/2016