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
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