Writing to bits on an OMRON CP1L-M PLC through RS232

  • HMI Model: MT8050iE
  • EasyBuilder Pro Version: V6.10.01.609

Hi all,

I have a ladder program in CX Programmer on my PLC, and my Easybuilder program on the HMI. Normally I have this connected through ethernet, but when updating a machine that has the PLC and HMI connected with an RS232 cable I stumbled upon the issue that my current addresses in CX Programmer are not compatible with Host Link. I managed to update most of them, so now reading from the PLC works. But my buttons that write to an address on the PLC don’t work. My current buttons use a W-bit address (ie. W401.00, W401.01, etc.) on the PLC. I assume I need to change them to something compatible with Host Link but I have not been able to figure out what.

Thanks in advance!

Hi @jdekker_klaver,

Based on your description, it seems that you’re using the “OMRON CJ/CS/CP” driver. Can you confirm?

In this case, you should reference W-bit memory using our W_Bit memory address type. The format is [WORD][BIT] based on our documentation where the last two digits of the address represents the bit. As an example, to refence the 13th bit in W-500, you can define the address as W_Bit-50013 without using a ‘.’ or any separator between the word and bit address. If you use a ‘.’ or some other character to separate the word and bit address like W_Bit-500.13 our software may not properly determine this address.

Thank you for your response. Your first question was also the solution to my problem. I had Host Link selected, I never noticed the CJ/CS/CP one without ethernet. I changed to that and the program works flawless. Thank you so much!