PROFIPOWER
POWER ELECTRONICS
5.1.
Example of program for Step 7
In the following example, the Profipower gateway 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
44
PROGRAMMING FOR STEP 7
Содержание Profipower
Страница 1: ...PROFIPOWER PROFIBUS GATEWAY Communication Network profibus gateway...
Страница 2: ......
Страница 3: ...modbus profibus gateway Communication Network Edition June 2007 GBC02CI Rev C...
Страница 4: ...PROFIPOWER POWER ELECTRONICS 2...
Страница 6: ...PROFIPOWER POWER ELECTRONICS 4...
Страница 8: ...PROFIPOWER POWER ELECTRONICS 6 INDEX...
Страница 49: ...POWER ELECTRONICS PROFIPOWER DIAGNOSIS 47...
Страница 51: ...www power electronics com...