Hi team. I connected PLC Mitsubishi Fx 3GC with node red via MC protocol and I write the number to register D200. But when the number is 1 and the D200 is 256. I don't know why. I expect the number D200 similar input. Please look at the picture advise me
Firstly, I suspect this is a double word issue but I am confused by the value shown in the single word MOV
- Using the Gx developer memory view (setup to show 16bit values), what values do you see in D200 and D201.
- Attach 1 debug node to the dashboard item and another debug (set to show complete message) to the output of the mc-write node. Show us what you see.
- Is D200 used anywhere else in the ladder?
- What do you get is you send 1 from an inject?
- What happens if you send the number 257 to the mc-write node?
- What is the intention of the D200 number in the PLC? Are you using it in single or double word operations? ( E.g. is to be a 16bit signed or 16bit unsigned or 32bit double etc)?
Thank you for your advice. The rootcause from the PLC program. I have one more question. When the PLC lost power and after that on power again. The node red can not auto connect to the PLC. How to solve this case?
Are you using TCP or UDP?
I am using TCP.
Firstly, if you can, try changing to UDP. I have had 14 years experience of mitsubishi TCP lock outs.
If you cannot switch to UDP then you might have to resort to sending disconnect/connect messages to the node (see the built-in help)
I can not change to UDP.How to send disconnect/connect message to node red in this case
See the built in help
Hi Steve-Mcl,
I follow your advice. Use UDP protocol for PLC Mitsubishi.( PLC: FX 3GC, Module : FX3U-ENET-ADP). The status is display ready but when I press the Switch the error occurs : "Error: timeout"
Please advise for me next steps.
Vào CN, 1 thg 1, 2023 vào lúc 17:08 Stephen McLaughlin via Node-RED Forum <notifications@nodered.discoursemail.com> đã viết:
Make sure to use capital letters for device specifier e.g. D200 not d200
Also, always best to use frame 4E if the PLC supports it
Hi Steve-Mcl,
I am facing an issue when I input the number 99999 to D6 in PLC Mitsubishi FX 3GC. And display this number on Node Red Dashboard is -31073
Please support and advice help me
Vào CN, 1 thg 1, 2023 vào lúc 22:09 Stephen McLaughlin via Node-RED Forum <notifications@nodered.discoursemail.com> đã viết:
D6 is a 16 bit signed integer address (-32,768 to +32,767)
Read the built in help to understand how to access double word values.
Alternatively, read 2 values & use the buffer parser to convert to unsigned 32 bit value
Dear Steve-Mcl,
Thank you for your advice.I already solved this case.
Vào Th 4, 4 thg 1, 2023 vào lúc 00:27 Stephen McLaughlin via Node-RED Forum <notifications@nodered.discoursemail.com> đã viết:
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.