Jump to content

Modbus communication between Samba PLC ad US5 pro


Dan.k

Recommended Posts

Hi All,

I am new to programming with VisiLogic and Unistream. 

Here is my little adventure.

I have created a program for control of 3 pumps via timers. The idea is to connect a Samba PLC( Slave) to US 5 (Master)  and the change of the timer's pre-set value of the Master to be read by the Slave . The communication works but when I set the pre-set value of the Master to 5s  the Slave reads it as 50. Does anyone have an idea of where the problem could possibly be .

Link to comment
Share on other sites

  • MVP 2023

It might just be the way numbers are sent between 2 different types of controllers, in that 5 seconds is automatically resolved into tenths of a second.  Can't simple maths fix it?  Or allow that seconds coming are 10 x what you based your initial project on and you simply need to change your project a little.

cheers, Aus 

Link to comment
Share on other sites

21 hours ago, Joe Tauser said:

UniStream timers have .001 s resolution, Vision timers are .01 s.

Can you give an example of the tag and register values you are using.  Even better, upload both programs so we can see them.

Joe T.

Hi Joe , 

Thanks for your reply 

Both programs attached 

Thanks again for your help.  

Samba Modbus RS 485 Slave 1.vlp US5 Modbus RS485 Master 1.ulpr

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...