__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 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. 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. 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. Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted July 20, 2022 MVP 2023 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 Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted July 21, 2022 MVP 2023 Report Share Posted July 21, 2022 We need to see inside your Delimited Line function block. 1 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? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted August 11, 2022 MVP 2023 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. 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? Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted August 11, 2022 MVP 2023 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. 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? Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted August 12, 2022 MVP 2023 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 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. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted August 12, 2022 MVP 2023 Report Share Posted August 12, 2022 @Gabriel Franco - Good catch on two statements in one net. @__sub__g - don't do that. Joe T. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted August 12, 2022 MVP 2023 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. 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 Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted August 12, 2022 MVP 2023 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 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 Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted August 12, 2022 MVP 2023 Report Share Posted August 12, 2022 See my edit above also. 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. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted August 12, 2022 MVP 2023 Report Share Posted August 12, 2022 8 minutes ago, Gabriel Franco said: SB218 should be N.O contact instead of coil. Yep, good catch. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now