S7-313 CP343 ethernet communication

Asbuild

Member
Join Date
Jun 2005
Location
Gent
Posts
12
I want to sent with AG_Sent(FC5) multiple strings to a display that is stored in DB1. If I 0.0 is true string 1 in de DB where sent. String 1 is a command to view de time and date on the display. Now to update the time we sent string 2 every half second to the display. This is my code:

A(
A I 0.0
A M 200.3
FP M 35.2
)
= L 45.2
OPN "Config" //DB1
LAR1 P#0.0
L DBB [AR1,P#0.0] //first string
T MW 150
CALL "AG_SEND"
ACT :=L45.2
ID :=1
LADDR :=W#16#100
SEND :=P#DB1.DBX2.0 BYTE //begin off string
LEN :=MW150
DONE :=#ndr
ERROR :=#error
STATUS:=#retourw
NOP 0

This is working but when a use 2 times AG_SEND in FC1 then it wond work any more.
I think dat i must use a FB with one AG_SEND and call it with a any pointer.

Is sommebody can help me with a example?

Thanks,
Jacques
 

Similar Topics

Hi, thanks for hosting this site, I have found many answers by searching the forums here. I'm new to siemens and don't want to buy hardware...
Replies
2
Views
2,861
I'm using a 3rd party USB to MPI adapter cable. I can see 157 blocks of various types listed under Accessible Nodes in Simatic Manager. The Upload...
Replies
28
Views
8,203
Good Afternoon , I'm working on a Shift Register , and I have a Tag called .... Tracking Vision Result Tag Data Type - DINT [313] I'm...
Replies
5
Views
2,110
Hey, Plan on migration of a S7-313 from Step-7 5.6 to TIA 15.1 It has a MP377 12"Touch HMI and they are very expensive to replace, over 12,000...
Replies
3
Views
1,601
Hi. I am triing to find manual for autotrap sensor Sick odt3-1313. It is very old sensor and Sick doesnt produce it anymore. Could find through...
Replies
0
Views
1,110
Back
Top Bottom