POWER ELECTRONICS
SD700
–
PROFIBUS
PROGRAMMING FOR STEP 7
39
E
N
G
L
I
S
H
5.1.
Example of program for Step 7
In the following example, the Profibus board is configured with the
Profipower SD700 Type 3 Module.
Two Data Blocks are created: DB1 (Data Block 1) with 5 registers and
DB2 (Data Block 2) with 2 registers.
Input data are copied to the DB2 by calling SFC14. Output data are
copied from DB1 by calling SFC15.
Verify the length in bytes for the RECORD field must be the same as
the configured module.
For additional information about the SFCs, consult the STEP 7 aid.
// Data Input
CALL "DPRD_DAT"
LADDR :=W#16#100
RET_VAL:=MW1
RECORD :=P#DB2.DBX0.0 BYTE 4
// Data Output
CALL "DPWR_DAT"
LADDR :=W#16#100
RECORD :=P#DB1.DBX0.0 BYTE 10
RET_VAL:=MW2
Содержание ProfiPower SD700 Type 1
Страница 1: ...Communication Network Profibus Communication...
Страница 2: ......
Страница 3: ...Communication Network Profibus Communication Edition April 2015 SD70BC03EI Rev E...
Страница 4: ...SD700 PROFIBUS POWER ELECTRONICS 2...
Страница 6: ...SD700 PROFIBUS POWER ELECTRONICS 4...
Страница 8: ...SD700 PROFIBUS POWER ELECTRONICS 6 INDEX...
Страница 14: ...SD700 PROFIBUS POWER ELECTRONICS 12 SAFETY INSTRUCTIONS...
Страница 45: ...www power electronics com...