Mitsubishi PLC FX3GE

hello i wish you give well first i want to thank you for your efforts and your time
I am working in a project using Mitsubishi PLC FX3GE if anyone has any information or something can help me I want to retrieve data from API using Node-red or C # application with TCP MC PROTOCOL
I had this screnshoot, I wanna split it up if someone can help pleaseplc

I recognise that from the output of node-red-contrib-mcprotocol node

It is an object, simply access the properties you need to. There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item. Working with messages : Node-RED

You dont need c# or any external application, just node-red & node-red-contrib-mcprotocol.

PS: use UDP if available (in my experiencem Mitsi TCP is terribly unreliable)

Thank you very much @Steve-Mcl that's nice of you i will try UDP and please if you have an example or tried mc write show me the form of data payload

The data to write should match the address. (read the built in help)

Here is a demo...

[{"id":"b1e7baa8.8017c8","type":"MC Read","z":"a86654ec.266648","name":"","topic":"","connection":"8a67d1bd.c84ff","address":"topic","addressType":"msg","outputFormat":0,"errorHandling":"throw","outputs":1,"x":588,"y":192,"wires":[["a3ecb901.2aad08"]]},{"id":"c29167b6.5e78c8","type":"inject","z":"a86654ec.266648","name":"Write to D0~D99","props":[{"p":"topic","vt":"str"},{"p":"count","v":"100","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"D0,100","x":220,"y":140,"wires":[["f142ce8b.0d0eb"]]},{"id":"964897ca.e69e18","type":"inject","z":"a86654ec.266648","name":"connect","props":[{"p":"connect","v":"true","vt":"bool"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"connect","x":434,"y":48,"wires":[["4f5d0cb3.963d84"]]},{"id":"b5c373c2.7f907","type":"inject","z":"a86654ec.266648","name":"disconnect","props":[{"p":"disconnect","v":"true","vt":"bool"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"disconnect","x":428,"y":96,"wires":[["4f5d0cb3.963d84"]]},{"id":"a3ecb901.2aad08","type":"debug","z":"a86654ec.266648","name":"Read Result","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":758,"y":192,"wires":[]},{"id":"4f5d0cb3.963d84","type":"MC Write","z":"a86654ec.266648","name":"","topic":"","connection":"8a67d1bd.c84ff","data":"payload","address":"topic","addressType":"msg","dataType":"msg","errorHandling":"throw","outputs":1,"x":588,"y":144,"wires":[["2f229d87.f79a52"]]},{"id":"2f229d87.f79a52","type":"debug","z":"a86654ec.266648","name":"Write Result","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":758,"y":144,"wires":[]},{"id":"9b1f21f7.25e2c","type":"inject","z":"a86654ec.266648","name":"Read D77","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"D77","payload":"","payloadType":"str","x":204,"y":192,"wires":[["b1e7baa8.8017c8"]]},{"id":"f142ce8b.0d0eb","type":"function","z":"a86654ec.266648","name":"make test data","func":"var count = msg.count || 5\nvar data = [];\n\nfor (let index = 0; index < count; index++) {\n    data[index] = index;\n}\n\nmsg.payload = data;\n\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":416,"y":144,"wires":[["4f5d0cb3.963d84"]]},{"id":"8954a47e.149188","type":"inject","z":"a86654ec.266648","name":"Read 10 from D50","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"D50,10","payload":"","payloadType":"str","x":234,"y":240,"wires":[["b1e7baa8.8017c8"]]},{"id":"8a67d1bd.c84ff","type":"MC Protocol Connection","name":"","host":"localhost","port":"5003","protocol":"UDP","frame":"4E","plcType":"Q","ascii":false,"PLCStation":"","PCStation":"","PLCModuleNo":"","network":"","octalInputOutput":false,"timeout":"3000"}]
1 Like

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