Mitsubishi MC Node read and Function Node help

Sorry for the simple question here but I am still trying to learn JSON and need some help with the code for the function node.

I want to poll the MC read node every .1 second (PLC out put is set to 500ms and I don't want to miss) and if the value is true then write a T to the scanner to trigger it. In addition I want to write to a csv file the scan data and hopefully include a time stamp in the csv file. I also am trying to figure out the best way to update a variable that I can see in Node-Red for a current scan counts.

I realize this is probably very easy for some but not for me yet. Any help with the code would be appreciated. Thanks,

flows (1).json (8.0 KB)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.