5/14/2012 8:52 AM | |
Posts: 69 Rating: (0) |
Dear all I want to send strings to pc by send_ptp instruction. I place it in startup and in main cyclic program but only the string which placed in startup is sent! My program is as following: in the startup: Strg_TO_Chars(Strg:='startup', pChars:=0, Cnt=>#cnt, Chars:=#buf); "SEND_PTP_DB"(REQ:=true, PORT:=269, BUFFER:=#buf, LENGTH:=7, PTRCL:=false, DONE=>#dn, ERROR=>#err, STATUS=>#stts); in the main program cycle: Strg_TO_Chars(Strg:='main', pChars:=0, Cnt=>#cnt, Chars:=#buf); "SEND_PTP_DB"(REQ:=true, PORT:=269, BUFFER:=#buf, LENGTH:=4, PTRCL:=false, DONE=>#dn, ERROR=>#err, STATUS=>#stts); Please if anyone can solve the problem. I plac the project in attachment also. Best regards, AttachmentProject1.zip (58 Downloads) |
5/14/2012 5:05 PM | |
Posts: 69 Rating: (0) |
the problem was solved. the rising edge to REQ does not done correctly! regards, |
Follow us on