kaviraj Posted January 4, 2020 Report Posted January 4, 2020 I have R16 PLC (firmware45) and SD card(2GB). Can any one help me to create CSV file in SD card.I need to Logg the data of D0-100 when the M0 trigger bit goes high. can any please help to creat ladder for this. it will be really helpful.
krishna k Posted January 4, 2020 Report Posted January 4, 2020 40 minutes ago, kaviraj said: I have R16 PLC (firmware45) and SD card(2GB). Can any one help me to create CSV file in SD card.I need to Logg the data of D0-100 when the M0 trigger bit goes high. can any please help to creat ladder for this. it will be really helpful. Hi, The Data Logging function can be configure through CPU Logging Configurator Tool. You having it?
Gambit Posted January 6, 2020 Report Posted January 6, 2020 hey two posts??? I already replied to the first one. with a link to the quickstart for the System Q Datalogger module which is similar to the internal one of the iQ-R.
kaviraj Posted January 6, 2020 Author Report Posted January 6, 2020 (edited) thanks for the reply Mr.Gambit. i am trying to achive with a program because i need to logg this data to server through FTP. I got some half of the result with below program.But the csv file is generating in japanees(which supposed to KAVI.csv) and in excel facing gap of three empty rows for every logg. 䅋䥖.CSV FTP_LOGG_V5.gx3 Edited January 6, 2020 by kaviraj
Gambit Posted January 6, 2020 Report Posted January 6, 2020 (edited) You should also be able get the file which is created via the Logger tool. But if you rather use the sequence that is fine. As for your program it seems ok. Maybe add the null to be sure there is no data after the last ASCII string (D7008+D7009) Set 00H (NULL) in the end of the string in an element. When the number of bytes of the string is even, set 0000H (two bytes of NULL) in the next one word. p.s. I would use labels and create an Array. this way you are less likely to make a mistake in the control Data etc. (Not that you did make a mistake :) ) Edited January 6, 2020 by Gambit
kaviraj Posted January 6, 2020 Author Report Posted January 6, 2020 OK.But I am already moving null vallues in the program (FMOVP H0 D7001 K10) including d7010.and what about japanees file name. any idea ??
Gambit Posted January 6, 2020 Report Posted January 6, 2020 36 minutes ago, kaviraj said: OK.But I am already moving null vallues in the program (FMOVP H0 D7001 K10) including d7010.and what about japanees file name. any idea ?? I see sorry missed that one. Than i am out of ideas. The program looks good. I guess you could try it with numeric values and see if it behaves in the same way.
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