OPN DB 36
L #IN0 // Constant number of drive
L 12
*I
+ 8
SLD 3
LAR1
L DBW [AR1,P#10.0]
T #TEMP2 // profibus address of drive
L DBW [AR1,P#6.0]
+ 26
T MW 210
LAR1 P##TEMP1
L W#16#1002
T LW [AR1,P#0.0]
L 12
T LW [AR1,P#2.0]
L 37
T LW [AR1,P#4.0]
L MW 210
SLD 3
L DW#16#84000000
OD
T LD [AR1,P#6.0]
CALL "DPWR_DAT" //SFC15 write consistent data to a DP standard slave)
LADDR :=#TEMP2
RECORD :=#TEMP1
RET_VAL:=#TEMP3
BE
This program controlling a drive on DP but I could not understand how is working?Because drive (siemens masterdrive)are ready for operate and setpoint giving but it is not operating.Thanks in advance.
L #IN0 // Constant number of drive
L 12
*I
+ 8
SLD 3
LAR1
L DBW [AR1,P#10.0]
T #TEMP2 // profibus address of drive
L DBW [AR1,P#6.0]
+ 26
T MW 210
LAR1 P##TEMP1
L W#16#1002
T LW [AR1,P#0.0]
L 12
T LW [AR1,P#2.0]
L 37
T LW [AR1,P#4.0]
L MW 210
SLD 3
L DW#16#84000000
OD
T LD [AR1,P#6.0]
CALL "DPWR_DAT" //SFC15 write consistent data to a DP standard slave)
LADDR :=#TEMP2
RECORD :=#TEMP1
RET_VAL:=#TEMP3
BE
This program controlling a drive on DP but I could not understand how is working?Because drive (siemens masterdrive)are ready for operate and setpoint giving but it is not operating.Thanks in advance.