Jump to content

Recommended Posts

Hello,

so far this routine (below) works fine for one servo - readinf encoder value. But in near future I'm going to "talk" with four servos and now wondering how to do that.

My idea is  4 similar routines like this one (for every one routine different Time operand)? There I'm affraid of time delay for the last servo which would be read.

Perhaps  other solution you can suggest to read enocoders value through Modbus?

Would like to mention that V700 PLC do other modbus tasks, for exapmle  a button which sends something to servo (i.e Stop instruction)  on a display can be now very risky because of servos-reading routine which still in main routine works (but it have to)...

How to avoid such problems?

explanation of Operand MB100 = "Modbus Function in Progress"

obraz.thumb.png.e60d562e59376fd5905d311a18935a36.png

Link to comment
Share on other sites

  • MVP 2023

When I've done servo control utilizing Modbus there's usually an external I/O board available for the servo that allows starting and stopping via discreet inputs to the servo itself. 

I use the Modbus portion to set parameters in the servo before I trigger a move with a voltage signal or contact.  Modbus via RS485 is nowhere near fast enough or reliable enough.

Joe T.

Link to comment
Share on other sites

Main PLC has to read servo's encoders in order to 'know' current location of device. In the worst case that some instructions (currently send via modbus) like  displayed buttons won't execute then reprogram  buttons to physical output  module instead of relying on modbus.

"I use the Modbus portion to set parameters in the servo" - either do I, " before I trigger a move with a voltage signal or contact." - currently I send it via modbus but  yes, worth to think it over.

Link to comment
Share on other sites

Ok, I don't need 'live' encoder's values at all. I was a little puzzled. During programing the device,  after some movement it is enough to read current encoder position once and save it in PLC. And then during normal operation if servo will not report some error it means that this move is correct or if some error then it will be processed. So no more questions :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.