s7-300 and sew inverter

tulip

Member
Join Date
Oct 2005
Location
ist
Posts
236
Dear colleauges,we have got a S7-300 plc and a SEW Inverter .Now there is a problem.When we give start to system firstly break enable signal come and motor must be on but at the start main enable signal come to sew inverter on profibus and no breake enable signal after that main enable signal is off automatically.I look to program but clearly dont understand and comment is French.And the other need is sew profibus protocol (control and status Word related) manual.Program is following...

Periphery address of this sew PIW256,PQW256 on hardware (6 DWord long)

OB1: (called FC25)
FC25's parameters:

VAR_ADR_READ=256 (INT)
VAR_ADR_WRITE=256(INT)
PROG_ADR_READ=100(INT)
PROG_ADR_WRITE=200(INT)
LONG=6(INT)

FC25:
VAR_ADR_READ.........>MOVE........>VAR_ADR_READ_W (WORD)
VAR_ADR_WRIGHT.........>MOVE........>VAR_ADR_WRITE_W (WORD)
PROG_ADR_READ.........>MOVE........>PROG_ADR_READ_W (WORD)
PROG_ADR_WRIGHT.........>MOVE........>PROG_ADR_WRITE_W (WORD)
After that ;
PROG_ADR_READ_W........>shift left Word 3 times.....>PROG_ADR_READ_W
PROG_ADR_WRITE_W........>shift left Word 3 times.....>PROG_ADR_WRITE_W

LAR1 P##POINTER_READ

L B#16#10 //Charger l'ID de syntaxe et
T LB [AR1,P#0.0] //la transférer dans le pointeur ANY.

L B#16#2 //Charger le type de données octet et
T LB [AR1,P#1.0] //Transférer dans le pointeur ANY.

L #LONG //Charger nombre d'octets et
T LW [AR1,P#2.0] //les transférer dans le pointeur ANY.

L 0 //Numéro de DB (ou 0)
T LW [AR1,P#4.0]

L B#16#83 //Type M
T LB [AR1,P#6.0]

L 0
T LB [AR1,P#7.0]

L #PROG_ADR_READ_W //Octet de début de transfert
T LW [AR1,P#8.0]

LAR1 P##POINTER_WRITE

L B#16#10 //Charger l'ID de syntaxe et
T LB [AR1,P#0.0] //la transférer dans le pointeur ANY.

L B#16#2 //Charger le type de données octet et
T LB [AR1,P#1.0] //Transférer dans le pointeur ANY.

L #LONG //Charger nombre d'octets et
T LW [AR1,P#2.0] //les transférer dans le pointeur ANY.

L 0 //Numéro de DB (ou 0)
T LW [AR1,P#4.0]

L B#16#83 //Type M
T LB [AR1,P#6.0]

L 0
T LB [AR1,P#7.0]

L #PROG_ADR_WRITE_W //Octet de début de transfert
T LW [AR1,P#8.0]
After that SCF14 and SFC15 is calling

LADDR:#VAR_ADR_READ_W RECORD:#POINTER_READ (in SFC14)

LADDR:#VAR_ADR_WRITE_W RECORD:#POINTER_WRITE (in SFC15)

Thanks in advance.....
 

Similar Topics

Machine A has a Siemens PLC and ABB robots. Machine B has a PC control and not ABB robots. We are making machine B like machine A. I have the...
Replies
3
Views
3,703
hello guys... Im doing a certain modification of depositing machine i will be using the following: seimens 315 - 2DP cpu MP 370 HM1 FM 352 cam...
Replies
4
Views
5,336
Hi everyone! I'm just installing a SEW MOVIDRIVE B to be controled by a Siemens S7 300 using an ethernet (profinet) network. The hole network is...
Replies
13
Views
11,983
Dear sir, I am using SIMATIC 300, CPU 315-2DP , (6ES7 315-2AF03-0AB0) VIPA 603-1CC21 A1.0 RAM 32KB, Firmware=V4.0.8 The problem Im using MPI...
Replies
1
Views
61
Hello. I have a few machines that use Kinetix 300 (each machine has two drives). Both drives on one of the machine keep losing IP address. They...
Replies
2
Views
75
Back
Top Bottom