2/27/2012 11:57 AM | |
Posts: 5 Rating: (0) |
Hi, Thanks, for your answer. In atachment, i'll send you a a program with a example of creation CSV's with 3 different Data Sctruts (PLC1_DB, PLC2_DB, PLC3_DB), for simulate 3 new Data Log Create. I also send you the CSV's, after Write 3 lines. Data Struct "PLC1_DB": OF Int 0 False True CP Int 0 False True CM Int 0 False True Prod1 DInt 0 False True Prod2 DInt 0 False True Prod3 DInt 0 False True Prod4 DInt 0 False True Prod5 DInt 0 False True Data Struct "PLC2_DB": Int1 String False True Int2 String False True Int3 Int 0 False True Int4 Int 0 False True Int5 Int 0 False True Int6 Int 0 False True Int7 Int 0 False True Int8 Int 0 False True Data Struct "PLC3_DB": Int1 String[20] False True Int2 String[20] False True Int3 Int 0 False True Int4 Int 0 False True Int5 Int 0 False True Int6 Int 0 False True Int7 Int 0 False True Int8 Int 0 False True I can create PLC1 and PLC2 CSV's with sucess. But in the case of PLC3 i got the 8C20 error ("String with length specification other than 254 used"), and it's not possible to create. If i write 3 new lines in PLC1 and PLC2, i got diferents results: - In the case of PLC1, everything it's ok (i can create the 3 new lines with sucess); - In the case of PLC2, when i open the CSV, i just have the last register line. My doubt it's how can i use String data, with limit size of characters (example: String[20]), and save all the register lines in the CSV? AttachmentCSV_test.zip (255 Downloads) |
Follow us on