Data Logging with ControlLogix/CompactLogix (1756/1769)
ฝัง
- เผยแพร่เมื่อ 16 มิ.ย. 2020
- PLC: 1769-L30ER-NSE
SD: 1784-SD1 (non-Allen Bradley SD card might not work. I tried and my Kingston SD didn’t work)
Step 1:
www.rockwellautomation.com/en...
Step 2:
Download and unzip the compressed/zipped folder
Step 3:
Open “MakeCSV_3.ACD” and add SSV Instruction to set date and time to the controller.
Step 4:
Go to “Controller Properties”, under “General”, match controller “Type”, “Revision” and “Slot” number to the actual PLC and rack layout.
Step 5:
Set “logging_enabled” bit to TRUE to start collecting data every second and storing it to the installed SD card.
Step 6:
Download and Test
Data from “SrcData” REAL[10] is collected and stored in the SD card.
Step 7:
View data in excel .csv file.
"Format Cells" / "Date"
"Format Cells" / "Time"
If this video is helpful, please like and subscribe to my channel! Thank you.
Nice video, very useful. Thank you Mr. Hoang
@Anthony Buddini: Glad it was helpful!
Great example. Can you create batch logging using your example? Also, can you read the log files from the sd card over the network?
@Amonlath: I am not very sure what "batch logging" is. This sampe code from Rockwell actually is very limited with only 10 REAL/Float registers/variables to be logged to the sd card. How about INT variables or DINT and REAL together or more than 10 source variables. It's possible but Rockwell definitely needs to improve it. I don't think you can read the log files over the network. Thank you for subscribing to my channel. To be honest, I would recommend to use HMI for data logging instead of PLC.
Nice video. I am trying to do something similar with a compactlogix 5380. do you have any suggestions?
@dr.pancake1279: Is it a later version or bigger Compactlogix PLC? I think you should have a more dedicated device for data logging.
Hi. For some reason, column B is not converted to the time format after converting text by columns in an Excel csv file. The data in column B remains in the form at original float type. What could be the reason?
@_Faeton_: Thank you for subscribing and your support to my channel. Unfortunately, I have not experienced it before. Make sure you set up the date and time correctly to the PLC. All elements (including the milisecond) need to be included in the array in the right order. Or should it be from your excel software?
I fixed it. OS of PLC works with ' . ' symbol, and Excel works with ' , ' in type of variable. You need to make the conversion ''find and replace'' ' . ' on ' , ' in column B after applying the required time format. @@SYPHOANG
Hello Mr. Hoang , I have a questino , how can you expand the amount of tags to log? and also , Can this routine be use to read from the file created?
@sergioalbertoperezvidales7601: Unfortunately, I don't think that is possible.
how to read write data in SQL directly from Controllogix?
Do you have any idea?
@Bapusaheb Dhage: Unfortunately, I am not familiar with SQL.
You can watch this to see how you can achieve that ..th-cam.com/play/PLkLp4DZBLv2e4SetB2Q0cizFJCAQUEa1s.html
The link to the sample code "Not Found Page | Rockwell Automation". Looks great other than that...Thanks
Russ Perkins: Maybe it is not available in your region or it's only available for techconnect subscription. Thank you for subscribing to my channel.