Hello everyone who reads this. This week I've got Weidmüller PLC for testing. This thing has got Node-RED preinstalled which I'm not familiar with, just heard a lot of times that people use this environment to do a lot of things. The goal is to use this PLC for Building management system/automation. The problem that I got right now is with the logs. Please can anyone tell me how to log files directly into PC hard drive? For example .csv file with time+temperature parameters.
PLC is connected directly trough ethernet cable to a laptop.
I've tried my first ever flow to build up a .csv log file and getting this error - "failed to append to file: Error: EACCES: permission denied, open 'C:\RED_Logs\Temperature.csv"
Please can anyone give me a bit of guidance how to solve this?
Thank you
Heres my flow:
[{"id":"1718610e.2d76bf","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"2880f1bb.86fabe","type":"uc-iodataIn","z":"1718610e.2d76bf","mode":"wi_single_variable","variable":"REALTEMP","name":"Temperature","pollInterval":"5000","pollIntervalBase":"s","x":110,"y":100,"wires":[["167eb89e.92da3f"],["98ab012a.deb66"]]},{"id":"98ab012a.deb66","type":"function","z":"1718610e.2d76bf","name":"","func":"var Time = msg.payload.timestamp;\nvar Temperature = msg.payload.temperature;\nm = {'Time': Time, 'Temperature':Temperature};\nreturn {payload:m};","outputs":1,"noerr":0,"initialize":"","finalize":"","x":300,"y":140,"wires":[["a5005540.4ece78"]]},{"id":"a5005540.4ece78","type":"csv","z":"1718610e.2d76bf","name":"","sep":",","hdrin":true,"hdrout":"none","multi":"one","ret":"\r\n","temp":"Time, Temperature","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":480,"y":140,"wires":[["efc1bef8.f383f8"]]},{"id":"efc1bef8.f383f8","type":"file","z":"1718610e.2d76bf","name":"","filename":"C:\RED_Logs\Temperature.csv","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"utf8","x":710,"y":140,"wires":[]},{"id":"167eb89e.92da3f","type":"debug","z":"1718610e.2d76bf","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":310,"y":100,"wires":}]