![SEW-Eurodrive DHR41B Скачать руководство пользователя страница 99](http://html.mh-extra.com/html/sew-eurodrive/dhr41b/dhr41b_manual_1250086099.webp)
Manual – MOVI-PLC® advanced DHR41B for EtherNet/IP, Modbus/TCP and PROFINET IO
99
11
Process data exchange with MOVI-PLC® advanced DHR41B
Operating Behavior (PROFINET IO)
When SFC14 is called, the process input data is copied to data block DB3, data words
0 to 18. When SFC15 is called after the control program has been processed, the pro-
cess output data are copied from data words 20 38 to the output address POW 512 ...
Note the length information in bytes for the
RECORD
parameter. The length information
must correspond to the configured length.
Refer to the online help for STEP7 for further information about the system functions.
//Start of cyclical program processing in OB1
BEGIN
NETWORK
TITLE = Copy PI data from the DHR41B control card to DB3, words 0...18
CALL SFC 14 (DPRD_DAT)
//Read DP slave record
LADDR := W#16#240 //Input address 512
RET_VAL:= MW 30
//Result in flag word 30
RECORD := P#DB3.DBX 0.0 BYTE 20 //Pointer
NETWORK
TITLE =PLC program with drive application
// PLC program uses the process data in DB3 for data exchange
// with the DHR41B control card
L DB3.DBW 0
//Load PE1
L DB3.DBW 2
//Load PE2
L DB3.DBW 4
//Load PE3
// etc.
L W#16#0006
T DB3.DBW 20
//Write 6hex to PO1
L 1500
T DB3.DBW 22
//Write 1500dec to PO2
L W#16#0000
T DB3.DBW 24
//Write 0hex to PO3
// etc.
NETWORK
TITLE = Copy PO data from DB3, words 20...38 to the DHR41B control card
CALL SFC 15 (DPWR_DAT)
//Write DP slave record
LADDR := W#16#200
//Output address 512 = 200hex
RECORD := P#DB3.DBX 20.0 BYTE 20
//Pointer to DB/DW
RET_VAL:= MW 32
//Result in flag word 32
TIP
• This program example is a special and free service that demonstrates only the ba-
sic principles of generating a PLC program as a non-binding sample. SEW is not
liable for the contents of the sample program.
• You can download S7 sample projects from the SEW homepage (http://www.sew-
eurodrive.de) under 'Software'.
0
0
I
Содержание DHR41B
Страница 2: ...SEW EURODRIVE Driving the world ...
Страница 129: ...SEW EURODRIVE Driving the world ...