6/29/2018 4:44 AM | |
Posts: 23 Rating:
|
Hi Sir: I use SFB52 to read data from my IO device. Below is my code. I put my code in OB1. CALL RDREC , "DB54" ptr_type:=Variant REQ :=TRUE ID :="Tag_8" // %MW102 INDEX :="Tag_9" // %MD 120 MLEN :=4 VALID :="Tag_3" // %M110.0 BUSY :="Tag_4" // %M110.1 ERROR :="Tag_5" // %M110.2 STATUS :="Tag_6" // %MD112 LEN :="Tag_7" // % MW116 RECORD :=P#DB10.DBX0.0 BYTE 4 When I start run my program, the "BUSY output toggles between "true" & "false alternately with the "ERROR" output. The "VALID" output remains "false". The following error codes appear on the "STATUS" output; While the "BUSY" output is "true", STATUS is 16#00700100 or 16#00700200. According to the error list it refers to the data transfer being started or it is already active. While the "ERROR" output is "true", status is 16#DE80_B000. Could anyone help me about this? Thanks for your help! Best regards, Marcus ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 6/29/2018 10:08:37 AMNew subject after splitting |
|
6/29/2018 10:11 AM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating:
|
hi Marcus, have you had a look into the Step7-help of the block? 80B1 means that the module doesn´t know the data record that you want to read out. regards, |
FCK WAR! |
|
7/4/2018 6:46 AM | |
Joined: 5/12/2006 Last visit: 3/23/2025 Posts: 22596 Rating:
|
Hello, the index is the dataset number you must modify.
Christoph |
3/18/2021 1:07 PM | |
Joined: 8/11/2017 Last visit: 5/29/2024 Posts: 1 Rating:
|
HI, Did you have find solution ? Because, at the moment, I have same problem. Regards. |
Follow us on