EasyManua.ls Logo

Power Electronics ProfiPower SD700 Type 1 - Modbus Register Management

Power Electronics ProfiPower SD700 Type 1
45 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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