354
System Manual – MOVIDRIVE® compact Drive Inverters
10
Starting the inverter with PROFIBUS-DP (MC_41A)
Startup
//Start of cyclical program processing in OB1
BEGIN
NETWORK
TITLE =Copy PI data from servo drive to DB3, word 0/2/4
CALL SFC 14 (DPRD_DAT)
//Read DP slave record
LADDR := W#16#240
//Input address 576
RET_VAL:= MW 30
//Result in flag word 30
RECORD := P#DB3.DBX 0.0 BYTE 6
//Hand
NETWORK
TITLE =PLC program with drive application
// PLC program uses the process data in DB3 for
// drive control
L DB3.DBW 0
//Load PI1 (status word 1)
L DB3.DBW 2
//Load PI2 (actual speed value)
L DB3.DBW 4
//Load PI3 (no function)
L W#16#0006
T DB3.DBW 20
//Write 6hex to PO1 (control word = enable)
L 1500
T DB3.DBW 22
//Write 1500dec to PO2 (speed setpoint = 300 1/min)
L W#16#0000
T DB3.DBW 24
//Write 0hex to PO3 (has no function)
//End of cyclical program processing in OB1
NETWORK
TITLE =Copy PO data from DB3, word 20/22/24 to the inverter
CALL SFC 15 (DPWR_DAT)
//Write DP slave record
LADDR := W#16#240
//Output address 576 = 240hex
RECORD := P#DB3.DBX 20.0 BYTE 6
//Pointer on DB/DW
RET_VAL:= MW 32
//Result in flag word 32
NOTE
For further information and sample applications regarding control via the process data
channel, especially coding of the control and status word, see the manual on the
fieldbus unit profile, which you can order from SEW.
0
0
I
Summary of Contents for MOVIDRIVE compact MCH41A
Page 2: ...SEW EURODRIVE Driving the world...
Page 432: ......