Your flow is not copy / paste-able.
You need to re-add it between ``` three back ticks ```
Your flow is not copy / paste-able.
You need to re-add it between ``` three back ticks ```
One other thing to consider is the cable proven? Are you certain you are using correct PC COM port? Do you have a serial port logger/analyser to see if data is flowing through the port?
in the absence of a serial port logger, you can just try different things. e.g. change the settings in NR port configuration.
PS, not certain, but on some OMRON PLCs, there is a dip switch that forces the port to be TOOLBUS (i.e. ignores settings) - you may want to read the manual for CQM.
PS2: If you have made the cable yourself, OMRON pin 2 & 3 are swapped and SG is on pin 5 i think.
BTW: I hate serial If I was you & had budget, I'd swap this obsolete PLC for CJ2M PLC. It comes with oodles more memory, much faster processor AND built in Ethernet port with the EtherNet/IP and FINS protocol built in. Plus, you can simulate MODBUS TCP in ladder.
Although I cannot import your flow due to formatting issue, I did just notice a \n
in there...
I said ...
Did you set these?
Anyhow, you might be close - try changing settings in all areas and try try try again
Try using HEX equivelants instead of escape characters (e.g. replace \r
for 0x13
in the serial config.
Try resetting PLC power after port changes.
Check the manual about dip switches.
Good luck.
yeah you are absolutely right. my fault sorry ,i copied a wrong flow. i have set \r in input and output as you said and deliver ascii strings..
i will follow your new instruction and i hope i will get a result..
here's what i got when onnecting plc to cx-programmer
Are you seeing any Comms at all?
I can't really make head nor tail of that screenshot tbh. Do you see actual Comms data with CX connected?
And when you disconnect CX then start node red, do you see any Comms at all - In either direction? If not, perhaps the node-red comm port setup is NG?
I think I said earlier, I've never used serial nodes from node red.
sorry for my silly question what is the NG ?
Apologies. Common short hand for No Good.
Hi again, What do you mean by control word, please ?
I'm not 100% certain but I'm pretty sure the TXD ladder logic function requires not only the source data to send but also a control word (kinda parameter for which com port to use)
Since you're asking about the TXD function then I suspect you are looking to use raw mode (e.g. rs-232c mode) instead of host link protocol?
When your com port is set for rs-232c mode you can use the TXD ladder function to send values from the PLC to the serial port without first requesting data from the PC side
Have a look in the CX help file at the TXD function. It's fairly straightforward.
once you have some ladder sending data by the TXD function you should see the com port indicator on the PLC begin the blink. This is a good clue that you have things working at the PLC side.
Hope that helps.
Hello friends, I am new around here, I know that the post is old and perhaps no help is required, but it will be the little that I can help and contribute in this because I am just using it now, Omron have a useful tool to get the crc correctly, the serial communication used in this case is sysmacway, this tool can be very useful for tests in communications, series, fins, modbus and others like the ones in the post and surely it would have been very useful at the time.
i can with host link, need refresh port for news values, but I don't know how to do it, I'm new to node-red.
Config with PLC at host link omron this PLC have an CJ1M-CPU11 conexion with the Peripherical port.
What omron plc are you using? Is there an Ethernet port in it?
no, this plc only have 2 ports fot host link, toolbus, rs232-c is one plc CJ1M-CPU11 of omron.
this model, have one peripherical port and one DB9 port.
If you purchase and add an EIP21 or ETN21 then there is a contribution node in the flows library called OMRON FINS that works with CJ PLC's.
Yes i see yesterday's, and can check the fins communication, but thx for the info.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.