Why I cannot execute a ZHOME over MODbus ?

Discuss Stepper motors, Drivers, Controllers, GUI's and related Accessories here.
Post Reply
dp1
Posts: 14
Joined: Fri Feb 22, 2019 10:16 am

Why I cannot execute a ZHOME over MODbus ?

Post by dp1 » Thu May 02, 2019 5:36 am

With the MEX02 everyting is fine. Then
I trace the MODbus communication and see successful queries and Responses:

> 0103 00cc 0006 05f7 ?Pos, Speed
< 0103 0c ffff ffff 0000 0000 0000 0000 8775
(ffff ffff) resulting into Position=-1,
(0000 0000) resulting into Speed=0


> 0103 00fa 0002 e43a
< 0103 04 0000 0157 ba5d ?Temp
(0000 0157) resulting into Temp=34.3ºC

Therefore the RS485 communication appears to be O.K.

However when I execute a ZHOME command, I do not get any response on the query:

> 0106 007d 0010 181e ?Execute ZHOME

This happens to be exactly what is written pag 292 of the Function Edition
of the AZ-series Driver package.
What can be the reason that for this last query I do not get any response
from the Driver, and that the driver does not execute a ZHOME operation on the Motor.

NB. Other OPERATIONS as START, SEL0, etc... also fails.

Best Regards,
Dominique

om_tech_support_KR
Posts: 53
Joined: Thu Jan 11, 2018 3:03 pm

Re: Why I cannot execute a ZHOME over MODbus ?

Post by om_tech_support_KR » Thu May 02, 2019 9:48 am

Hi Dominique,

If running while connected to the MEXE02 software can you try while only connected to RS-485? Also are you able to write to any of the other registers like the position or speed register or are you only able to read registers?

dp1
Posts: 14
Joined: Fri Feb 22, 2019 10:16 am

Re: Why I cannot execute a ZHOME over MODbus ?

Post by dp1 » Fri May 03, 2019 10:11 am

Hy,

It appears that without the MEX02 connection, the MODbus RS485 now allows
to execute the ZHOME operation.

I even managed to execute a direct operation writing registers to register address 0058h


However I am now stuck trying to execute from an existing operation data:

First the OD #254 and #255 are written, as the driver (ID=2) acknowledges
this writing of multiple registers successfully.
> 0210x 5780x(22400) 18 36 0000x(0) 0001x(1)(1) 0001x(1) 0745x(1861)(67397) 0000x(0) 0befx(3055)(3055) 0000x(0) 0bb8x(3000)(3000) 0000x(0) 0bb8x(3000)(3000) 0000x(0) 03e8x(1000)(1000) 0000x(0) 0001x(1)(1) 0000x(0) 0002x(2)(2) 0000x(0) 00ffx(255)(255) - 8874x
< 0210x 5780x(22400) 51abx
> 0210x 57c0x(22464) 18 36 0000x(0) 0001x(1)(1) fffex(65534) f6aex(63150)(-67922) 0000x(0) 0befx(3055)(3055) 0000x(0) 0bb8x(3000)(3000) 0000x(0) 0bb8x(3000)(3000) 0000x(0) 03e8x(1000)(1000) 0000x(0) 0001x(1)(1) 0000x(0) 0002x(2)(2) 0000x(0) 00fex(254)(254) - bfffx
< 0210x 57c0x(22464) 507fx


Then I did the following, trying to start OD #254
> 0206x 0e0bx(3595) 0000x - fad3x ????
< 0206x 0e0bx(3595) 0000x - fad3x

> 0206x 0ec1x(3777) 00fex - 5b6dx ?Associate OD #254 to D_SEL0
< 0206x 0ec1x(3777) 00fex - 5b6dx

> 0206x 007dx(125) 0100x - 1871x ?Execute D-SEL0
< 0206x 007dx(125) 0100x - 1871x

> 0206x 007dx(125) 0000x - 19e1x ?Execute RESET signal
< 0206x 007dx(125) 0000x - 19e1x

What did I overlook or did wrong with these 4 last single register writings
so that OD #254 was not started ?

om_tech_support_KR
Posts: 53
Joined: Thu Jan 11, 2018 3:03 pm

Re: Why I cannot execute a ZHOME over MODbus ?

Post by om_tech_support_KR » Fri May 03, 2019 12:11 pm

Hi Dominique,

For you your second command 0206x 0e0bx(3595) 0000x when you changed it from 1 to 0 you disabled +START function so you will need to also turn on the START bit when you write to the 007Dh register and turn on the D-SEL0 bit. If you change the 0E0Bh register back to 0001h you won't have to turn on the START bit and will run OD #254 when only turning on the D-SEL0 bit.

dp1
Posts: 14
Joined: Fri Feb 22, 2019 10:16 am

Re: Why I cannot execute a ZHOME over MODbus ?

Post by dp1 » Sat May 04, 2019 11:11 am

Thanks,

With this, now a D-SEL0 signal can start the Operation data #254.

Post Reply