__sub__g Posted July 19, 2022 Report Share Posted July 19, 2022 The csv file is saving data into different lines .What do you think the reason is? here in the pic the field"E' should be in the prev line Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted July 19, 2022 Report Share Posted July 19, 2022 check your file using a text editor to make sure what´s happening. Quote Link to comment Share on other sites More sharing options...
__sub__g Posted July 20, 2022 Author Report Share Posted July 20, 2022 @Gabriel Franco thank you for your response. I tried the txt format and gave "e" on new line. Do you think increasing this constant would help. I increased this factor but the MI CVS did not increase. Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted July 20, 2022 Report Share Posted July 20, 2022 I would check if the buffer (vector of MIs) is being used in another place on your program. If so, it would add undesired characters. Post your program here to take a look. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted July 20, 2022 MVP 2022 Report Share Posted July 20, 2022 In this case I would also do a full Init and Reset after doing each program alteration. cheers, Aus 1 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted July 21, 2022 MVP 2022 Report Share Posted July 21, 2022 We need to see inside your Delimited Line function block. 1 Quote Link to comment Share on other sites More sharing options...
__sub__g Posted August 11, 2022 Author Report Share Posted August 11, 2022 @Flex727 @Ausman Thank you for you help. I was able to correct the error. I had a question regarding while writing in csv file. Is there a way to write in bold letter while writing data using latter logic? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 11, 2022 MVP 2022 Report Share Posted August 11, 2022 No, the .csv file format is purely text only. As far as I know, formatting text in a .csv file is not possible with any program. You can add any formatting you want when you bring the .csv file into a spreadsheet program. Quote Link to comment Share on other sites More sharing options...
__sub__g Posted August 11, 2022 Author Report Share Posted August 11, 2022 I wanted use single input to write different lines on csv file. What would be a good way to do that? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted August 11, 2022 MVP 2022 Report Share Posted August 11, 2022 Use a positive transitional of the Success Bit on the first write to trigger the second write. Joe T. Quote Link to comment Share on other sites More sharing options...
__sub__g Posted August 12, 2022 Author Report Share Posted August 12, 2022 16 hours ago, Joe Tauser said: Use a positive transitional of the Success Bit on the first write to trigger the second write. Joe T. Hey Joe, I tried it but it didn't work D you mean something like this? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted August 12, 2022 MVP 2022 Report Share Posted August 12, 2022 Not quite - why are you triggering the first write with the second write's success bit? Sometimes when you call two separate functions that use external hardware (like the SD interface) you have to put a small delay in between the calls - like half a second or so. If you post your code I can edit to show what I mean. I'm not going to enter all that logic just for a screenshot. Joe T. 1 Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted August 12, 2022 Report Share Posted August 12, 2022 In addition to Joe´s comment, both set of instructions are placed on the same rung, so positive transition of MB71 wont be detected. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted August 12, 2022 MVP 2022 Report Share Posted August 12, 2022 @Gabriel Franco - Good catch on two statements in one net. @__sub__g - don't do that. Joe T. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 12, 2022 MVP 2022 Report Share Posted August 12, 2022 2 hours ago, Joe Tauser said: why are you triggering the first write with the second write's success bit? Check again with your readers on, Joe. We don't know what MB 69 is attached to, but it's probably the source of the problem. Quote Link to comment Share on other sites More sharing options...
__sub__g Posted August 12, 2022 Author Report Share Posted August 12, 2022 2 hours ago, Joe Tauser said: Not quite - why are you triggering the first write with the second write's success bit? Sometimes when you call two separate functions that use external hardware (like the SD interface) you have to put a small delay in between the calls - like half a second or so. If you post your code I can edit to show what I mean. I'm not going to enter all that logic just for a screenshot. Joe T. thiis.vlp Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 12, 2022 MVP 2022 Report Share Posted August 12, 2022 You need to do something like this: Keep in mind that I haven't inspected your function blocks to see if they're right, just added the logic for triggering the writes. The Set & Reset bits may not be necessary, but it's good practice when there are gating contacts between the trigger and the desired function. 1 Quote Link to comment Share on other sites More sharing options...
__sub__g Posted August 12, 2022 Author Report Share Posted August 12, 2022 2 minutes ago, Flex727 said: You need to do something like this: @Flex727Thank you so much Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 12, 2022 MVP 2022 Report Share Posted August 12, 2022 See my edit above also. Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted August 12, 2022 Report Share Posted August 12, 2022 SB218 should be N.O contact instead of coil. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 12, 2022 MVP 2022 Report Share Posted August 12, 2022 8 minutes ago, Gabriel Franco said: SB218 should be N.O contact instead of coil. Yep, good catch. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.