Jump to content

Change Baud Rate on RS485 Port After Boot?


GetAGrip

Recommended Posts

I know that the Baud Rate for the CPU's RS485 Port (along with the Data Bits, Stop Bits, and Parity) are set in the configuration prior to downloading the program.

I  have the RS485 CPU COM Port set this way as MODBUS Master and have successfully communicated with Alicat MFC's via Modbus with little effort (yay to UniLogic/UniStream).

However, when I change baud rate for an item on in the Physical Serial COM configuration it is applied to the entire bus and I don't see away to reconfigure it.

I would like to be able to change the baud rate without rebooting or loading another program. I am aware it might be possible by using entries in the *.ini file on the SD card, but I think the PLC will need to be booted each baud change for that to work. As I recall you are allowed to load one and only one config file per boot.

Is there a way to change Baud Rate on RS485 Port and other parameters from the ladder logic or another way without rebooting.

I have a work around, but I was surprised that there was not an obvious way to initialized the com port from the ladder.

Specifically I am using an USP-104-B10 with the USC-P-B10 CPU and Modbus RTU at 9600 & 57,600 Baud. I need to initialize some hardware and was hoping I could just program the PLC to do it as needed. The default baud rate is not fast enough for normal communication so that and its default ID need to be changed each time a new piece of hardware enters the system.

In the past I have used an ICP DAS module to share  a single bus with a variety of equipment operating at different baud rates with different parity and a variety of protocols also to give each an ID on the bus. The I-7527 addressable gateway works great for that when you need to deal with that kind of situation long term.

This time everything is going to be Modbus and I plan to run at 57,600 baud after configuration.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...