Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Controlling Modbus write multiple length
PostPosted: Wed Dec 11, 2013 3:17 am 

Joined: Fri Nov 15, 2013 9:40 am
Posts: 1

Offline
In the Modicon Modbus controller settings, the 'max block size (words)' controller parameter defines the maximum number of registers than can be read in a single 'read holding registers (0x03)' command. The actual number of registers read in a single command depends on the tag array size or string length, subject to the max block size defined.

Is there an equivalent way to set the number of registers that are written in a 'write multiple holding registers (0x10)' command? It appears that the controller always divides a write into sets of 8 words, and this is causing me problems due to the quirks of a particular Modbus slave that expects an entire string to be written in a single command.


 Profile  
 
 Post subject: Re: Controlling Modbus write multiple length
PostPosted: Mon Apr 02, 2018 2:07 pm 

Joined: Mon Nov 20, 2017 5:29 pm
Posts: 43

Offline
Hi timun,

This should not be too difficult, you will first want to set the "Holding/Input registers per message (write)" to your desired string length. Enable the "Force function code 0x10" parameter. And then just write to your string. It should copy your string as far as it is populated.

_________________
Thanks,

Chris
Beijer Support
(801)708-6690


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron